|
|
@ -2501,11 +2501,7 @@ namespace CK.SCP.Controller |
|
|
|
{ |
|
|
|
List<string> ErrorList = new List<string>(); |
|
|
|
|
|
|
|
var _count1 = db.TA_PART.Count(p => p.PartCode == p_excel.零件号); |
|
|
|
if (_count1 == 0) |
|
|
|
{ |
|
|
|
ErrorList.Add(string.Format("零件号{0}不存在!", p_excel.零件号)); |
|
|
|
} |
|
|
|
|
|
|
|
var _count = db.TA_PART.Count(p => p.PartCode == p_excel.原材物料号); |
|
|
|
if (_count == 0) |
|
|
|
{ |
|
|
@ -2538,6 +2534,14 @@ namespace CK.SCP.Controller |
|
|
|
{ |
|
|
|
ErrorList.Add(string.Format("零件名称{0}有填写为空!", p_excel.零件号)); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
var _count1 = db.TA_Appliance.Count(p => p.PartNumber == p_excel.零件号 && p.VendID == p_excel.供应商编号); |
|
|
|
if (_count1 == 0) |
|
|
|
{ |
|
|
|
ErrorList.Add(string.Format("零件号码{0}与供应商{1}没有对应的基础信息!", p_excel.零件号, p_excel.供应商编号)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return ErrorList; |
|
|
|
|
|
|
|