This commit is contained in:
2021-08-20 10:00:34 +08:00
parent f7f5a70066
commit 64655b051c
2 changed files with 13 additions and 5 deletions
@@ -306,11 +306,20 @@ namespace FineUIPro.Web.HSSE.SitePerson
ShowNotify("请选择证件类型!", MessageBoxIcon.Warning);
return;
}
if (string.IsNullOrEmpty(this.txtIdentityCard.Text))
string IdCard = this.txtIdentityCard.Text;
if (string.IsNullOrEmpty(IdCard))
{
ShowNotify("证件号码不能为空!", MessageBoxIcon.Warning);
return;
}
else
{
if (this.drpIdcardType.SelectedValue == "SHENFEN_ZHENGJIAN" && (IdCard.Length != 18 && IdCard.Length != 15))
{
ShowNotify("身份证号码位数不对!", MessageBoxIcon.Warning);
return;
}
}
//if (string.IsNullOrEmpty(this.txtIdcardStartDate.Text))
//{
// ShowNotify("证件开始日期不能为空!", MessageBoxIcon.Warning);