1、项目级看板补充月计划完成情况和周计划完成情况
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using NPOI.SS.UserModel;
|
||||
using NPOI.SS.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -83,7 +84,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
else if (state == "2" || state == "3")
|
||||
{
|
||||
Grid1.Rows[i].CellCssClasses[6] = "blue";
|
||||
}
|
||||
}
|
||||
else if (state == "4")
|
||||
{
|
||||
Grid1.Rows[i].CellCssClasses[6] = "red";
|
||||
@@ -496,7 +497,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
int i = 2;
|
||||
for (int j = 0; j < tb.Rows.Count; j++)
|
||||
{
|
||||
string state = tb.Rows[j]["State"].ToString();
|
||||
string state = tb.Rows[j]["State"].ToString().Trim();
|
||||
string createDate = string.Empty;
|
||||
if (tb.Rows[j]["CreateDate"] != DBNull.Value)
|
||||
{
|
||||
@@ -534,7 +535,23 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
cell.CellStyle = cellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["GJSXTypeName"].ToString());
|
||||
cell = row.CreateCell(6);
|
||||
cell.CellStyle = cellStyle;
|
||||
var stateCellStyle = cellStyle;
|
||||
//if (state == "0")
|
||||
//{
|
||||
// stateCellStyle.FillForegroundColor = IndexedColors.Green.Index;
|
||||
// //stateCellStyle.FillBackgroundColor = IndexedColors.Green.Index;
|
||||
//}
|
||||
//else if (state == "2" || state == "3")
|
||||
//{
|
||||
// //stateCellStyle.FillForegroundColor = IndexedColors.Blue.Index;
|
||||
// stateCellStyle.FillBackgroundColor = IndexedColors.Blue.Index;
|
||||
//}
|
||||
//else if (state == "4")
|
||||
//{
|
||||
// //stateCellStyle.FillForegroundColor = IndexedColors.Red.Index;
|
||||
// stateCellStyle.FillBackgroundColor = IndexedColors.Red.Index;
|
||||
//}
|
||||
cell.CellStyle = stateCellStyle;
|
||||
cell.SetCellValue(tb.Rows[j]["StateStr"].ToString());
|
||||
cell = row.CreateCell(7);
|
||||
cell.CellStyle = cellStyle;
|
||||
|
||||
Reference in New Issue
Block a user