提交代码

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