111
This commit is contained in:
@@ -283,7 +283,40 @@ namespace FineUIPro.Web.Report
|
||||
reportModel.GetRow(rowIndex).GetCell(5).CellStyle = styleCenter;
|
||||
//Act. Type
|
||||
if (reportModel.GetRow(rowIndex).GetCell(6) == null) reportModel.GetRow(rowIndex).CreateCell(6);
|
||||
reportModel.GetRow(rowIndex).GetCell(6).SetCellValue(table.Rows[i]["ActType"].ToString());
|
||||
if (table.Rows[i]["Type"].ToString().Contains("T01_OverTime"))
|
||||
{
|
||||
string actType = table.Rows[i]["ActType"].ToString();
|
||||
if (actType.Contains("2"))
|
||||
{
|
||||
string actStr = actType + "1";
|
||||
reportModel.GetRow(rowIndex).GetCell(6).SetCellValue(actStr);
|
||||
}
|
||||
}
|
||||
else if (table.Rows[i]["Type"].ToString().Contains("T02_OverTime"))
|
||||
{
|
||||
string actType = table.Rows[i]["ActType"].ToString();
|
||||
if (actType.Contains("2"))
|
||||
{
|
||||
string actStr = actType + "2";
|
||||
reportModel.GetRow(rowIndex).GetCell(6).SetCellValue(actStr);
|
||||
}
|
||||
}
|
||||
|
||||
else if (table.Rows[i]["Type"].ToString().Contains("T03_OverTime"))
|
||||
{
|
||||
string actType = table.Rows[i]["ActType"].ToString();
|
||||
if (actType.Contains("2"))
|
||||
{
|
||||
string actStr = actType + "3";
|
||||
reportModel.GetRow(rowIndex).GetCell(6).SetCellValue(actStr);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
reportModel.GetRow(rowIndex).GetCell(6).SetCellValue(table.Rows[i]["ActType"].ToString());
|
||||
}
|
||||
|
||||
reportModel.GetRow(rowIndex).GetCell(6).CellStyle = styleCenter;
|
||||
//Hours
|
||||
if (!string.IsNullOrEmpty(table.Rows[i]["Hours"].ToString()))
|
||||
|
||||
Reference in New Issue
Block a user