update
This commit is contained in:
@@ -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;
|
||||
@@ -249,7 +253,8 @@ namespace rmutr_report.Controllers
|
||||
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.SetBold().Font.FontSize = 16;
|
||||
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