update
This commit is contained in:
@@ -137,7 +137,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(21).Width = 10;
|
||||
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.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.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
@@ -182,6 +182,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("H2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("H4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -198,6 +199,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("I2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("I4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -214,6 +216,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("J2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("J4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -230,6 +233,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("K2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("K4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -245,6 +249,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("L2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("L4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -260,6 +265,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("M2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("M2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("M4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -277,6 +283,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("N2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("N2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("N4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -292,6 +299,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("O2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("O2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("O4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -307,6 +315,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("P2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("P2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("P4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -322,6 +331,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Q2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Q2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Q4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -338,6 +348,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("R2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("R2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("R4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -353,6 +364,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("S2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("S2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("S4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -368,6 +380,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("T2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("T2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("T4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -383,6 +396,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("U2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("U2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("U4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -398,6 +412,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("V2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("V2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("V4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -413,6 +428,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("W2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("W2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("W4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -428,6 +444,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("X2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("X2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("X4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -445,6 +462,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Y2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Y2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Y4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -462,6 +480,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Z2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Z2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Z4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -479,6 +498,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("AA2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("AA2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("AA4").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
@@ -745,6 +765,7 @@ namespace rmutr_report.Controllers
|
||||
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.FontSize = 16;
|
||||
ws.Cell(row,col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
}
|
||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,27)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(21).Width = 10;
|
||||
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.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.FontSize = 16;
|
||||
ws.Column(2).Style.Font.FontName = "TH Sarabun New";
|
||||
@@ -194,6 +194,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("H2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("H2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("H2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -208,6 +209,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("I2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("I2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:I2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -222,6 +224,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("J2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("J2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:J2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -236,6 +239,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("K2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("K2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:K2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -250,6 +254,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("L2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("L2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:L2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -264,6 +269,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("M2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("M2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:M2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -278,6 +284,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("N2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("N2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:N2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -292,6 +299,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("O2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("O2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:O2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -306,6 +314,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("P2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("P2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:P2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -320,6 +329,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Q2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Q2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:Q2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -335,6 +345,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("R2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("R2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:R2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -349,6 +360,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("S2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("S2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:S2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -363,6 +375,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("T2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("T2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:T2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -377,6 +390,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("U2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("U2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:U2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -391,6 +405,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("V2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("V2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:V2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -405,6 +420,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("W2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("W2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:W2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -419,6 +435,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("X2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("X2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:X2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -433,6 +450,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Y2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Y2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:Y2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -447,6 +465,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("Z2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("Z2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:Z2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -461,6 +480,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell("H2").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell("H2").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("H2").Style.Font.SetBold().Font.FontSize = 16;
|
||||
ws.Cell("H2").Style.Alignment.WrapText = true;
|
||||
ws.Cell("AA2").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("AA2").Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range("H2:AA2").Style.Border.TopBorder = XLBorderStyleValues.Thin;
|
||||
@@ -809,7 +829,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
//ws.Cell(row, 23).Style.Border.RightBorder = XLBorderStyleValues.Thin;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
//var dataagency2 = _kpi.agencys.Where(d => d.agency_name==d.agency_name).ToList();
|
||||
foreach (var data1 in header.data)
|
||||
@@ -831,6 +851,7 @@ namespace rmutr_report.Controllers
|
||||
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.FontSize = 16;
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
}
|
||||
|
||||
@@ -862,7 +883,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 5).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 6).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 7).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Alignment.WrapText = true;
|
||||
// ws.Cell(row, 9).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 10).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 11).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
@@ -878,7 +899,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 21).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// ws.Cell(row, 22).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
// 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.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.FontSize = 16;
|
||||
|
||||
Reference in New Issue
Block a user