This commit is contained in:
@@ -469,20 +469,20 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("A1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell("A1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 14;
|
||||
ws.Cell("A1").Style.Font.FontSize = 10;
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
|
||||
ws.Cell("A2").Value = personnel.agency_name_th;
|
||||
ws.Cell("A2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell("A2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 14;
|
||||
ws.Cell("A2").Style.Font.FontSize = 10;
|
||||
ws.Cell("A2").Style.Font.Bold = true;
|
||||
ws.Cell("F2").Value = "แผนพื้นฐาน";
|
||||
ws.Cell("F2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("F2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("F2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F2").Style.Font.FontSize = 14;
|
||||
ws.Cell("F2").Style.Font.FontSize = 10;
|
||||
ws.Cell("F2").Style.Font.Bold = true;
|
||||
|
||||
//ws.Cell("K12").Style.NumberFormat.Format = "#,##0.0000";
|
||||
@@ -503,21 +503,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A3:A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A3:A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A3:A5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A3:A5").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range("A3:A5").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range("A3:A5").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("A3:A5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("B3:F3").Merge().Value = "งบประมาณ " + personnel.academic_year_name_th + " (เบื้องต้น)";
|
||||
ws.Range("B3:F3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("B3:F3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("B3:F3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("B3:F3").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range("B3:F3").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range("B3:F3").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("B3:F3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("B4").Value = " ปี " + personnel.academic_year_name_th.Substring(2, 2) + " วิทย์";
|
||||
ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("B4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("B4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("B4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -533,7 +533,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("D4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("D4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("D4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("D4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("D4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("D4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -541,7 +541,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("E4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("E4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("E4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("E4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("E4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("F4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -549,7 +549,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("F4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("F4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("F4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("F4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("F4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("F4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("B4:F4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -568,7 +568,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 6)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 6)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 6)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 6)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 6)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 6)).Style.Font.FontColor = XLColor.Blue;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 6)).Style.NumberFormat.SetFormat("#,#0");
|
||||
|
||||
@@ -584,7 +584,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 6).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -618,7 +618,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 6).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -652,7 +652,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 6).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -684,7 +684,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 6).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -719,7 +719,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 6).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 6)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -790,20 +790,20 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("A1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell("A1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Cell("A1").Style.Font.FontSize = 10;
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
|
||||
ws.Cell("A2").Value = personnel.agency_name_th;
|
||||
ws.Cell("A2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell("A2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 16;
|
||||
ws.Cell("A2").Style.Font.FontSize = 10;
|
||||
ws.Cell("A2").Style.Font.Bold = true;
|
||||
ws.Cell("K2").Value = "แผนบูรณาการ+แผนยุทธศาสตร์";
|
||||
ws.Cell("K2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
ws.Cell("K2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("K2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("K2").Style.Font.FontSize = 16;
|
||||
ws.Cell("K2").Style.Font.FontSize = 10;
|
||||
ws.Cell("K2").Style.Font.Bold = true;
|
||||
|
||||
//ws.Cell("K12").Style.NumberFormat.Format = "#,##0.0000";
|
||||
@@ -828,14 +828,14 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A3:A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A3:A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A3:A5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A3:A5").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range("A3:A5").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range("A3:A5").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("A3:A5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("B3:G3").Merge().Value = "งบประมาณ " + personnel.academic_year_name_th + " (เบื้องต้น)";
|
||||
ws.Range("B3:G3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("B3:G3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("B3:G3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("B3:G3").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range("B3:G3").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range("B3:G3").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("B3:G3").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("B3").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -845,7 +845,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("B4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("B4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("B4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -854,7 +854,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("C4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("C4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("C4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("C4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("C4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("C4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("C4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -863,7 +863,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("D4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("D4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("D4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("D4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("D4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("D4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -872,7 +872,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("E4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("E4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("E4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("E4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("E4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("E4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -881,7 +881,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("F4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("F4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("F4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("F4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("F4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("F4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("F4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -890,7 +890,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("G4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("G4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("G4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("G4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("G4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("G4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("G4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("G4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -899,7 +899,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("H4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("H4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("H4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -908,7 +908,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("I4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("I4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("I4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("I4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("I4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("I4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
@@ -917,7 +917,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("J4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("J4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("J4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("J4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("J4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("J4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("J4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -925,7 +925,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("K4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("K4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("K4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("K4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("K4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("K4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("K4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -956,7 +956,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 11)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 11)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 11)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 11)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 11)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 11)).Style.Font.FontColor = XLColor.Blue;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 11)).Style.NumberFormat.SetFormat("#,#0");
|
||||
|
||||
@@ -977,7 +977,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 11).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1027,7 +1027,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 11).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1076,7 +1076,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 11).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1125,7 +1125,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 11).Value = detail.budget;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.WrapText = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 11)).Style.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1185,20 +1185,20 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("A1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell("A1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Cell("A1").Style.Font.FontSize = 10;
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
|
||||
ws.Cell("A2").Value = personnel.agency_name_th;
|
||||
ws.Cell("A2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
ws.Cell("A2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("A2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 16;
|
||||
ws.Cell("A2").Style.Font.FontSize = 10;
|
||||
ws.Cell("A2").Style.Font.Bold = true;
|
||||
ws.Cell("O2").Value = "รวมทุกแผน";
|
||||
ws.Cell("O2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("O2").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("O2").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("O2").Style.Font.FontSize = 16;
|
||||
ws.Cell("O2").Style.Font.FontSize = 10;
|
||||
ws.Cell("O2").Style.Font.Bold = true;
|
||||
|
||||
//ws.Cell("K12").Style.NumberFormat.Format = "#,##0.0000";
|
||||
@@ -1228,21 +1228,21 @@ namespace rmutr_report.Controllers
|
||||
ws.Range("A3:A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A3:A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A3:A5").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A3:A5").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range("A3:A5").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range("A3:A5").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("A3:A5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("B3:O3").Merge().Value = "งบประมาณ " + personnel.academic_year_name_th + " (เบื้องต้น)";
|
||||
ws.Range("B3:O3").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("B3:O3").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("B3:O3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("B3:O3").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Range("B3:O3").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Range("B3:O3").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("B3:O3").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("B4").Value = " ปี " + personnel.academic_year_name_th.Substring(2, 2) + " วิทย์";
|
||||
ws.Cell("B4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("B4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("B4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("B4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("B4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("B4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("B4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1250,7 +1250,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("C4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("C4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("C4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("C4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("C4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("C4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("C4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("C4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1258,7 +1258,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("D4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("D4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("D4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("D4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("D4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("D4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("D4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1266,7 +1266,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("E4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("E4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("E4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("E4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("E4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("E4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("E4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1275,7 +1275,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("F4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("F4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("F4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("F4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("F4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("F4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("F4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("F4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1284,7 +1284,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("G4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("G4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("G4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("G4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("G4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("G4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("G4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("G4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1293,7 +1293,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("H4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("H4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("H4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("H4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("H4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1302,7 +1302,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("I4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("I4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("I4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("I4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("I4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("I4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("I4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1311,7 +1311,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("J4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("J4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("J4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("J4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("J4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("J4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("K4").Value = " ปี " + personnel.academic_year_name_th.Substring(2, 2) +
|
||||
@@ -1319,7 +1319,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("K4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("K4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("K4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("K4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("K4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("K4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("L4").Value = " ปี " + personnel.academic_year_name_th.Substring(2, 2) +
|
||||
@@ -1327,7 +1327,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("L4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("L4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("L4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("L4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("L4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("L4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("L4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1336,7 +1336,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("M4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("M4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("M4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("M4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("M4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("M4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("M4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("M4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
@@ -1345,7 +1345,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("N4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("N4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("N4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("N4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("N4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("N4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("N4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("N4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1353,7 +1353,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("O4").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("O4").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell("O4").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("O4").Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell("O4").Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell("O4").Style.Alignment.WrapText = true;
|
||||
ws.Cell("O4").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell("O4").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -1392,7 +1392,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 15)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Right;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 15)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 15)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 15)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 15)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 15)).Style.Font.FontColor = XLColor.Blue;
|
||||
ws.Range(ws.Cell(5, 2), ws.Cell(5, 15)).Style.NumberFormat.SetFormat("#,#0");
|
||||
|
||||
@@ -1417,7 +1417,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Value = detail.budget;
|
||||
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.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 15)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
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.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1478,7 +1478,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Value = detail.budget;
|
||||
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.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 15)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
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.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1539,7 +1539,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Value = detail.budget;
|
||||
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.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 15)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
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.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1599,7 +1599,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Value = detail.budget;
|
||||
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.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 15)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
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.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -1660,7 +1660,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 15).Value = detail.budget;
|
||||
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.SetBold().Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 15)).Style.Font.SetBold().Font.FontSize = 10;
|
||||
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.Alignment.Vertical =
|
||||
XLAlignmentVerticalValues.Center;
|
||||
@@ -3634,10 +3634,10 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell("A1").Value = "งบประมาณแผ่นดิน ปีงบประมาณ พ.ศ. "+requestSummary.budget_year+" (คำขอ)";
|
||||
ws.Cell("A1").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 14;
|
||||
ws.Cell("A1").Style.Font.FontSize = 10;
|
||||
ws.Cell("A2").Value = "มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
|
||||
ws.Cell("A2").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 14;
|
||||
ws.Cell("A2").Style.Font.FontSize = 10;
|
||||
|
||||
int col = 2;
|
||||
int cols = 2;
|
||||
@@ -3664,30 +3664,31 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(4, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(4, 2).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(4, 2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(4, 2).Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 14;
|
||||
ws.Cell("A3").Style.Font.FontSize = 10;
|
||||
ws.Range("A3:A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A3:A5").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("A3:A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(3, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(3, 2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(3, 2).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(3, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(3, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(3, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(3, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
|
||||
ws.Cell(4, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(4, 2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(4, 2).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(4, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
|
||||
ws.Cell(5, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(5, 2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(5, 2).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(5, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(5, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(5, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
}
|
||||
|
||||
@@ -3709,7 +3710,7 @@ namespace rmutr_report.Controllers
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.SetBold().Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(204, 153, 255);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -3729,7 +3730,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor = XLColor.FromArgb(153, 204, 255);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -3746,7 +3747,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor =XLColor.FromArgb(255, 204, 153);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -3763,7 +3764,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 255, 204);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -3780,7 +3781,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
// ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 204, 153);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -3800,7 +3801,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
row++;
|
||||
@@ -3829,7 +3830,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
|
||||
ws.Cell(rowhead, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -3837,20 +3838,20 @@ namespace rmutr_report.Controllers
|
||||
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 SarabunPSK";
|
||||
ws.Cell(rowhead, col).Style.Font.FontSize = 14;
|
||||
ws.Cell(rowhead, col).Style.Font.FontSize = 10;
|
||||
ws.Cell(rowhead, col).Style.Alignment.WrapText = true;
|
||||
ws.Cell(rowhead, col).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
|
||||
ws.Cell("A3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 14;
|
||||
ws.Cell("A3").Style.Font.FontSize = 10;
|
||||
ws.Range("A3:A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A3:A5").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range("A3:A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowvalue, col).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowvalue, col).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(rowvalue, col).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(rowvalue, col).Style.Font.FontSize = 14;
|
||||
ws.Cell(rowvalue, col).Style.Font.FontSize = 10;
|
||||
ws.Cell(rowvalue, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(rowvalue, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowvalue, col).Style.NumberFormat.SetFormat("#,#0");
|
||||
@@ -3872,7 +3873,7 @@ namespace rmutr_report.Controllers
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.SetBold().Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(204, 153, 255);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -3882,7 +3883,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Fill.BackgroundColor = XLColor.FromArgb(204, 153, 255);
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -3901,7 +3902,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor = XLColor.FromArgb(153, 204, 255);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
col2 = 2;
|
||||
@@ -3911,7 +3912,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Fill.BackgroundColor = XLColor.FromArgb(153, 204, 255);
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -3929,7 +3930,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor =XLColor.FromArgb(255, 204, 153);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
col2 = 2;
|
||||
@@ -3939,7 +3940,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 204, 153);
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -3958,7 +3959,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 255, 204);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
col2 = 2;
|
||||
@@ -3968,7 +3969,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 255, 204);
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -3988,7 +3989,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row,2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
|
||||
@@ -3998,7 +3999,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Value = budgetPlan.value??0;
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
|
||||
@@ -4019,7 +4020,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail3.plans)
|
||||
@@ -4027,7 +4028,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Value = budgetPlan.value??0;
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
@@ -4077,10 +4078,10 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(12).Width = 20;
|
||||
ws.Cell("A1").Value = "งบประมาณแผ่นดิน ปีงบประมาณ พ.ศ. "+requestSummary.budget_year+" (คำขอ)";
|
||||
ws.Cell("A1").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 14;
|
||||
ws.Cell("A1").Style.Font.FontSize = 10;
|
||||
ws.Cell("A2").Value = "มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
|
||||
ws.Cell("A2").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A2").Style.Font.FontSize = 14;
|
||||
ws.Cell("A2").Style.Font.FontSize = 10;
|
||||
int col = 2;
|
||||
int cols = 2;
|
||||
int rowheads = 3;
|
||||
@@ -4106,29 +4107,30 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(4, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(4, 2).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(4, 2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(4, 2).Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 14;
|
||||
ws.Cell("A3").Style.Font.FontSize = 10;
|
||||
ws.Range("A3:A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A3:A5").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(3, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(3, 2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(3, 2).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(3, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(3, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(3, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(3, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
|
||||
|
||||
ws.Cell(4, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(4, 2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(4, 2).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(4, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
|
||||
ws.Cell(5, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(5, 2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(5, 2).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(5, 2).Style.Font.FontSize = 14;
|
||||
ws.Cell(5, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(5, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
}
|
||||
|
||||
@@ -4150,7 +4152,7 @@ namespace rmutr_report.Controllers
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.SetBold().Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(204, 153, 255);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -4168,7 +4170,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
row++;
|
||||
@@ -4186,7 +4188,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
row++;
|
||||
@@ -4215,7 +4217,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Font.FontSize = 16;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
|
||||
ws.Cell(rowhead, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -4223,20 +4225,20 @@ namespace rmutr_report.Controllers
|
||||
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 SarabunPSK";
|
||||
ws.Cell(rowhead, col).Style.Font.FontSize = 14;
|
||||
ws.Cell(rowhead, col).Style.Font.FontSize = 10;
|
||||
ws.Cell(rowhead, col).Style.Alignment.WrapText = true;
|
||||
ws.Cell(rowhead, col).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
|
||||
ws.Cell("A3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 14;
|
||||
ws.Cell("A3").Style.Font.FontSize = 10;
|
||||
ws.Range("A3:A5").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Range("A3:A5").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A3:A5").Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(rowvalue, col).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(rowvalue, col).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Cell(rowvalue, col).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(rowvalue, col).Style.Font.FontSize = 14;
|
||||
ws.Cell(rowvalue, col).Style.Font.FontSize = 10;
|
||||
ws.Cell(rowvalue, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(rowvalue, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowvalue, col).Style.NumberFormat.SetFormat("#,#0");
|
||||
@@ -4258,7 +4260,7 @@ namespace rmutr_report.Controllers
|
||||
XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.SetBold().Font.FontName =
|
||||
"TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Font.FontSize = 10;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Style.Fill.BackgroundColor =
|
||||
XLColor.FromArgb(204, 153, 255);
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -4268,7 +4270,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Fill.BackgroundColor = XLColor.FromArgb(204, 153, 255);
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -4284,7 +4286,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail2.plans)
|
||||
@@ -4292,7 +4294,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Value = budgetPlan.value??0;
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -4313,7 +4315,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail3.plans)
|
||||
@@ -4321,7 +4323,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, col2).Value = budgetPlan.value??0;
|
||||
ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 14;
|
||||
ws.Cell(row, col2).Style.Font.FontSize = 10;
|
||||
ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
|
||||
Reference in New Issue
Block a user