bug fixed

This commit is contained in:
kamonwan taengsuk
2023-02-09 14:13:15 +07:00
parent e8115b3733
commit 1b47b3d1bd

View File

@@ -219,7 +219,7 @@ namespace rmutr_report.Controllers
foreach (var data1 in data.data_detail) foreach (var data1 in data.data_detail)
{ {
ws.Cell(row, 2).Value = data1.row; ws.Cell(row, 2).Value = rowno;
ws.Cell(row, 3).Value = data1.name; ws.Cell(row, 3).Value = data1.name;
ws.Cell(row, 4).Value = data1.unit; ws.Cell(row, 4).Value = data1.unit;
ws.Cell(row, 5).Value = data1.value; ws.Cell(row, 5).Value = data1.value;
@@ -259,7 +259,7 @@ namespace rmutr_report.Controllers
ws.Cell(row, 8).Style.Border.RightBorder = XLBorderStyleValues.Thin; ws.Cell(row, 8).Style.Border.RightBorder = XLBorderStyleValues.Thin;
ws.Cell(row, 8).Style.Alignment.WrapText = true; ws.Cell(row, 8).Style.Alignment.WrapText = true;
row++; row++;
//rowno++; rowno++;
// if (rowno > 1) // if (rowno > 1)
// { // {