This commit is contained in:
@@ -137,21 +137,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;
|
||||
@@ -168,7 +168,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++;
|
||||
@@ -179,7 +179,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;
|
||||
@@ -196,7 +196,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;
|
||||
@@ -213,7 +213,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;
|
||||
@@ -230,7 +230,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;
|
||||
@@ -246,7 +246,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;
|
||||
@@ -262,7 +262,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;
|
||||
@@ -280,7 +280,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;
|
||||
@@ -312,7 +312,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;
|
||||
@@ -328,7 +328,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;
|
||||
@@ -345,7 +345,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;
|
||||
@@ -361,7 +361,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;
|
||||
@@ -377,7 +377,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;
|
||||
@@ -393,7 +393,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;
|
||||
@@ -409,7 +409,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;
|
||||
@@ -425,7 +425,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;
|
||||
@@ -441,7 +441,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;
|
||||
@@ -459,7 +459,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;
|
||||
@@ -477,7 +477,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;
|
||||
@@ -495,7 +495,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;
|
||||
@@ -762,7 +762,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++;
|
||||
@@ -799,7 +799,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++;
|
||||
rowno++;
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -105,21 +105,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(6).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Column(7).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Column(8).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
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.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
int col = 1;
|
||||
int row = 4;
|
||||
@@ -134,7 +134,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A1:H1").Merge().Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A1:H1").Merge().Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("D2:E2").Merge().Value = "ค่าเป้าหมาย ปี " + _kpi.academic_year.Substring(2, 2);
|
||||
ws.Range("D2:E2").Style.Font.Bold = true;
|
||||
|
||||
@@ -97,35 +97,35 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(13).Width = 40;
|
||||
ws.Column(14).Width = 40;
|
||||
ws.Column(15).Width = 40;
|
||||
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.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
ws.Column(9).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(9).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(9).Style.Font.FontSize = 16;
|
||||
ws.Column(10).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(10).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(10).Style.Font.FontSize = 16;
|
||||
ws.Column(11).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(11).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(11).Style.Font.FontSize = 16;
|
||||
ws.Column(12).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(12).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(12).Style.Font.FontSize = 16;
|
||||
ws.Column(13).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(13).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(13).Style.Font.FontSize = 16;
|
||||
ws.Column(14).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(14).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(14).Style.Font.FontSize = 16;
|
||||
ws.Column(15).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(15).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(15).Style.Font.FontSize = 16;
|
||||
int col = 1;
|
||||
int row = 4;
|
||||
@@ -192,7 +192,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,15)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -54,15 +54,15 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(3).Width = 20;
|
||||
ws.Column(4).Width = 30;
|
||||
ws.Column(5).Width = 30;
|
||||
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;
|
||||
int col = 1;
|
||||
int row = 3;
|
||||
@@ -110,7 +110,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,5)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace rmutr_report.Controllers
|
||||
" มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("A1:AD1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A1:AD1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -254,7 +254,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(25).Width = 10;
|
||||
ws.Column(26).Width = 10;
|
||||
ws.Column(27).Width = 10;
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A2:AD3").Style.Font.FontSize = 16;
|
||||
ws.Range("A2:AD3").Style.Fill.BackgroundColor =
|
||||
XLColor.Bisque;
|
||||
@@ -310,7 +310,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -365,7 +365,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -421,7 +421,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -475,7 +475,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -529,7 +529,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.BabyBlue;
|
||||
@@ -584,7 +584,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -652,7 +652,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
// ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -708,7 +708,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.Gainsboro;
|
||||
@@ -771,7 +771,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -829,7 +829,7 @@ namespace rmutr_report.Controllers
|
||||
header.female5 + header.female6;
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor = XLColor.White;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, 30)).Style.Fill.BackgroundColor = XLColor.White;
|
||||
@@ -892,7 +892,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -945,7 +945,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 28).Value = null;
|
||||
ws.Cell(row, 29).Value = null;
|
||||
ws.Cell(row, 30).Value = null;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.White;
|
||||
|
||||
@@ -43,50 +43,50 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A4:A6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A4:A6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A4:A6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("A4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A4").Style.Font.FontSize = 14;
|
||||
ws.Range("B4:B6").Merge().Value = "รายการ";
|
||||
ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("B4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("B4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("B4").Style.Font.FontSize = 14;
|
||||
ws.Range("C5:E5").Merge().Value = "ประเภทของครุภัณฑ์";
|
||||
ws.Range("C5:E5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("C5:E5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("C5:E5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("C5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("C5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C5").Style.Font.FontSize = 11;
|
||||
ws.Range("C6").Value = "ทดแทนของเดิม";
|
||||
ws.Cell("C6").Style.Alignment.WrapText = true;
|
||||
ws.Cell("C6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("C6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("C6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("C6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("C6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C6").Style.Font.FontSize = 11;
|
||||
ws.Range("D6").Value = "เพิ่มประสิทธิภาพ";
|
||||
ws.Cell("D6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("D6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D6").Style.Font.FontSize = 11;
|
||||
ws.Cell("D6").Style.Alignment.WrapText = true;
|
||||
ws.Cell("D6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("D6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("D6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("E6").Value = "ครุภัณฑ์ใหม่";
|
||||
ws.Cell("E6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("E6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E6").Style.Font.FontSize = 11;
|
||||
ws.Cell("E6").Style.Alignment.WrapText = true;
|
||||
ws.Cell("E6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("E6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("E6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("F5:F6").Merge().Value = "หน่วยนับ";
|
||||
ws.Cell("F5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("F5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F5").Style.Font.FontSize = 12;
|
||||
//ws.Range("F3").Style.Font.Bold = true;
|
||||
ws.Range("F5:F6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("F5:F6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("F5:F6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("G5:G6").Merge().Value = "จำนวน";
|
||||
ws.Cell("G5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("G5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("G5").Style.Font.FontSize = 12;
|
||||
//ws.Range("G3").Style.Font.Bold = true;
|
||||
ws.Range("G5:G6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -94,27 +94,27 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("G5:G6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("G5").Style.Alignment.SetTextRotation(90);
|
||||
ws.Range("H5:H6").Merge().Value = "ราคาต่อหน่วย";
|
||||
ws.Cell("H5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H5").Style.Font.FontSize = 12;
|
||||
//ws.Range("H3").Style.Font.Bold = true;
|
||||
ws.Range("H5:H6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("H5:H6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("H5:H6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("I4:M4").Merge().Value = "แผนความต้องการครุภัณฑ์";
|
||||
ws.Cell("I4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I4").Style.Font.FontSize = 14;
|
||||
//ws.Range("I2").Style.Font.Bold = true;
|
||||
ws.Range("I4:M4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("I4:M4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("I4:M4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("I5:M5").Merge().Value = "วงเงิน";
|
||||
ws.Cell("I5").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I5").Style.Font.FontSize = 14;
|
||||
ws.Range("I5:M5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("I5:M5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("I5:M5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("N4:N6").Merge().Value = "คำอธิบายความพร้อม/ประโยชน์ที่จะได้รับ";
|
||||
ws.Cell("N4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("N4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("N4").Style.Font.FontSize = 14;
|
||||
ws.Cell("N4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("N4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -157,39 +157,39 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A3:N3").Merge().Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A1:A3").Style.Font.Bold = true;
|
||||
ws.Range("A1:A3").Style.Font.FontSize = 16;
|
||||
ws.Range("A1:A3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("A1:A3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("C4:H4").Merge().Value = "ปี " + summary_of_equipments.academic_year;
|
||||
ws.Cell("C4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("C4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C4").Style.Font.FontSize = 14;
|
||||
ws.Range("C4:H4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("C4:H4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("C4:H4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("I6").Value = summary_of_equipments.budget_year_1;
|
||||
ws.Cell("I6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I6").Style.Font.FontSize = 12;
|
||||
ws.Cell("I6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("I6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("I6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("J6").Value = summary_of_equipments.budget_year_2;
|
||||
ws.Cell("J6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("J6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("J6").Style.Font.FontSize = 12;
|
||||
ws.Cell("J6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("J6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("J6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("K6").Value = summary_of_equipments.budget_year_3;
|
||||
ws.Cell("K6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("K6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("K6").Style.Font.FontSize = 12;
|
||||
ws.Cell("K6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("K6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("K6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("L6").Value = summary_of_equipments.budget_year_4;
|
||||
ws.Cell("L6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("L6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("L6").Style.Font.FontSize = 12;
|
||||
ws.Cell("L6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("L6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("L6").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("M6").Value = summary_of_equipments.budget_year_5;
|
||||
ws.Cell("M6").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("M6").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("M6").Style.Font.FontSize = 12;
|
||||
ws.Cell("M6").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("M6").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -228,7 +228,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 14).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Font.FontSize = 11;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 14)).Style.Alignment.Vertical =
|
||||
@@ -317,57 +317,57 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A1:P1").Merge().Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A1:P1").Merge().Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("A2:A4").Merge().Value = "ลำดับความสำคัญ(1)";
|
||||
ws.Cell("A2").Style.Alignment.WrapText = true;
|
||||
ws.Range("A2:A4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A2:A4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A2:A4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("A2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 14;
|
||||
ws.Range("B2:B4").Merge().Value = "รายการ";
|
||||
ws.Cell("B2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("B2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("B2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("B2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("B2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("B2").Style.Font.FontSize = 14;
|
||||
ws.Range("C3:E3").Merge().Value = "ประเภทของครุภัณฑ์";
|
||||
ws.Range("C3:E3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("C3:E3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("C3:E3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("C3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("C3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C3").Style.Font.FontSize = 11;
|
||||
ws.Range("C4").Value = "ทดแทนของเดิม";
|
||||
ws.Cell("C4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("C4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("C4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("C4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("C4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("C4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C4").Style.Font.FontSize = 11;
|
||||
ws.Range("D4").Value = "เพิ่มประสิทธิภาพ";
|
||||
ws.Cell("D4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("D4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D4").Style.Font.FontSize = 11;
|
||||
ws.Cell("D4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("D4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("D4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("D4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("E4").Value = "ครุภัณฑ์ใหม่";
|
||||
ws.Cell("E4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("E4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E4").Style.Font.FontSize = 11;
|
||||
ws.Cell("E4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("E4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("E4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("E4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("F3:F4").Merge().Value = "หน่วยนับ";
|
||||
ws.Cell("F3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("F3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F3").Style.Font.FontSize = 12;
|
||||
//ws.Range("F3").Style.Font.Bold = true;
|
||||
ws.Range("F3:F4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("F3:F4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("F3:F4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("G3:G4").Merge().Value = "จำนวน";
|
||||
ws.Cell("G3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("G3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("G3").Style.Font.FontSize = 12;
|
||||
//ws.Range("G3").Style.Font.Bold = true;
|
||||
ws.Range("G3:G4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -375,41 +375,41 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("G3:G4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("G3").Style.Alignment.SetTextRotation(90);
|
||||
ws.Range("H3:H4").Merge().Value = "ราคาต่อหน่วย";
|
||||
ws.Cell("H3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H3").Style.Font.FontSize = 12;
|
||||
//ws.Range("H3").Style.Font.Bold = true;
|
||||
ws.Range("H3:H4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("H3:H4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("H3:H4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("I2:M2").Merge().Value = "แผนความต้องการครุภัณฑ์";
|
||||
ws.Cell("I2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I2").Style.Font.FontSize = 14;
|
||||
//ws.Range("I2").Style.Font.Bold = true;
|
||||
ws.Range("I2:M2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("I2:M2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("I2:M2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("I3:M3").Merge().Value = "วงเงิน";
|
||||
ws.Cell("I3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I3").Style.Font.FontSize = 14;
|
||||
ws.Range("I3:M3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("I3:M3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("I3:M3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("N4").Value = "วงเงิน";
|
||||
ws.Cell("N4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("N4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("N4").Style.Font.FontSize = 12;
|
||||
//ws.Range("N4").Style.Font.Bold = true;
|
||||
ws.Cell("N4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("N4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("N4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("O4").Value = "ชื่อบริษัท";
|
||||
ws.Cell("O4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("O4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("O4").Style.Font.FontSize = 12;
|
||||
//ws.Range("O4").Style.Font.Bold = true;
|
||||
ws.Cell("O4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("O4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("O4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("P2:P4").Merge().Value = "คำอธิบายความพร้อม/ประโยชน์ที่จะได้รับ";
|
||||
ws.Cell("P2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("P2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("P2").Style.Font.FontSize = 14;
|
||||
//ws.Cell("P2").Style.Font.Bold = true;
|
||||
ws.Cell("P2").Style.Alignment.WrapText = true;
|
||||
@@ -442,43 +442,43 @@ namespace rmutr_report.Controllers
|
||||
if (summary_of_equipments != null)
|
||||
{
|
||||
ws.Range("C2:H2").Merge().Value = "ปี " + summary_of_equipments.academic_year;
|
||||
ws.Cell("C2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("C2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C2").Style.Font.FontSize = 14;
|
||||
ws.Range("C2:H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("C2:H2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("C2:H2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("I4").Value = summary_of_equipments.budget_year_1;
|
||||
ws.Cell("I4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I4").Style.Font.FontSize = 12;
|
||||
ws.Cell("I4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("I4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("I4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("J4").Value = summary_of_equipments.budget_year_2;
|
||||
ws.Cell("J4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("J4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("J4").Style.Font.FontSize = 12;
|
||||
ws.Cell("J4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("J4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("J4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("K4").Value = summary_of_equipments.budget_year_3;
|
||||
ws.Cell("K4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("K4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("K4").Style.Font.FontSize = 12;
|
||||
ws.Cell("K4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("K4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("K4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("L4").Value = summary_of_equipments.budget_year_4;
|
||||
ws.Cell("L4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("L4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("L4").Style.Font.FontSize = 12;
|
||||
ws.Cell("L4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("L4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("L4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("M4").Value = summary_of_equipments.budget_year_5;
|
||||
ws.Cell("M4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("M4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("M4").Style.Font.FontSize = 12;
|
||||
ws.Cell("M4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("M4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("M4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("N2:O3").Merge().Value = "ใบเสนอราคาครุภัณฑ์ ปี " + summary_of_equipments.academic_year;
|
||||
ws.Cell("N2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("N2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("N2").Style.Font.FontSize = 14;
|
||||
ws.Range("N2:O3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("N2:O3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -521,7 +521,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontSize = 12;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.Vertical =
|
||||
@@ -583,7 +583,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontSize = 12;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.Vertical =
|
||||
@@ -647,7 +647,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontSize = 12;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.Vertical =
|
||||
@@ -712,7 +712,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontSize = 12;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.Vertical =
|
||||
@@ -776,7 +776,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 16).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Font.FontSize = 12;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 16)).Style.Alignment.Vertical =
|
||||
@@ -969,18 +969,18 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A2:A4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A2:A4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A2:A4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("A2:A4").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("A2:A4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 14;
|
||||
ws.Range("A2:A4").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("B2:B4").Merge().Value = "รายการ";
|
||||
ws.Cell("B2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("B2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("B2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("B2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("B2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("B2").Style.Font.FontSize = 14;
|
||||
ws.Range("B2:B4").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("C2:C4").Merge().Value = "จำนวน";
|
||||
ws.Cell("C2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("C2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C2").Style.Font.FontSize = 14;
|
||||
ws.Range("C2:C4").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("C2:C4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -988,7 +988,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("C2:C4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("C3").Style.Alignment.SetTextRotation(90);
|
||||
ws.Range("D2:F2").Merge().Value = "อายุการใช้งาน";
|
||||
ws.Cell("D2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("D2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D2").Style.Font.FontSize = 14;
|
||||
ws.Range("D2:F2").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("D2:F2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -996,21 +996,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("D2:F2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("D3").Value = "ต่ำกว่า 10 ปี";
|
||||
ws.Cell("D3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("D3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("D3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D3").Style.Font.FontSize = 10;
|
||||
ws.Cell("D3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("D3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("D3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("E3").Value = "10-20 ปี";
|
||||
ws.Cell("E3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("E3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("E3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E3").Style.Font.FontSize = 10;
|
||||
ws.Cell("E3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("E3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("E3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("F3").Value = "มากกว่า 20 ปี";
|
||||
ws.Cell("F3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("F3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("F3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F3").Style.Font.FontSize = 10;
|
||||
ws.Cell("F3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("F3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -1020,14 +1020,14 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("E4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("F4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("G2:G4").Merge().Value = "ปัญหาของอาคาร";
|
||||
ws.Cell("G2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("G2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("G2").Style.Font.FontSize = 14;
|
||||
ws.Range("G2:G4").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("G2:G4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("G2:G4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("G2:G4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:I2").Merge().Value = "ประเภท";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H2").Style.Font.FontSize = 14;
|
||||
ws.Range("H2:I2").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("H2:I2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -1035,13 +1035,13 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H2:I2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("H3").Value = "ทดแทนอาคารเดิม";
|
||||
ws.Cell("H3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H3").Style.Font.FontSize = 10;
|
||||
ws.Cell("H3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("I3").Value = "อาคารใหม่";
|
||||
ws.Cell("I3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("I3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I3").Style.Font.FontSize = 10;
|
||||
ws.Cell("I3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -1050,7 +1050,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("H3:I3").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("J2:J3").Merge().Value = "ปรับปรุง/ซ่อมแซม/ต่อเติม";
|
||||
ws.Range("J2:J3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("J2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("J2").Style.Font.FontSize = 14;
|
||||
ws.Range("J2:J3").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("J2:J3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -1061,7 +1061,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("K2:K3").Merge().Value = "วงเงินที่จะเสนอของบประมาณ";
|
||||
ws.Range("K2:K3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("K2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("K2").Style.Font.FontSize = 14;
|
||||
ws.Range("K2:K3").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("K2:K3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -1070,7 +1070,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("K4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("L2:P2").Merge().Value = "ปีงบประมาณที่จะเสนอขอ";
|
||||
ws.Range("L2:P2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("L2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("L2").Style.Font.FontSize = 14;
|
||||
ws.Range("L2:P2").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("L2:P2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -1079,13 +1079,13 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("L4:P4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Q3").Value = "BOQ";
|
||||
ws.Cell("Q3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Q3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("Q3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("Q3").Style.Font.FontSize = 10;
|
||||
ws.Cell("Q3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("Q3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("Q3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("R3").Value = "แบบรูป";
|
||||
ws.Cell("R3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("R3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("R3").Style.Font.FontSize = 10;
|
||||
ws.Range("Q3:R3").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Cell("R3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -1094,7 +1094,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("Q4:R4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("S2:S3").Merge().Value = "คำอธิบาย";
|
||||
ws.Range("S2:S3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("S2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("S2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("S2").Style.Font.FontSize = 14;
|
||||
ws.Range("S2:S3").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Range("S2:S3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -1149,38 +1149,38 @@ namespace rmutr_report.Controllers
|
||||
// ws.Range("A3:S3").Merge().Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
// ws.Range("A1:A3").Style.Font.Bold = true;
|
||||
// ws.Range("A1:A3").Style.Font.FontSize = 16;
|
||||
// ws.Range("A1:A3").Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range("A1:A3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("L3").Value = summary_building_constructions.budget_year_1;
|
||||
ws.Cell("L3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("L3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("L3").Style.Font.FontSize = 10;
|
||||
ws.Cell("L3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("L3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("L3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("M3").Value = summary_building_constructions.budget_year_2;
|
||||
ws.Cell("M3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("M3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("M3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("M3").Style.Font.FontSize = 10;
|
||||
ws.Cell("M3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("M3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("M3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("N3").Value = summary_building_constructions.budget_year_3;
|
||||
ws.Cell("N3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("N3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("N3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("N3").Style.Font.FontSize = 10;
|
||||
ws.Cell("N3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("N3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("N3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("O3").Value = summary_building_constructions.budget_year_4;
|
||||
ws.Cell("O3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("O3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("O3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("O3").Style.Font.FontSize = 10;
|
||||
ws.Cell("O3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("O3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("O3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("P3").Value = summary_building_constructions.budget_year_5;
|
||||
ws.Cell("P3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("P3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("P3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("P3").Style.Font.FontSize = 10;
|
||||
ws.Cell("P3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("P3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -1189,7 +1189,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("Q2:R2").Merge().Value = "ความพร้อมสิ่งก่อสร้าง ปี " +
|
||||
summary_building_constructions.academic_year;
|
||||
ws.Range("Q2:R2").Style.Fill.BackgroundColor = XLColor.MistyRose;
|
||||
ws.Cell("Q2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("Q2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("Q2").Style.Font.FontSize = 14;
|
||||
ws.Range("Q2:R2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("Q2:R2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -1240,7 +1240,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontSize = 11;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.Vertical =
|
||||
@@ -1311,7 +1311,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontSize = 11;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.Vertical =
|
||||
@@ -1384,7 +1384,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontSize = 11;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.Vertical =
|
||||
@@ -1461,7 +1461,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontSize = 11;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.Vertical =
|
||||
@@ -1538,7 +1538,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 18).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 19).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontName =
|
||||
"TH Sarabun New";
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Font.FontSize = 11;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 19)).Style.Alignment.Vertical =
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace rmutr_report.Controllers
|
||||
" มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("A1:AD1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A1:AD1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -257,7 +257,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(25).Width = 10;
|
||||
ws.Column(26).Width = 10;
|
||||
ws.Column(27).Width = 10;
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A2:AD3").Style.Font.FontSize = 16;
|
||||
ws.Range("A2:AD3").Style.Fill.BackgroundColor =
|
||||
XLColor.Bisque;
|
||||
@@ -313,7 +313,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -367,7 +367,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 28).Value = detail.female7;
|
||||
// ws.Cell(row, 29).Value = detail.total7;
|
||||
// ws.Cell(row, 30).Value = detail.room7;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -421,7 +421,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -477,7 +477,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -534,7 +534,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor = XLColor.White;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, 30)).Style.Fill.BackgroundColor = XLColor.White;
|
||||
@@ -586,7 +586,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 28).Value = detail.female7;
|
||||
// ws.Cell(row, 29).Value = detail.total7;
|
||||
// ws.Cell(row, 30).Value = detail.room7;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// // ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
// // ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -638,7 +638,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -694,7 +694,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.MintGreen;
|
||||
@@ -759,7 +759,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -816,7 +816,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.BabyBlue;
|
||||
@@ -881,7 +881,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -937,7 +937,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.Gainsboro;
|
||||
@@ -1001,7 +1001,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -1057,7 +1057,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 28).Value = null;
|
||||
ws.Cell(row, 29).Value = null;
|
||||
ws.Cell(row, 30).Value = null;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.White;
|
||||
|
||||
@@ -88,25 +88,25 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(9).Width = 20;
|
||||
ws.Column(10).Width = 30;
|
||||
|
||||
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.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
ws.Column(9).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(9).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(9).Style.Font.FontSize = 16;
|
||||
ws.Column(10).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(10).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(10).Style.Font.FontSize = 16;
|
||||
|
||||
int col = 1;
|
||||
@@ -164,7 +164,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
@@ -74,25 +74,25 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(8).Width = 10;
|
||||
ws.Column(9).Width = 20;
|
||||
ws.Column(10).Width = 30;
|
||||
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.Column(8).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(8).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(8).Style.Font.FontSize = 16;
|
||||
ws.Column(9).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(9).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(9).Style.Font.FontSize = 16;
|
||||
ws.Column(10).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Column(10).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Column(10).Style.Font.FontSize = 16;
|
||||
int col = 1;
|
||||
int row = 3;
|
||||
@@ -150,7 +150,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontSize = 16;
|
||||
row++;
|
||||
rowno++;
|
||||
|
||||
Reference in New Issue
Block a user