质量月报、周报调整
This commit is contained in:
@@ -124,29 +124,22 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
{
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
{
|
||||
var state = tb.Rows[i]["state"].ToString().Trim();
|
||||
var state = tb.Rows[i]["state2"].ToString().Trim();
|
||||
var completeDate = tb.Rows[i]["CompleteDate"].ToString();
|
||||
DateTime dtCompleteDate = Convert.ToDateTime(completeDate);
|
||||
if (Grid1.Rows[i].DataKeys[0] != null && !string.IsNullOrWhiteSpace(state))
|
||||
{
|
||||
if (state == "0")
|
||||
{
|
||||
//Grid1.Rows[i].RowCssClass = "green";
|
||||
Grid1.Rows[i].CellCssClasses[6] = "green";
|
||||
}
|
||||
else if (state == "2" || state == "3")
|
||||
{
|
||||
if (DateTime.Now > dtCompleteDate.AddDays(1))
|
||||
{
|
||||
//Grid1.Rows[i].RowCssClass = "red";
|
||||
Grid1.Rows[i].CellCssClasses[6] = "red";
|
||||
//Grid1.Rows[i].Cells[5].Text = "red";
|
||||
}
|
||||
else
|
||||
{
|
||||
//Grid1.Rows[i].RowCssClass = "blue";
|
||||
Grid1.Rows[i].CellCssClasses[6] = "blue";
|
||||
}
|
||||
Grid1.Rows[i].CellCssClasses[6] = "blue";
|
||||
}
|
||||
else if (state == "4")
|
||||
{
|
||||
Grid1.Rows[i].CellCssClasses[6] = "red";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user