diff --git a/北京北汽/SCP/Business/PageBase.cs b/北京北汽/SCP/Business/PageBase.cs index f3b2786..b3bd6d5 100644 --- a/北京北汽/SCP/Business/PageBase.cs +++ b/北京北汽/SCP/Business/PageBase.cs @@ -1961,6 +1961,10 @@ namespace SCP { partCodeList.Add(item); } + else if (item != SCPDB.TA_PART.FirstOrDefault(a=>a.PartCode == item).PartCode) + { + partCodeList.Add(item); + } } return partCodeList; } diff --git a/北京北汽/SCP/Views/BasicData/Price.aspx.cs b/北京北汽/SCP/Views/BasicData/Price.aspx.cs index 8b4d70f..32652d7 100644 --- a/北京北汽/SCP/Views/BasicData/Price.aspx.cs +++ b/北京北汽/SCP/Views/BasicData/Price.aspx.cs @@ -262,7 +262,7 @@ namespace SCP.BasicData } List list1 = new List(); list1 = CheckPartCode(partCodeList); - if (list1 != new List() ) + if (list1.Count()>0 ) { Alert.Show(string.Format( "导入文件中有不存在的零件,如{0}", list1.FirstOrDefault())); return; diff --git a/北京北汽/SCP/Views/BasicData/PriceUpdate.aspx.cs b/北京北汽/SCP/Views/BasicData/PriceUpdate.aspx.cs index 265886e..32ffb3e 100644 --- a/北京北汽/SCP/Views/BasicData/PriceUpdate.aspx.cs +++ b/北京北汽/SCP/Views/BasicData/PriceUpdate.aspx.cs @@ -200,7 +200,7 @@ namespace SCP.BasicData } List list1 = new List(); list1 = CheckPartCode(partCodeList); - if (list1 != new List()) + if (list1.Count()>0) { Alert.Show(string.Format("导入文件中有不存在的零件,如{0}", list1.FirstOrDefault())); return; diff --git a/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs b/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs index b5cc295..8b3cb9e 100644 --- a/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs +++ b/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs @@ -219,7 +219,7 @@ namespace SCP.PlanData } List list1 = new List(); list1 = CheckPartCode(partCodeList); - if (list1 != new List()) + if (list1.Count()>0) { Alert.Show(string.Format("导入文件中有不存在的零件,如{0}", list1.FirstOrDefault())); return; diff --git a/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs b/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs index 5e08574..b27fb9e 100644 --- a/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs +++ b/北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs @@ -218,7 +218,7 @@ namespace SCP.Views.PlanData } List list1 = new List(); list1 = CheckPartCode(partCodeList); - if (list1 != new List()) + if (list1.Count()>0) { Alert.Show(string.Format("导入文件中有不存在的零件,如{0}", list1.FirstOrDefault())); return;