style(kpi-finance): make the บรรลุ/ไม่บรรลุ mark bolder and colored
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Was a plain black "√"/"X" at the same 16pt as the rest of the row. Now: green ✓ (#2E7D32) for achieved, red ✗ (#C62828) for not achieved, bold, 20pt.
This commit is contained in:
@@ -145,8 +145,10 @@ namespace rmutr_report.Controllers
|
|||||||
ws.Cell(row, 5).Value = data1.responsible_person;
|
ws.Cell(row, 5).Value = data1.responsible_person;
|
||||||
ws.Cell(row, 6).Value = data1.compiler_reporter;
|
ws.Cell(row, 6).Value = data1.compiler_reporter;
|
||||||
ws.Cell(row, 7).Value = data1.plan_value;
|
ws.Cell(row, 7).Value = data1.plan_value;
|
||||||
|
ws.Cell(row, 7).Style.NumberFormat.Format = "#,##0.00";
|
||||||
ws.Cell(row, 8).Value = data1.result;
|
ws.Cell(row, 8).Value = data1.result;
|
||||||
ws.Cell(row, 9).Value = data1.achieve;
|
ws.Cell(row, 8).Style.NumberFormat.Format = "#,##0.00";
|
||||||
|
ws.Cell(row, 9).Value = data1.achieve == "X" ? "✗" : data1.achieve;
|
||||||
ws.Cell(row, 10).Value = data1.note;
|
ws.Cell(row, 10).Value = data1.note;
|
||||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;
|
||||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center;
|
||||||
@@ -166,6 +168,10 @@ namespace rmutr_report.Controllers
|
|||||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.WrapText = true;
|
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Alignment.WrapText = true;
|
||||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH SarabunPSK";
|
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontName = "TH SarabunPSK";
|
||||||
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontSize = 16;
|
ws.Range(ws.Cell(row, 1),ws.Cell(row,10)).Style.Font.FontSize = 16;
|
||||||
|
|
||||||
|
ws.Cell(row, 9).Style.Font.Bold = true;
|
||||||
|
ws.Cell(row, 9).Style.Font.FontSize = 20;
|
||||||
|
ws.Cell(row, 9).Style.Font.FontColor = data1.achieve == "√" ? XLColor.FromHtml("#2E7D32") : XLColor.FromHtml("#C62828");
|
||||||
row++;
|
row++;
|
||||||
rowno++;
|
rowno++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user