This commit is contained in:
@@ -153,7 +153,7 @@ namespace rmutr_report.Controllers
|
||||
" มหาวิทยาลัยเทคโนโลยีราชมงคลรัตนโกสินทร์";
|
||||
ws.Cell("A1").Style.Font.Bold = true;
|
||||
ws.Cell("A1").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A1").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Cell("A1").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A1").Style.Font.FontSize = 16;
|
||||
ws.Range("A1:AD1").Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Range("A1:AD1").Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
@@ -257,7 +257,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Column(25).Width = 10;
|
||||
ws.Column(26).Width = 10;
|
||||
ws.Column(27).Width = 10;
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range("A2:AD3").Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range("A2:AD3").Style.Font.FontSize = 16;
|
||||
ws.Range("A2:AD3").Style.Fill.BackgroundColor =
|
||||
XLColor.Bisque;
|
||||
@@ -313,7 +313,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -367,7 +367,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 28).Value = detail.female7;
|
||||
// ws.Cell(row, 29).Value = detail.total7;
|
||||
// ws.Cell(row, 30).Value = detail.room7;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
// ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -421,7 +421,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -477,7 +477,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -534,7 +534,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor = XLColor.White;
|
||||
ws.Range(ws.Cell(row, 3), ws.Cell(row, 30)).Style.Fill.BackgroundColor = XLColor.White;
|
||||
@@ -586,7 +586,7 @@ namespace rmutr_report.Controllers
|
||||
// ws.Cell(row, 28).Value = detail.female7;
|
||||
// ws.Cell(row, 29).Value = detail.total7;
|
||||
// ws.Cell(row, 30).Value = detail.room7;
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
// ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
// // ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
|
||||
// // ws.Cell(row, 1).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -638,7 +638,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.Bold = true;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
@@ -694,7 +694,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.MintGreen;
|
||||
@@ -759,7 +759,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -816,7 +816,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.BabyBlue;
|
||||
@@ -881,7 +881,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -937,7 +937,7 @@ namespace rmutr_report.Controllers
|
||||
|
||||
ws.Cell(row, 29).Value = sum1 + sum2 + sum3 + sum4 + sum5 + sum6;
|
||||
ws.Cell(row, 30).Value = sumroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.Gainsboro;
|
||||
@@ -1001,7 +1001,7 @@ namespace rmutr_report.Controllers
|
||||
detail.female5 + detail.female6;
|
||||
ws.Cell(row, 29).Value = sums1 + sums2 + sums3 + sums4 + sums5 + sums6;
|
||||
ws.Cell(row, 30).Value = sumsroom;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Alignment.Horizontal =
|
||||
XLAlignmentHorizontalValues.Left;
|
||||
@@ -1057,7 +1057,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 28).Value = null;
|
||||
ws.Cell(row, 29).Value = null;
|
||||
ws.Cell(row, 30).Value = null;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH Sarabun New";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 30)).Style.Font.FontSize = 14;
|
||||
ws.Range(ws.Cell(row, 1), ws.Cell(row, 2)).Merge().Style.Fill.BackgroundColor =
|
||||
XLColor.White;
|
||||
|
||||
Reference in New Issue
Block a user