提交代码
This commit is contained in:
@@ -187,6 +187,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
ir = pds.Rows.Count;
|
||||
if (pds != null && ir > 0)
|
||||
{
|
||||
var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||
var units = from x in Funs.DB.Base_Unit
|
||||
select x;
|
||||
var cnProfessionals = from x in Funs.DB.Base_CNProfessional select x;
|
||||
@@ -254,9 +255,12 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "身份证号码" + "," + "[" + col4 + "]已存在!" + "|";
|
||||
}
|
||||
if (!IDCardValid.CheckIDCard(col4))
|
||||
if (project.IsForeign == null || project.IsForeign == false)
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "身份证号码" + "," + "[" + col4 + "]非法!" + "|";
|
||||
if (!IDCardValid.CheckIDCard(col4))
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "身份证号码" + "," + "[" + col4 + "]非法!" + "|";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user