|
|
@ -118,29 +118,29 @@ IItemBasicAppService itemBasicAppService) |
|
|
|
if (model.DeliverRequestType == EnumDeliverRequestType.FIS) |
|
|
|
{ |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(model.IdentityNo)) |
|
|
|
{ |
|
|
|
validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为FIS发货必须填写底盘号", new string[] { "底盘号" })); |
|
|
|
} |
|
|
|
if (string.IsNullOrEmpty(model.MesDeliveryContainer)) |
|
|
|
{ |
|
|
|
validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为FIS发货必须填写Mes器具号", new string[] { "Mes器具号" })); |
|
|
|
} |
|
|
|
if (string.IsNullOrEmpty(model.MesDeliveryPlan)) |
|
|
|
{ |
|
|
|
validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为看板发货必须填写MES发货计划单号", new string[] { "MES发货计划单号" })); |
|
|
|
} |
|
|
|
//if (string.IsNullOrEmpty(model.IdentityNo))
|
|
|
|
//{
|
|
|
|
// validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为FIS发货必须填写底盘号", new string[] { "底盘号" }));
|
|
|
|
//}
|
|
|
|
//if (string.IsNullOrEmpty(model.MesDeliveryContainer))
|
|
|
|
//{
|
|
|
|
// validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为FIS发货必须填写Mes器具号", new string[] { "Mes器具号" }));
|
|
|
|
//}
|
|
|
|
//if (string.IsNullOrEmpty(model.MesDeliveryPlan))
|
|
|
|
//{
|
|
|
|
// validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为看板发货必须填写MES发货计划单号", new string[] { "MES发货计划单号" }));
|
|
|
|
//}
|
|
|
|
} |
|
|
|
if (model.DeliverRequestType == EnumDeliverRequestType.Normal ) |
|
|
|
{ |
|
|
|
if (string.IsNullOrEmpty(model.MesDeliveryPlan)) |
|
|
|
{ |
|
|
|
validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为看板发货必须填写MES发货计划单号", new string[] { "MES发货计划单号" })); |
|
|
|
} |
|
|
|
if(!string.IsNullOrEmpty(model.IdentityNo)) |
|
|
|
{ |
|
|
|
validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为看板发货底盘号应该为空", new string[] { "底盘号"})); |
|
|
|
} |
|
|
|
//if (string.IsNullOrEmpty(model.MesDeliveryPlan))
|
|
|
|
//{
|
|
|
|
// validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为看板发货必须填写MES发货计划单号", new string[] { "MES发货计划单号" }));
|
|
|
|
//}
|
|
|
|
//if(!string.IsNullOrEmpty(model.IdentityNo))
|
|
|
|
//{
|
|
|
|
// validationRresult.Add(new ValidationResult($"ERP料号{model.ItemCode}为看板发货底盘号应该为空", new string[] { "底盘号"}));
|
|
|
|
//}
|
|
|
|
} |
|
|
|
var area = await _areaApp.GetByCodeAsync(model.AreaCode).ConfigureAwait(false); |
|
|
|
|
|
|
|