This commit is contained in:
2023-09-22 17:36:00 +08:00
parent dece3781ec
commit 9942cdcf6f
49 changed files with 2907 additions and 2375 deletions
@@ -106,7 +106,29 @@ namespace FineUIPro.Web.HSSE.QualityAudit
var table = this.GetPagedDataTable(Grid1, tb);
this.Grid1.DataSource = table;
this.Grid1.DataBind();
}
for (int i = 0; i < Grid1.Rows.Count; i++)
{
string limitstr = Grid1.Rows[i].Values[8].ToString();
if(!string.IsNullOrEmpty(limitstr))
{
DateTime limitDate = DateTime.Parse(limitstr);
if (limitDate.AddMonths(-3)<=DateTime.Now)
{
Grid1.Rows[i].RowCssClass = "Red";
}
else
{
Grid1.Rows[i].RowCssClass = "";
}
}
else
{
Grid1.Rows[i].RowCssClass = "Red";
}
}
}
/// <summary>
/// 改变索引事件
@@ -272,5 +294,7 @@ namespace FineUIPro.Web.HSSE.QualityAudit
return sb.ToString();
}
#endregion
}
}