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++; }