Browse Source

导入判断字符是否合规

master
qian 1 year ago
parent
commit
255ae4733c
  1. 4
      北京北汽/SCP/Business/PageBase.cs
  2. 2
      北京北汽/SCP/Views/BasicData/Price.aspx.cs
  3. 2
      北京北汽/SCP/Views/BasicData/PriceUpdate.aspx.cs
  4. 2
      北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs
  5. 2
      北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs

4
北京北汽/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;
}

2
北京北汽/SCP/Views/BasicData/Price.aspx.cs

@ -262,7 +262,7 @@ namespace SCP.BasicData
}
List<string> list1 = new List<string>();
list1 = CheckPartCode(partCodeList);
if (list1 != new List<string>() )
if (list1.Count()>0 )
{
Alert.Show(string.Format( "导入文件中有不存在的零件,如{0}", list1.FirstOrDefault()));
return;

2
北京北汽/SCP/Views/BasicData/PriceUpdate.aspx.cs

@ -200,7 +200,7 @@ namespace SCP.BasicData
}
List<string> list1 = new List<string>();
list1 = CheckPartCode(partCodeList);
if (list1 != new List<string>())
if (list1.Count()>0)
{
Alert.Show(string.Format("导入文件中有不存在的零件,如{0}", list1.FirstOrDefault()));
return;

2
北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs

@ -219,7 +219,7 @@ namespace SCP.PlanData
}
List<string> list1 = new List<string>();
list1 = CheckPartCode(partCodeList);
if (list1 != new List<string>())
if (list1.Count()>0)
{
Alert.Show(string.Format("导入文件中有不存在的零件,如{0}", list1.FirstOrDefault()));
return;

2
北京北汽/SCP/Views/PlanData/SCP_PO_CQ.aspx.cs

@ -218,7 +218,7 @@ namespace SCP.Views.PlanData
}
List<string> list1 = new List<string>();
list1 = CheckPartCode(partCodeList);
if (list1 != new List<string>())
if (list1.Count()>0)
{
Alert.Show(string.Format("导入文件中有不存在的零件,如{0}", list1.FirstOrDefault()));
return;

Loading…
Cancel
Save