From d9b784a3d4657cc70559c2064b4c4f5eab522419 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Wed, 7 Aug 2024 15:00:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs index 1c045f2c..88003dde 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonList.aspx.cs @@ -186,12 +186,16 @@ namespace FineUIPro.Web.HSSE.SitePerson Grid1.RecordCount = PersonService.count; Grid1.DataSource = getData; Grid1.DataBind(); + var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); for (int i = 0; i < Grid1.Rows.Count; i++) { string idCard = Grid1.Rows[i].Values[3].ToString(); - if (!IDCardValid.CheckIDCard(idCard)) + if (project.IsForeign == null || project.IsForeign == false) { - Grid1.Rows[i].RowCssClass = "Red"; + if (!IDCardValid.CheckIDCard(idCard)) + { + Grid1.Rows[i].RowCssClass = "Red"; + } } } }