From 413f1415932f63272594ccf51e889033eb03e586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nut=2E=E0=B9=84=E0=B8=9B=E0=B9=80=E0=B8=A3=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=A2?= Date: Tue, 1 Sep 2026 15:41:43 +0700 Subject: [PATCH] =?UTF-8?q?style(kpi-finance):=20make=20the=20=E0=B8=9A?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B8=A5=E0=B8=B8/=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=A5=E0=B8=B8=20mark?= =?UTF-8?q?=20bolder=20and=20colored?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Controllers/kpi_performance_finance.Controller.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Controllers/kpi_performance_finance.Controller.cs b/Controllers/kpi_performance_finance.Controller.cs index 557f703..e81468f 100644 --- a/Controllers/kpi_performance_finance.Controller.cs +++ b/Controllers/kpi_performance_finance.Controller.cs @@ -145,8 +145,10 @@ namespace rmutr_report.Controllers ws.Cell(row, 5).Value = data1.responsible_person; ws.Cell(row, 6).Value = data1.compiler_reporter; 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, 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.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; @@ -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.Font.FontName = "TH SarabunPSK"; 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++; rowno++; }