style(kpi-finance): use colored ✅/❌ emoji for บรรลุ/ไม่บรรลุ
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
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).
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user