|
@ -99,20 +99,22 @@ public class InjectionPlanRequestAppService : SfsStoreRequestAppServiceBase<Inje |
|
|
detailInput.ItemDesc1 = itemBasicDto.Desc1; |
|
|
detailInput.ItemDesc1 = itemBasicDto.Desc1; |
|
|
detailInput.ItemDesc2 = itemBasicDto.Desc2; |
|
|
detailInput.ItemDesc2 = itemBasicDto.Desc2; |
|
|
detailInput.ItemName = itemBasicDto.Name; |
|
|
detailInput.ItemName = itemBasicDto.Name; |
|
|
|
|
|
detailInput.StdPackQty = itemBasicDto.StdPackQty; |
|
|
|
|
|
|
|
|
var itemContainerDto = await _itemContainerAppService.GetByItemCodeAsync(detailInput.ItemCode).ConfigureAwait(false); |
|
|
//var itemContainerDto = await _itemContainerAppService.GetByItemCodeAsync(detailInput.ItemCode).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
//if (itemContainerDto != null)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// detailInput.Uom = itemContainerDto.BasicUom;
|
|
|
|
|
|
// detailInput.Qty = itemContainerDto.Qty;
|
|
|
|
|
|
// detailInput.BoxQty = itemContainerDto.Qty;
|
|
|
|
|
|
// detailInput.StdPackQty = itemBasicDto.StdPackQty;
|
|
|
|
|
|
//}
|
|
|
|
|
|
//else
|
|
|
|
|
|
//{
|
|
|
|
|
|
// throw new UserFriendlyException($"ERP料号【{detailInput.ItemCode}】未配置收容数");
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
if (itemContainerDto != null) |
|
|
|
|
|
{ |
|
|
|
|
|
detailInput.Uom = itemContainerDto.BasicUom; |
|
|
|
|
|
detailInput.Qty = itemContainerDto.Qty; |
|
|
|
|
|
detailInput.BoxQty = itemContainerDto.Qty; |
|
|
|
|
|
detailInput.StdPackQty = itemBasicDto.StdPackQty; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
throw new UserFriendlyException($"ERP料号【{detailInput.ItemCode}】未配置收容数"); |
|
|
|
|
|
} |
|
|
|
|
|
detailInput.Status = EnumStatus.Open; |
|
|
detailInput.Status = EnumStatus.Open; |
|
|
detailInput.IssuedQty = 0; |
|
|
detailInput.IssuedQty = 0; |
|
|
detailInput.RecommendType = EnumRecommendType.None; |
|
|
detailInput.RecommendType = EnumRecommendType.None; |
|
|