diff --git a/.vs/WZC2_New/v17/.wsuo b/.vs/WZC2_New/v17/.wsuo new file mode 100644 index 000000000..2db6ad4cd Binary files /dev/null and b/.vs/WZC2_New/v17/.wsuo differ diff --git a/.vs/WZC2_New/v17/DocumentLayout.json b/.vs/WZC2_New/v17/DocumentLayout.json new file mode 100644 index 000000000..50c85d67a --- /dev/null +++ b/.vs/WZC2_New/v17/DocumentLayout.json @@ -0,0 +1,35 @@ +{ + "Version": 1, + "WorkspaceRootPath": "D:\\www\\WZC2_New\\", + "Documents": [], + "DocumentGroupContainers": [ + { + "Orientation": 1, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedHeight": 200, + "SelectedChildIndex": -1, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" + }, + { + "$type": "Bookmark", + "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" + }, + { + "$type": "Bookmark", + "Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" + }, + { + "$type": "Bookmark", + "Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs index 561f462db..274977bc1 100644 --- a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs +++ b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs @@ -87,6 +87,28 @@ public class TransactionAppService return dto; } + [HttpPost("add-many-empty")] + public virtual async Task> AddManyEmptyAsync(List inputs) + { + var entities = ObjectMapper.Map, List>(inputs); + foreach (var entity in entities) + { + if (string.IsNullOrEmpty(entity.Worker)) + { + entity.Worker = CurrentUser.GetUserName(); + } + + entity.TransTime = Clock.Now; + entity.ActiveDate = await _interfaceCalendarAclService.GetActiveDateAsync(Clock.Now).ConfigureAwait(false); + } + //添加库存信息具体方法,会自动添加或者更新 + await _transactionManager.AddManyAsync(entities).ConfigureAwait(false); + //domain层的实体 转化为 显示DTO + var dto = ObjectMapper.Map, List>(entities); + + return dto; + } + [HttpGet("list/by-number/{number}")] public virtual async Task> GetListByNumberAsync(string number) {