From 9eaa7e7a7fcf66a309befdd599656acd5993a561 Mon Sep 17 00:00:00 2001 From: qian Date: Tue, 21 May 2024 16:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=BB=E6=95=A3=E5=8D=95=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=A1=8C=E5=8F=B7=E6=98=AF=E5=90=A6=E9=87=8D?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 北京北汽/SCP/Views/PlanData/SCP_PO.aspx.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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)