Bug Fixed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kamonwan taengsuk
2024-08-29 09:50:31 +07:00
parent e2a3977734
commit da8805020d
4 changed files with 11 additions and 10 deletions

View File

@@ -3682,7 +3682,7 @@ namespace rmutr_report.Controllers
foreach (var detail in requestSummary.data_1)
{
ws.Cell(row, 1).Value = detail.rowno + "." + detail.list;
ws.Cell(row, 1).Value = detail.rowno + detail.list;
foreach (var budgetPlan in detail.plans)
{
ws.Cell(row, 2).Value = budgetPlan.value;
@@ -3742,7 +3742,7 @@ namespace rmutr_report.Controllers
}
if (detail2.color=="3" && detail2.is_bold==null)
{
ws.Cell(row, 1).Value = detail2.rowno + "." + detail2.list;
ws.Cell(row, 1).Value = detail2.rowno + detail2.list;
foreach (var budgetPlan in detail2.plans)
{
ws.Cell(row, 2).Value = budgetPlan.value;
@@ -3850,7 +3850,7 @@ namespace rmutr_report.Controllers
foreach (var detail in requestSummary.data_1)
{
int col2 = 2;
ws.Cell(row, 1).Value = detail.rowno + "." + detail.list;
ws.Cell(row, 1).Value = detail.rowno + detail.list;
// int col2 = 2;
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell(row, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
@@ -3941,7 +3941,7 @@ namespace rmutr_report.Controllers
}
if (detail2.color=="3" && detail2.is_bold==null)
{
ws.Cell(row, 1).Value = detail2.rowno + "." + detail2.list;
ws.Cell(row, 1).Value = detail2.rowno + detail2.list;
ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
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;
@@ -4114,7 +4114,7 @@ namespace rmutr_report.Controllers
foreach (var detail in requestSummary.data_1)
{
ws.Cell(row, 1).Value = detail.rowno + "." + detail.list;
ws.Cell(row, 1).Value = detail.rowno + detail.list;
foreach (var budgetPlan in detail.plans)
{
ws.Cell(row, 2).Value = budgetPlan.value;
@@ -4227,7 +4227,7 @@ namespace rmutr_report.Controllers
foreach (var detail in requestSummary.data_1)
{
int col2 = 2;
ws.Cell(row, 1).Value = detail.rowno + "." + detail.list;
ws.Cell(row, 1).Value = detail.rowno + detail.list;
// int col2 = 2;
ws.Cell(row, 1).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left;
ws.Cell(row, 2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
@@ -4316,7 +4316,8 @@ namespace rmutr_report.Controllers
}
}
}
using (var stream = new MemoryStream())
{
workbook.SaveAs(stream);