This commit is contained in:
@@ -3619,7 +3619,8 @@ namespace rmutr_report.Controllers
|
||||
{
|
||||
var workbook = new XLWorkbook();
|
||||
var ws = workbook.Worksheets.Add("Sheet1");
|
||||
ws.Column(1).Width = 30;
|
||||
//ws.Columns("A").AdjustToContents();
|
||||
ws.Column(1).Width = 40;
|
||||
ws.Column(2).Width = 20;
|
||||
ws.Column(3).Width = 20;
|
||||
ws.Column(4).Width = 20;
|
||||
@@ -3672,24 +3673,27 @@ namespace rmutr_report.Controllers
|
||||
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.Range("A3:A5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
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 = 10;
|
||||
ws.Cell(3, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(3, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
|
||||
ws.Cell(3, 2).Style.Alignment.WrapText = true;
|
||||
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 = 10;
|
||||
ws.Cell(4, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
|
||||
ws.Cell(5, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
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 = 10;
|
||||
ws.Cell(5, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(5, 2).Style.Alignment.WrapText = true;
|
||||
}
|
||||
|
||||
foreach (var detail in requestSummary.data_1)
|
||||
@@ -3716,7 +3720,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
|
||||
foreach (var detail2 in detail.data_2)
|
||||
@@ -3737,6 +3742,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
}
|
||||
if (detail2.color=="2" && detail2.is_bold==null)
|
||||
@@ -3755,6 +3762,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
}
|
||||
if (detail2.color=="3" && detail2.is_bold==null)
|
||||
@@ -3773,6 +3782,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
}
|
||||
if (detail2.color==null && detail2.is_bold==null)
|
||||
@@ -3791,6 +3802,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
}
|
||||
foreach (var detail3 in detail2.data_3)
|
||||
@@ -3811,6 +3824,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
}
|
||||
|
||||
@@ -3839,6 +3854,7 @@ namespace rmutr_report.Controllers
|
||||
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 = 10;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Alignment.WrapText = true;
|
||||
|
||||
ws.Cell(rowhead, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(rowhead, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -3848,7 +3864,7 @@ namespace rmutr_report.Controllers
|
||||
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.Range("A3:A5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("A3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 10;
|
||||
@@ -3863,7 +3879,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(rowvalue, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowvalue, col).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
|
||||
ws.Cell(rowvalue, col).Style.Alignment.WrapText = true;
|
||||
ws.Cell(rowheads, col).Style.Alignment.WrapText = true;
|
||||
col++;
|
||||
}
|
||||
|
||||
@@ -3884,6 +3901,8 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
foreach (var budgetPlan in detail.plans)
|
||||
{
|
||||
ws.Cell(row, col2).Value = budgetPlan.value??0;
|
||||
@@ -3894,6 +3913,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
ws.Cell(row, cols).Style.Alignment.WrapText = true;
|
||||
|
||||
col2++;
|
||||
}
|
||||
@@ -3912,6 +3932,8 @@ namespace rmutr_report.Controllers
|
||||
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, 1).Style.Alignment.WrapText = true;
|
||||
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail2.plans)
|
||||
{
|
||||
@@ -3923,7 +3945,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
}
|
||||
// col2++;
|
||||
@@ -3940,6 +3962,7 @@ namespace rmutr_report.Controllers
|
||||
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, 1).Style.Alignment.WrapText = true;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail2.plans)
|
||||
{
|
||||
@@ -3951,7 +3974,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
|
||||
}
|
||||
@@ -3969,6 +3992,7 @@ namespace rmutr_report.Controllers
|
||||
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, 1).Style.Alignment.WrapText =true;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail2.plans)
|
||||
{
|
||||
@@ -3980,7 +4004,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
|
||||
}
|
||||
@@ -3999,7 +4023,7 @@ namespace rmutr_report.Controllers
|
||||
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");
|
||||
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail2.plans)
|
||||
{
|
||||
@@ -4009,7 +4033,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
|
||||
}
|
||||
@@ -4029,6 +4053,7 @@ namespace rmutr_report.Controllers
|
||||
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 = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail3.plans)
|
||||
{
|
||||
@@ -4039,7 +4064,7 @@ namespace rmutr_report.Controllers
|
||||
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");
|
||||
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
}
|
||||
// col2++;
|
||||
@@ -4072,7 +4097,8 @@ namespace rmutr_report.Controllers
|
||||
{
|
||||
var workbook = new XLWorkbook();
|
||||
var ws = workbook.Worksheets.Add("Sheet1");
|
||||
ws.Column(1).Width = 30;
|
||||
//ws.Columns("A").AdjustToContents();
|
||||
ws.Column(1).Width = 40;
|
||||
ws.Column(2).Width = 20;
|
||||
ws.Column(3).Width = 20;
|
||||
ws.Column(4).Width = 20;
|
||||
@@ -4116,6 +4142,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(4, 2).Style.Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(4, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(4, 2).Style.Alignment.WrapText = true;
|
||||
ws.Range("A3:A5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("A3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 10;
|
||||
@@ -4127,7 +4154,7 @@ namespace rmutr_report.Controllers
|
||||
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(3, 2).Style.Alignment.WrapText = true;
|
||||
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";
|
||||
@@ -4139,6 +4166,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(5, 2).Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell(5, 2).Style.Font.FontSize = 10;
|
||||
ws.Cell(5, 2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(5, 2).Style.Alignment.WrapText = true;
|
||||
}
|
||||
|
||||
foreach (var detail in requestSummary.data_1)
|
||||
@@ -4165,6 +4193,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
|
||||
foreach (var detail2 in detail.data_2)
|
||||
@@ -4182,6 +4212,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
|
||||
foreach (var detail3 in detail2.data_3)
|
||||
@@ -4201,6 +4233,8 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 2).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 2).Style.Alignment.WrapText = true;
|
||||
row++;
|
||||
|
||||
|
||||
@@ -4229,6 +4263,7 @@ namespace rmutr_report.Controllers
|
||||
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 = 10;
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 153, 204);
|
||||
ws.Range(ws.Cell(rowheads, cols), ws.Cell(rowheads , cols+ countbudgetplan - 1)).Style.Alignment.WrapText = true;
|
||||
|
||||
ws.Cell(rowhead, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
ws.Cell(rowhead, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
@@ -4238,7 +4273,7 @@ namespace rmutr_report.Controllers
|
||||
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.Range("A3:A5").Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell("A3").Style.Alignment.WrapText = true;
|
||||
ws.Cell("A3").Style.Font.SetBold().Font.FontName = "TH SarabunPSK";
|
||||
ws.Cell("A3").Style.Font.FontSize = 10;
|
||||
@@ -4253,7 +4288,7 @@ namespace rmutr_report.Controllers
|
||||
ws.Cell(rowvalue, col).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||
ws.Cell(rowvalue, col).Style.NumberFormat.SetFormat("#,#0");
|
||||
ws.Cell(rowvalue, col).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||
|
||||
ws.Cell(rowvalue, col).Style.Alignment.WrapText = true;
|
||||
col++;
|
||||
}
|
||||
|
||||
@@ -4274,6 +4309,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
foreach (var budgetPlan in detail.plans)
|
||||
{
|
||||
ws.Cell(row, col2).Value = budgetPlan.value??0;
|
||||
@@ -4284,6 +4320,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
}
|
||||
row++;
|
||||
@@ -4297,6 +4334,7 @@ namespace rmutr_report.Controllers
|
||||
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 = 10;
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail2.plans)
|
||||
@@ -4308,7 +4346,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
}
|
||||
|
||||
@@ -4327,6 +4365,7 @@ namespace rmutr_report.Controllers
|
||||
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 = 10;
|
||||
ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin;
|
||||
ws.Cell(row, 1).Style.Alignment.WrapText = true;
|
||||
col2 = 2;
|
||||
foreach (var budgetPlan in detail3.plans)
|
||||
{
|
||||
@@ -4337,7 +4376,7 @@ namespace rmutr_report.Controllers
|
||||
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;
|
||||
|
||||
ws.Cell(row, col2).Style.Alignment.WrapText = true;
|
||||
col2++;
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+62e9bfb30a3bed3a981fe95309ce278814246723")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+fa07e5428e00c19a2a8055fba939148f2f0d8b2d")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
1bb41e6f4b06ecaa87f57dc005b3418170b56de7020a3a6f92c599064fe85d3a
|
||||
2ca4ed1e7690a8e81e1928bc1990a28d5682b98006698e785075dec11ec2a71e
|
||||
|
||||
@@ -1 +1 @@
|
||||
7d8bc7748bcb23f08efa6e2e64caaaec25fe7f0de58058885b3c182813ae57c3
|
||||
6e1921a497d6bfa5a344720c448a8ff8bc8e02e2633ceeb78c84c1f8725d3b8f
|
||||
|
||||
@@ -1 +1 @@
|
||||
bd7a28b1ff560d689700f9ca68bb84d5faf27c38aa05370d4e053cc99d63dbce
|
||||
19f524a8977dfde4c18e31663a8680c099ec81b5c08ef13745f0dbefae8b9e82
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -64,22 +64,6 @@
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\all_plans.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\all_plans2.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\all_plans2.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\all_plans2.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\appoint_higher_position.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
@@ -3040,6 +3024,86 @@
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_income_cooperative.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\summary_invest.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_approve.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\summary_invest_approve.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_approve.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_approvev2.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\summary_invest_approvev2.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_approvev2.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_preview.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\summary_invest_preview.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_preview.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_previewv2.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
|
||||
<BasePath>_content/rmutr_report</BasePath>
|
||||
<RelativePath>reports\summary_invest_previewv2.frx</RelativePath>
|
||||
<AssetKind></AssetKind>
|
||||
<AssetMode></AssetMode>
|
||||
<AssetRole></AssetRole>
|
||||
<RelatedAsset></RelatedAsset>
|
||||
<AssetTraitName></AssetTraitName>
|
||||
<AssetTraitValue></AssetTraitValue>
|
||||
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_invest_previewv2.frx))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\summary_mtef.frx))">
|
||||
<SourceType>Package</SourceType>
|
||||
<SourceId>rmutr_report</SourceId>
|
||||
|
||||
@@ -1 +1 @@
|
||||
5e2b0a0b0aae1729058a1b869c574d0d8376900c6cb993c5031e219c517c5065
|
||||
b77baecdf45cb80236438e8a223568cbd6e07fc272289f2130dc9e2d455d9160
|
||||
|
||||
@@ -1 +1 @@
|
||||
17249123958142058
|
||||
17249193125237173
|
||||
Reference in New Issue
Block a user