Browse Source

离散单不用校验行号是否重复

master
qian 6 months ago
parent
commit
9eaa7e7a7f
  1. 15
      北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs

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

@ -247,13 +247,16 @@ namespace SCP.PlanData
FileUp.Reset();
return;
}
// 行号去重
List<string> polineList = list.Select(a => a..Trim()).Distinct().ToList();
if (polineList.Count() != list.Count())
if (p_modtype == BillModType.Contract)
{
Alert.Show("行号不允许重复!");
FileUp.Reset();
return;
// 行号去重
List<string> polineList = list.Select(a => a..Trim()).Distinct().ToList();
if (polineList.Count() != list.Count())
{
Alert.Show("行号不允许重复!");
FileUp.Reset();
return;
}
}
var checkret = SCP_PO_CONTROLLER.Check_EXCEL_PO_MOD(list, p_modtype, CurrentUser.FactoryList[0], CurrentUser.SubSiteList[0]);
if (checkret.State == ReturnStatus.Failed && checkret.Result == false)

Loading…
Cancel
Save