From 9c4020c5fcfdbc9d512ffe0eee9b136aae8b5b35 Mon Sep 17 00:00:00 2001 From: kamonwan taengsuk Date: Tue, 28 Mar 2023 11:59:22 +0700 Subject: [PATCH] fixed --- Controllers/building_four.Controller.cs | 11 +++++++++++ wwwroot/reports/building_fours.frx | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Controllers/building_four.Controller.cs b/Controllers/building_four.Controller.cs index 063f375..6c128e5 100644 --- a/Controllers/building_four.Controller.cs +++ b/Controllers/building_four.Controller.cs @@ -148,6 +148,17 @@ namespace rmutr_report.Controllers boqPrice.have = str.Insert(i, ","); } } + else if (str.Length == 8) + { + for (int i = 5; i <= str.Length - 1; i += 8) + { + boqPrice.have = str.Insert(i, ","); + } + for (int i = 3; i <= str.Length - 1; i += 8) + { + boqPrice.have = str.Insert(i, ","); + } + } boqPrice.text1 = "- มี วงเงิน "+ boqPrice.have + " บาท"; boqPrice.text2 = "- ดำเนินการจัดทำ BOQ เดือน "+ boqPrice.pending_boq_month; boqPrice.text3 = "- BOQ แล้วเสร็จเดือน "+ boqPrice.done_boq_month; diff --git a/wwwroot/reports/building_fours.frx b/wwwroot/reports/building_fours.frx index f461f64..a7afbb0 100644 --- a/wwwroot/reports/building_fours.frx +++ b/wwwroot/reports/building_fours.frx @@ -1,5 +1,5 @@  - +