|
|
@ -210,6 +210,19 @@ namespace SCP.Views.PlanData |
|
|
|
} |
|
|
|
|
|
|
|
var list = ConvertHelper.ToList<SCP_PO_EXPORT_IMPORT_MODEL>(ExcelHelper.RemoveEmpty(_dt)).ToList(); |
|
|
|
List<string> partCodeList = list.Select(a => a.零件号).ToList(); |
|
|
|
if (partCodeList.Count == 0) |
|
|
|
{ |
|
|
|
Alert.Show("未填写零件编码!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
List<string> list1 = new List<string>(); |
|
|
|
list1 = CheckPartCode(partCodeList); |
|
|
|
if (list1 != new List<string>()) |
|
|
|
{ |
|
|
|
Alert.Show(string.Format("导入文件中有不存在的零件,如{0}", list1.FirstOrDefault())); |
|
|
|
return; |
|
|
|
} |
|
|
|
var checkret = SCP_PO_CONTROLLER.Check_EXCEL_PO_MOD_CQ(list, p_modtype, CurrentUser.FactoryList[0], CurrentUser.SubSiteList[0]); |
|
|
|
if (checkret.State == ReturnStatus.Failed && checkret.Result == false) |
|
|
|
{ |
|
|
|