This commit is contained in:
@@ -74,7 +74,7 @@ namespace rmutr_report.Controllers
|
||||
// }
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(rowh, col1), ws.Cell(rowh, col1)).Merge().Style.Font.SetBold().Font.FontSize = 16;
|
||||
// col1++;
|
||||
// ws.Cell("H3").Value = _kpi.text1;
|
||||
@@ -146,21 +146,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(22).Width = 10;
|
||||
ws.Column(23).Width = 10;
|
||||
//ws.Range(ws.Cell(1, 1), ws.Cell(1, 30)).Style.Alignment.WrapText = true;
|
||||
ws.Column(1).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(1).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(1).Style.Font.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(2).Style.Font.FontSize = 16;
|
||||
ws.Column(3).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(3).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(3).Style.Font.FontSize = 16;
|
||||
ws.Column(4).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(4).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(4).Style.Font.FontSize = 16;
|
||||
ws.Column(5).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(5).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(5).Style.Font.FontSize = 16;
|
||||
ws.Column(6).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(6).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(6).Style.Font.FontSize = 16;
|
||||
ws.Column(7).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(7).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(7).Style.Font.FontSize = 16;
|
||||
ws.Range("H3:W3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("H3:W3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("H3:W3").Style.Font.FontSize = 16;
|
||||
int col = 8;
|
||||
int rowhead = 3;
|
||||
@@ -180,7 +180,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(rowhead, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowhead, col).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowhead, col).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowhead,col).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell(rowhead,col).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(rowhead,col).Style.Font.FontSize = 16;
|
||||
ws.Cell(rowhead,col).Style.Alignment.WrapText = true;
|
||||
col++;
|
||||
@@ -191,7 +191,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2").Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -206,7 +206,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:I2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -221,7 +221,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:J2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -236,7 +236,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:K2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -251,7 +251,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:L2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -266,7 +266,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:M2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("M2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -281,7 +281,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:N2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("N2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -296,7 +296,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:O2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("O2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -311,7 +311,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:P2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("P2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -326,7 +326,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Q2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Q2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -342,7 +342,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:R2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("R2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -357,7 +357,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:S2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("S2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -372,7 +372,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:T2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("T2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -387,7 +387,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:U2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("U2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -402,7 +402,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:V2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("V2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -417,7 +417,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:W2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("W2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -432,7 +432,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:X2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("X2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -447,7 +447,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Y2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Y2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -462,7 +462,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:Z2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Z2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -477,7 +477,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:AA2").Merge().Value = "แผนปี "+_kpi.plan_year.Substring(2, 2)+" หน่วยงาน";
|
||||
ws.Cell("H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("AA2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -848,7 +848,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Style.Alignment.SetTextRotation(90);
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row,col2).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell(row,col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row,col2).Style.Font.FontSize = 16;
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
@@ -900,7 +900,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 23).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
//ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Alignment.WrapText = true;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Font.FontSize = 16;
|
||||
|
||||
row++;
|
||||
|
||||
Reference in New Issue
Block a user