From 1dbec66fb2faf0a7c6b433935d5b418f77f891b8 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:50:39 +0700 Subject: [PATCH] =?UTF-8?q?style(kpi-finance):=20use=20colored=20=E2=9C=85?= =?UTF-8?q?/=E2=9D=8C=20emoji=20for=20=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=A5?= =?UTF-8?q?=E0=B8=B8/=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=9A=E0=B8=A3?= =?UTF-8?q?=E0=B8=A3=E0=B8=A5=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Requested a rounder icon-badge look closer to a reference screenshot; color glyph emoji render that way natively in Excel without needing manual font-color styling (which colored ✓/✗ can't fully replicate). --- Controllers/kpi_performance_finance.Controller.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Controllers/kpi_performance_finance.Controller.cs b/Controllers/kpi_performance_finance.Controller.cs index e81468f..8a320fc 100644 --- a/Controllers/kpi_performance_finance.Controller.cs +++ b/Controllers/kpi_performance_finance.Controller.cs @@ -148,7 +148,7 @@ namespace rmutr_report.Controllers ws.Cell(row, 7).Style.NumberFormat.Format = "#,##0.00"; ws.Cell(row, 8).Value = data1.result; ws.Cell(row, 8).Style.NumberFormat.Format = "#,##0.00"; - ws.Cell(row, 9).Value = data1.achieve == "X" ? "✗" : data1.achieve; + ws.Cell(row, 9).Value = data1.achieve == "X" ? "❌" : "✅"; 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; @@ -169,9 +169,7 @@ namespace rmutr_report.Controllers 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"); + ws.Cell(row, 9).Style.Font.FontSize = 18; row++; rowno++; }