From 29515d47ef7d62e1ec2ae56f3ae793dc849d4ead Mon Sep 17 00:00:00 2001 From: kamonwan taengsuk Date: Tue, 28 Mar 2023 12:14:26 +0700 Subject: [PATCH] fixed --- Controllers/building_four.Controller.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Controllers/building_four.Controller.cs b/Controllers/building_four.Controller.cs index f03f8f3..c797d8e 100644 --- a/Controllers/building_four.Controller.cs +++ b/Controllers/building_four.Controller.cs @@ -148,15 +148,12 @@ namespace rmutr_report.Controllers } else if (str.Length == 8) { - for (int i = 5; i <= str.Length - 1; i += 8) - { - boqPrice.list = str.Insert(i, ","); - } - for (int i = 3; i <= str.Length - 1; i += 8) { boqPrice.list = str.Insert(i, ","); + boqPrice.list = str.Insert(i, ","); } + } } @@ -195,14 +192,12 @@ namespace rmutr_report.Controllers } 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.have = str.Insert(i, ","); } + } boqPrice.text1 = "- มี วงเงิน "+ boqPrice.have + " บาท"; boqPrice.text2 = "- ดำเนินการจัดทำ BOQ เดือน "+ boqPrice.pending_boq_month;