This commit is contained in:
2021-08-26 11:26:04 +08:00
parent 21b3fd1b44
commit d21c25aabb
13 changed files with 607 additions and 17 deletions
@@ -169,7 +169,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
private void BindGrid()
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
{
string unitId = string.Empty;
if (this.tvProjectAndUnit != null && !string.IsNullOrEmpty(this.tvProjectAndUnit.SelectedNodeID))
{
@@ -186,6 +186,14 @@ namespace FineUIPro.Web.HSSE.SitePerson
Grid1.RecordCount = PersonService.count;
Grid1.DataSource = getData;
Grid1.DataBind();
for (int i = 0; i < Grid1.Rows.Count; i++)
{
string idCard = Grid1.Rows[i].Values[3].ToString();
if (!IDCardValid.CheckIDCard(idCard))
{
Grid1.Rows[i].RowCssClass = "Red";
}
}
}
}
#endregion