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 @@  - +