fix(kpi): don't number vision/values/uniqueness/identity as strategic issues
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Add is_reference_section flag to header_data/detail_kpi_data so the kpi_performance_result and detail_kpi Excel exports render the 4 reference-indicator sections (วิสัยทัศน์/ค่านิยม/เอกลักษณ์/อัตลักษณ์) with their bare category name instead of a "ประเด็นยุทธ์ศาสตร์ที่ N" prefix, and skip them in the real strategic-issue numbering.
This commit is contained in:
@@ -104,8 +104,8 @@ namespace rmutr_report.Controllers
|
||||
{
|
||||
foreach (var header in _kpi.header_data)
|
||||
{
|
||||
string kpiname = "ประเด็นยุทธ์ศาสตร์ที่ " + no +" " + header.strategic_issues;
|
||||
no++;
|
||||
string kpiname = header.is_reference_section ? header.strategic_issues : ("ประเด็นยุทธ์ศาสตร์ที่ " + no +" " + header.strategic_issues);
|
||||
if (!header.is_reference_section) no++;
|
||||
ws.Cell(row, 1).SetValue(kpiname).Style.Font.Bold = true;
|
||||
// ws.Cell(row, 2).Value = header.header_1;
|
||||
ws.Cell(row, 1).Style.Fill.BackgroundColor = XLColor.PurpleX11;
|
||||
|
||||
Reference in New Issue
Block a user