Browse Source

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

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

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

@ -247,6 +247,8 @@ namespace SCP.PlanData
FileUp.Reset(); FileUp.Reset();
return; return;
} }
if (p_modtype == BillModType.Contract)
{
// 行号去重 // 行号去重
List<string> polineList = list.Select(a => a..Trim()).Distinct().ToList(); List<string> polineList = list.Select(a => a..Trim()).Distinct().ToList();
if (polineList.Count() != list.Count()) if (polineList.Count() != list.Count())
@ -255,6 +257,7 @@ namespace SCP.PlanData
FileUp.Reset(); FileUp.Reset();
return; return;
} }
}
var checkret = SCP_PO_CONTROLLER.Check_EXCEL_PO_MOD(list, p_modtype, CurrentUser.FactoryList[0], CurrentUser.SubSiteList[0]); 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) if (checkret.State == ReturnStatus.Failed && checkret.Result == false)
{ {

Loading…
Cancel
Save