|
@ -105,6 +105,7 @@ public class PositionCodeAppService |
|
|
var itemBasic = await ItemBasicAppService.GetByCodeAsync(input.PartCode).ConfigureAwait(false); |
|
|
var itemBasic = await ItemBasicAppService.GetByCodeAsync(input.PartCode).ConfigureAwait(false); |
|
|
Check.NotNull(itemBasic, "物品代码", $"物品 {input.PartCode} 不存在"); |
|
|
Check.NotNull(itemBasic, "物品代码", $"物品 {input.PartCode} 不存在"); |
|
|
|
|
|
|
|
|
|
|
|
entity.PartCode = input.PartCode; |
|
|
entity.PartName = itemBasic.Name; |
|
|
entity.PartName = itemBasic.Name; |
|
|
entity.PartDesc = itemBasic.Desc1; |
|
|
entity.PartDesc = itemBasic.Desc1; |
|
|
|
|
|
|
|
@ -112,6 +113,7 @@ public class PositionCodeAppService |
|
|
var location = await LocationAppService.GetByCodeAsync(input.LocationCode).ConfigureAwait(false); |
|
|
var location = await LocationAppService.GetByCodeAsync(input.LocationCode).ConfigureAwait(false); |
|
|
Check.NotNull(location, "库位代码", $"库位 {input.LocationCode} 不存在"); |
|
|
Check.NotNull(location, "库位代码", $"库位 {input.LocationCode} 不存在"); |
|
|
|
|
|
|
|
|
|
|
|
entity.LocationCode = input.LocationCode; |
|
|
entity.LocationName = location.Name; |
|
|
entity.LocationName = location.Name; |
|
|
|
|
|
|
|
|
entity.StdPackQty = input.StdPackQty; |
|
|
entity.StdPackQty = input.StdPackQty; |
|
|