diff --git a/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs b/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs index 2d46cf9..45d6986 100644 --- a/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs +++ b/北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs @@ -247,13 +247,16 @@ namespace SCP.PlanData FileUp.Reset(); return; } - // 行号去重 - List polineList = list.Select(a => a.行号.Trim()).Distinct().ToList(); - if (polineList.Count() != list.Count()) + if (p_modtype == BillModType.Contract) { - Alert.Show("行号不允许重复!"); - FileUp.Reset(); - return; + // 行号去重 + List 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)