diff --git a/Controllers/Budget.Controller.cs b/Controllers/Budget.Controller.cs index 94ab285..7680a03 100644 --- a/Controllers/Budget.Controller.cs +++ b/Controllers/Budget.Controller.cs @@ -3921,7 +3921,7 @@ namespace rmutr_report.Controllers foreach (var detail2 in detail.data_2) { - if (detail2.color=="1" && detail2.is_bold==true) + if (detail2.color=="1" && detail2.is_bold==true)//ฟ้า { ws.Cell(row, 1).Value = detail2.list; @@ -3952,7 +3952,7 @@ namespace rmutr_report.Controllers row++; } - if (detail2.color=="2" && detail2.is_bold==null) + if (detail2.color=="2" && detail2.is_bold==null)//ส้ม { ws.Cell(row, 1).Value = detail2.list; ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left; @@ -3982,36 +3982,36 @@ namespace rmutr_report.Controllers row++; } - // if (detail2.color=="3" && detail2.is_bold==null) - // { - // ws.Cell(row, 1).Value = detail2.rowno + detail2.list; - // ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left; - // ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; - // ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; - // ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK"; - // ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10; - // ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 255, 204); - // ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; - // ws.Cell(row, 1).Style.Alignment.WrapText =true; - // col2 = 2; - // foreach (var budgetPlan in detail2.plans) - // { - // ws.Cell(row, col2).Value = budgetPlan.value??0; - // ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; - // ws.Cell(row, col2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 255, 204); - // ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK"; - // ws.Cell(row, col2).Style.Font.FontSize = 10; - // ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; - // ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0"); - // ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; - // ws.Cell(row, col2).Style.Alignment.WrapText = true; - // col2++; - // - // } - // // col2++; - // row++; - // - // } + if (detail2.color=="3" && detail2.is_bold==null)//เหลือง + { + ws.Cell(row, 1).Value = detail2.rowno + detail2.list; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Left; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK"; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 255, 204); + ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; + ws.Cell(row, 1).Style.Alignment.WrapText =true; + col2 = 2; + foreach (var budgetPlan in detail2.plans) + { + ws.Cell(row, col2).Value = budgetPlan.value??0; + ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; + ws.Cell(row, col2).Style.Fill.BackgroundColor = XLColor.FromArgb(255, 255, 204); + ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK"; + ws.Cell(row, col2).Style.Font.FontSize = 10; + ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; + ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0"); + ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; + ws.Cell(row, col2).Style.Alignment.WrapText = true; + col2++; + + } + // col2++; + row++; + + } if (detail2.color==null && detail2.is_bold==null) { ws.Cell(row, 1).Value = detail2.rowno + detail2.list; @@ -4020,7 +4020,7 @@ namespace rmutr_report.Controllers ws.Cell(row,2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK"; - ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontSize = 10; ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0"); ws.Cell(row, 1).Style.Alignment.WrapText = true; @@ -4030,7 +4030,7 @@ namespace rmutr_report.Controllers ws.Cell(row, col2).Value = budgetPlan.value??0; ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK"; - ws.Cell(row, col2).Style.Font.FontSize = 10; + ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 10; ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, col2).Style.Alignment.WrapText = true; @@ -4050,7 +4050,7 @@ namespace rmutr_report.Controllers ws.Cell(row,2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; - ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.SetBold().Font.FontName = "TH SarabunPSK"; + ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontName = "TH SarabunPSK"; ws.Range(ws.Cell(row, 1),ws.Cell(row,2)).Style.Font.FontSize = 10; ws.Cell(row, 1).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, 1).Style.Alignment.WrapText = true; @@ -4060,7 +4060,7 @@ namespace rmutr_report.Controllers ws.Cell(row, col2).Value = budgetPlan.value??0; ws.Cell(row, col2).Style.Border.OutsideBorder = XLBorderStyleValues.Thin; ws.Cell(row, col2).Style.Font.FontName = "TH SarabunPSK"; - ws.Cell(row, col2).Style.Font.SetBold().Font.FontSize = 10; + ws.Cell(row, col2).Style.Font.FontSize = 10; ws.Cell(row, col2).Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center; ws.Cell(row, col2).Style.Alignment.Vertical = XLAlignmentVerticalValues.Center; ws.Cell(row, col2).Style.NumberFormat.SetFormat("#,#0"); diff --git a/Folder.DotSettings.user b/Folder.DotSettings.user index 8b2958d..52f0900 100644 --- a/Folder.DotSettings.user +++ b/Folder.DotSettings.user @@ -1,2 +1,3 @@  + ForceIncluded ForceIncluded \ No newline at end of file diff --git a/bin/Debug/net5.0/rmutr_report.dll b/bin/Debug/net5.0/rmutr_report.dll index 610e473..932c446 100644 Binary files a/bin/Debug/net5.0/rmutr_report.dll and b/bin/Debug/net5.0/rmutr_report.dll differ diff --git a/bin/Debug/net5.0/rmutr_report.pdb b/bin/Debug/net5.0/rmutr_report.pdb index 74b24ef..5a227ec 100644 Binary files a/bin/Debug/net5.0/rmutr_report.pdb and b/bin/Debug/net5.0/rmutr_report.pdb differ diff --git a/obj/Debug/net5.0/ref/rmutr_report.dll b/obj/Debug/net5.0/ref/rmutr_report.dll index 77398ae..944d157 100644 Binary files a/obj/Debug/net5.0/ref/rmutr_report.dll and b/obj/Debug/net5.0/ref/rmutr_report.dll differ diff --git a/obj/Debug/net5.0/refint/rmutr_report.dll b/obj/Debug/net5.0/refint/rmutr_report.dll index 77398ae..944d157 100644 Binary files a/obj/Debug/net5.0/refint/rmutr_report.dll and b/obj/Debug/net5.0/refint/rmutr_report.dll differ diff --git a/obj/Debug/net5.0/rmutr_report.AssemblyInfo.cs b/obj/Debug/net5.0/rmutr_report.AssemblyInfo.cs index aa21837..86b8cc8 100644 --- a/obj/Debug/net5.0/rmutr_report.AssemblyInfo.cs +++ b/obj/Debug/net5.0/rmutr_report.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("rmutr_report")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b009389dc0708df31994b749d03145a84b87e6a7")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+fe5bea66d79e8a2ba245bcbaf09a0fae47656731")] [assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")] [assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/obj/Debug/net5.0/rmutr_report.AssemblyInfoInputs.cache b/obj/Debug/net5.0/rmutr_report.AssemblyInfoInputs.cache index 4b09d69..a53846e 100644 --- a/obj/Debug/net5.0/rmutr_report.AssemblyInfoInputs.cache +++ b/obj/Debug/net5.0/rmutr_report.AssemblyInfoInputs.cache @@ -1 +1 @@ -f6b8428931236a455056fe3f165c6926bfa81e848064c3251c7fa774e28e0711 +4c615bb9605489e6775696d6efe64333ac45f5ef2a3a4321b8081d650d7ad32e diff --git a/obj/Debug/net5.0/rmutr_report.RazorTargetAssemblyInfo.cache b/obj/Debug/net5.0/rmutr_report.RazorTargetAssemblyInfo.cache index eac805a..5554050 100644 --- a/obj/Debug/net5.0/rmutr_report.RazorTargetAssemblyInfo.cache +++ b/obj/Debug/net5.0/rmutr_report.RazorTargetAssemblyInfo.cache @@ -1 +1 @@ -6e1921a497d6bfa5a344720c448a8ff8bc8e02e2633ceeb78c84c1f8725d3b8f +fb57b358bbbbd91d012c2bcf5f603d483e0ec95f2dfadfa3496a2bd582a113e3 diff --git a/obj/Debug/net5.0/rmutr_report.dll b/obj/Debug/net5.0/rmutr_report.dll index 610e473..932c446 100644 Binary files a/obj/Debug/net5.0/rmutr_report.dll and b/obj/Debug/net5.0/rmutr_report.dll differ diff --git a/obj/Debug/net5.0/rmutr_report.pdb b/obj/Debug/net5.0/rmutr_report.pdb index 74b24ef..5a227ec 100644 Binary files a/obj/Debug/net5.0/rmutr_report.pdb and b/obj/Debug/net5.0/rmutr_report.pdb differ diff --git a/obj/Debug/net5.0/staticwebassets/msbuild.rmutr_report.Microsoft.AspNetCore.StaticWebAssets.props b/obj/Debug/net5.0/staticwebassets/msbuild.rmutr_report.Microsoft.AspNetCore.StaticWebAssets.props index 8e0efac..aa97529 100644 --- a/obj/Debug/net5.0/staticwebassets/msbuild.rmutr_report.Microsoft.AspNetCore.StaticWebAssets.props +++ b/obj/Debug/net5.0/staticwebassets/msbuild.rmutr_report.Microsoft.AspNetCore.StaticWebAssets.props @@ -112,6 +112,22 @@ PreserveNewest $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\budget_expenditure_report_from_revenue.frx)) + + Package + rmutr_report + $(MSBuildThisFileDirectory)..\staticwebassets\ + _content/rmutr_report + reports\budget_expenditure_report_from_revenue_v1.frx + + + + + + + + PreserveNewest + $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\budget_expenditure_report_from_revenue_v1.frx)) + Package rmutr_report diff --git a/obj/Debug/net5.0/staticwebassets/rmutr_report.StaticWebAssets.Pack.cache b/obj/Debug/net5.0/staticwebassets/rmutr_report.StaticWebAssets.Pack.cache index a3269f2..c806e58 100644 --- a/obj/Debug/net5.0/staticwebassets/rmutr_report.StaticWebAssets.Pack.cache +++ b/obj/Debug/net5.0/staticwebassets/rmutr_report.StaticWebAssets.Pack.cache @@ -1 +1 @@ -b77baecdf45cb80236438e8a223568cbd6e07fc272289f2130dc9e2d455d9160 +1e00466f0b88109f048610c7645c46c929b7a4dd3b6d32b115f372c65af39b3a diff --git a/obj/rider.project.model.nuget.info b/obj/rider.project.model.nuget.info index 2778ea5..51997b4 100644 --- a/obj/rider.project.model.nuget.info +++ b/obj/rider.project.model.nuget.info @@ -1 +1 @@ -17254282354108198 \ No newline at end of file +17254343416267455 \ No newline at end of file