From b29d14ef3407f74414234add4eaa55133ea0e1fd Mon Sep 17 00:00:00 2001 From: "754998852@qq.com" <754998852@qq.com> Date: Wed, 17 Jul 2024 17:08:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=91=E5=90=8D=E5=8D=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs index 57608a50..ba9c7471 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs @@ -339,6 +339,13 @@ namespace FineUIPro.Web.HSSE.SitePerson ShowNotify("身份证号码位数不对!", MessageBoxIcon.Warning); return; } + //判断是否在黑名单中 + var model = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == IdCard && x.IsBlacklist == true); + if (model!=null) + { + ShowNotify("该身份证号码在系统黑名单中("+ ProjectService.GetProjectNameByProjectId(model.ProjectId) +"),请联系管理员!", MessageBoxIcon.Warning); + return; + } } //if (string.IsNullOrEmpty(this.txtIdcardStartDate.Text)) //{