事项看板展示优化
This commit is contained in:
@@ -79,21 +79,27 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
if (state == "0")
|
||||
{
|
||||
//Grid1.Rows[i].RowCssClass = "green";
|
||||
Grid1.Rows[i].CellCssClasses[5] = "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[5] = "red";
|
||||
//Grid1.Rows[i].Cells[5].Text = "red";
|
||||
}
|
||||
else
|
||||
{
|
||||
//Grid1.Rows[i].RowCssClass = "blue";
|
||||
Grid1.Rows[i].CellCssClasses[5] = "blue";
|
||||
}
|
||||
Grid1.Rows[i].CellCssClasses[6] = "blue";
|
||||
//if (DateTime.Now > dtCompleteDate.AddDays(1))
|
||||
//{
|
||||
// //Grid1.Rows[i].RowCssClass = "red";
|
||||
// Grid1.Rows[i].CellCssClasses[6] = "red";
|
||||
// //var ssss = Grid1.Rows[i].;
|
||||
// //Grid1.Rows[i].Cells[6].Text = "超期";
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// //Grid1.Rows[i].RowCssClass = "blue";
|
||||
// Grid1.Rows[i].CellCssClasses[6] = "blue";
|
||||
//}
|
||||
}
|
||||
else if (state == "4")
|
||||
{
|
||||
Grid1.Rows[i].CellCssClasses[6] = "red";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,14 +131,14 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
int i = 0;
|
||||
foreach (var item in stateList)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item) && item != BLL.Const._Null && item != "4")
|
||||
{
|
||||
strSql += $" OR state = '{item}' ";
|
||||
}
|
||||
else if (item == "4")
|
||||
{
|
||||
strSql += " OR (state <> '0' and getdate() > DATEADD(day, 1, CompleteDate)) ";
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(item) && item != BLL.Const._Null && item != "4")
|
||||
//{
|
||||
strSql += $" OR state = '{item}' ";
|
||||
//}
|
||||
//else if (item == "4")
|
||||
//{
|
||||
// strSql += " OR (state <> '0' and getdate() > DATEADD(day, 1, CompleteDate)) ";
|
||||
//}
|
||||
i++;
|
||||
}
|
||||
strSql += ")";
|
||||
@@ -527,41 +533,44 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
cell.SetCellValue((i - 1).ToString());
|
||||
cell = row.CreateCell(1);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["QuestionTypeName"].ToString());
|
||||
cell.SetCellValue(tb.Rows[j]["GJSXID"].ToString());
|
||||
cell = row.CreateCell(2);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["CNProfessionalID"].ToString());
|
||||
cell.SetCellValue(tb.Rows[j]["QuestionTypeName"].ToString());
|
||||
cell = row.CreateCell(3);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["Detail"].ToString());
|
||||
cell.SetCellValue(tb.Rows[j]["CNProfessionalID"].ToString());
|
||||
cell = row.CreateCell(4);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["GJSXTypeName"].ToString());
|
||||
cell.SetCellValue(tb.Rows[j]["Detail"].ToString());
|
||||
cell = row.CreateCell(5);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["StateStr"].ToString());
|
||||
cell.SetCellValue(tb.Rows[j]["GJSXTypeName"].ToString());
|
||||
cell = row.CreateCell(6);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(createDate);
|
||||
cell.SetCellValue(tb.Rows[j]["StateStr"].ToString());
|
||||
cell = row.CreateCell(7);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(completeDate);
|
||||
cell.SetCellValue(createDate);
|
||||
cell = row.CreateCell(8);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(closeDate);
|
||||
cell.SetCellValue(completeDate);
|
||||
cell = row.CreateCell(9);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["unitname"].ToString());
|
||||
cell.SetCellValue(closeDate);
|
||||
cell = row.CreateCell(10);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["username"].ToString());
|
||||
cell.SetCellValue(tb.Rows[j]["unitname"].ToString());
|
||||
cell = row.CreateCell(11);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["User_Acceptance"].ToString());
|
||||
cell.SetCellValue(tb.Rows[j]["username"].ToString());
|
||||
cell = row.CreateCell(12);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["User_Acceptance"].ToString());
|
||||
cell = row.CreateCell(13);
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["User_ReceiveID"].ToString());
|
||||
//cell = row.CreateCell(13);
|
||||
//cell = row.CreateCell(14);
|
||||
//cell.CellStyle = cellStyle;
|
||||
//cell.SetCellValue("");
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user