From e8115b3733c59a8ba80578e3df8e3b0fc47de2a5 Mon Sep 17 00:00:00 2001 From: kamonwan taengsuk Date: Wed, 8 Feb 2023 18:10:17 +0700 Subject: [PATCH] bug fixed --- Controllers/DetailKpiFinance.Controller.cs | 2 + Models/budget/detail_kpi_finance.cs | 64 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/Controllers/DetailKpiFinance.Controller.cs b/Controllers/DetailKpiFinance.Controller.cs index 1a9ae86..6c60fb9 100644 --- a/Controllers/DetailKpiFinance.Controller.cs +++ b/Controllers/DetailKpiFinance.Controller.cs @@ -215,6 +215,8 @@ namespace rmutr_report.Controllers ws.Cell(row, 23).Value = data1.value16; ws.Range(ws.Cell(row, 1),ws.Cell(row,23)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Range(ws.Cell(row, 1),ws.Cell(row,23)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; + ws.Range(ws.Cell(row,8),ws.Cell(row,23)).Style.Alignment.SetTextRotation(90); + ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 1).Style.Border.LeftBorder = XLBorderStyleValues.Thin; ws.Cell(row, 1).Style.Border.RightBorder = XLBorderStyleValues.Thin; diff --git a/Models/budget/detail_kpi_finance.cs b/Models/budget/detail_kpi_finance.cs index 77ba6a9..f99a139 100644 --- a/Models/budget/detail_kpi_finance.cs +++ b/Models/budget/detail_kpi_finance.cs @@ -57,4 +57,68 @@ namespace rmutr_report.Models public string value15 { get; set; } public string value16 { get; set; } } + // public class detail_kpi_finance + // { + // public string year_range { get; set; } + // public string budget_year { get; set; } + // public string plan_year { get; set; } + // //public List header_data { get; set; } + // public List agency_data { get; set; } + // + // } + // + // + // public class kpi_data2{ + // public string text1 { get; set; } + // public string text2 { get; set; } + // public string text3 { get; set; } + // public string text4 { get; set; } + // public string text5 { get; set; } + // public string text6 { get; set; } + // public string text7 { get; set; } + // public string text8 { get; set; } + // public string text9 { get; set; } + // public string text10 { get; set; } + // public string text11 { get; set; } + // public string text12 { get; set; } + // public string text13 { get; set; } + // public string text14 { get; set; } + // public string text15 { get; set; } + // public string text16 { get; set; } + // public List header_data { get; set; } + // + // //public List data { get; set; } + // } + // public class kpi_data + // { + // public string strategic_issues { get; set;} + // public List data { get; set; } + // + // } + // + // public class kpi_finance_detail + // { + // public string name { get; set; } + // public string unit { get; set; } + // public string director { get; set; } + // public string responsible_person { get; set; } + // public string compiler_reporter { get; set; } + // public decimal? plan_value { get; set; } + // public string value1 { get; set; } + // public string value2 { get; set; } + // public string value3 { get; set; } + // public string value4 { get; set; } + // public string value5 { get; set; } + // public string value6 { get; set; } + // public string value7 { get; set; } + // public string value8 { get; set; } + // public string value9 { get; set; } + // public string value10 { get; set; } + // public string value11 { get; set; } + // public string value12 { get; set; } + // public string value13 { get; set; } + // public string value14 { get; set; } + // public string value15 { get; set; } + // public string value16 { get; set; } + // } } \ No newline at end of file