bug fixed

This commit is contained in:
kamonwan taengsuk
2023-02-19 13:08:23 +07:00
parent 60836ddc96
commit 6b10902a30
4 changed files with 135 additions and 23 deletions

View File

@@ -184,7 +184,7 @@ namespace rmutr_report.Controllers
ws.Cell(rowhead,col).Style.Font.FontSize = 16;
col++;
var a = _kpi.agencys.Count;
if (a==1)
{
ws.Range("H2").Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
@@ -326,7 +326,7 @@ namespace rmutr_report.Controllers
ws.Range("A1:Q1").Style.Fill.BackgroundColor = XLColor.Yellow;
}
if (a==10)
if (a==11)
{
ws.Range("H2:R2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
@@ -340,7 +340,7 @@ namespace rmutr_report.Controllers
ws.Cell("A1").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A1:R1").Style.Fill.BackgroundColor = XLColor.Yellow;
}
if (a==11)
if (a==12)
{
ws.Range("H2:S2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
@@ -354,7 +354,7 @@ namespace rmutr_report.Controllers
ws.Cell("A1").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A1:S1").Style.Fill.BackgroundColor = XLColor.Yellow;
}
if (a==12)
if (a==13)
{
ws.Range("H2:T2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
@@ -368,7 +368,7 @@ namespace rmutr_report.Controllers
ws.Cell("A1").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A1:T1").Style.Fill.BackgroundColor = XLColor.Yellow;
}
if (a==13)
if (a==14)
{
ws.Range("H2:U2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
@@ -382,7 +382,7 @@ namespace rmutr_report.Controllers
ws.Cell("A1").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A1:U1").Style.Fill.BackgroundColor = XLColor.Yellow;
}
if (a==14)
if (a==15)
{
ws.Range("H2:V2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
@@ -396,7 +396,7 @@ namespace rmutr_report.Controllers
ws.Cell("A1").Style.Font.SetBold().Font.FontSize = 16;
ws.Range("A1:V1").Style.Fill.BackgroundColor = XLColor.Yellow;
}
if (a==15)
if (a==16)
{
ws.Range("H2:W2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;