修改黑名单使用

This commit is contained in:
潘鸿锋 2024-07-17 17:08:36 +08:00
parent eeded7f163
commit b29d14ef34
1 changed files with 7 additions and 0 deletions

View File

@ -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))
//{