20230922
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user