提交代码

This commit is contained in:
高飞 2024-08-07 15:00:10 +08:00
parent e31c69eed6
commit d9b784a3d4
1 changed files with 6 additions and 2 deletions

View File

@ -186,12 +186,16 @@ namespace FineUIPro.Web.HSSE.SitePerson
Grid1.RecordCount = PersonService.count;
Grid1.DataSource = getData;
Grid1.DataBind();
var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
for (int i = 0; i < Grid1.Rows.Count; i++)
{
string idCard = Grid1.Rows[i].Values[3].ToString();
if (!IDCardValid.CheckIDCard(idCard))
if (project.IsForeign == null || project.IsForeign == false)
{
Grid1.Rows[i].RowCssClass = "Red";
if (!IDCardValid.CheckIDCard(idCard))
{
Grid1.Rows[i].RowCssClass = "Red";
}
}
}
}