提交代码
This commit is contained in:
parent
e31c69eed6
commit
d9b784a3d4
|
@ -186,12 +186,16 @@ 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 (!IDCardValid.CheckIDCard(idCard))
|
if (project.IsForeign == null || project.IsForeign == false)
|
||||||
{
|
{
|
||||||
Grid1.Rows[i].RowCssClass = "Red";
|
if (!IDCardValid.CheckIDCard(idCard))
|
||||||
|
{
|
||||||
|
Grid1.Rows[i].RowCssClass = "Red";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue