修改黑名单使用
This commit is contained in:
parent
eeded7f163
commit
b29d14ef34
|
@ -339,6 +339,13 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
ShowNotify("身份证号码位数不对!", MessageBoxIcon.Warning);
|
ShowNotify("身份证号码位数不对!", MessageBoxIcon.Warning);
|
||||||
return;
|
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))
|
//if (string.IsNullOrEmpty(this.txtIdcardStartDate.Text))
|
||||||
//{
|
//{
|
||||||
|
|
Loading…
Reference in New Issue