From 00d5f86d10bcfd6f6db84c117a7671a4ef0ea621 Mon Sep 17 00:00:00 2001 From: kamonwan taengsuk Date: Fri, 18 Aug 2023 13:02:23 +0700 Subject: [PATCH] remove -list --- Controllers/Summary.Controller.cs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Controllers/Summary.Controller.cs b/Controllers/Summary.Controller.cs index 2801b7c..b2936f4 100644 --- a/Controllers/Summary.Controller.cs +++ b/Controllers/Summary.Controller.cs @@ -1747,13 +1747,9 @@ namespace rmutr_report.Controllers detail.unique_feature2 = null; detail.unique_feature3 = null; } - if (detail.topic_type == 2) - { - detail.topic = "- " + detail.topic; - } + if (detail.topic_type == 5) { - if (detail.conform_1 == true) { detail.conform1 = "P"; @@ -1829,26 +1825,22 @@ namespace rmutr_report.Controllers return Ok(); } - [SwaggerOperation("สรุปภาพรวมการเสนอแผนการปรับปรุงอาคารสถานที่/แผนการจัดหาที่ดินและสิ่งก่อสร้าง")] + + [SwaggerOperation("สรุปภาพรวมการเสนอแผนการปรับปรุงอาคารสถานที่/แผนการจัดหาที่ดินและสิ่งก่อสร้าง")] [HttpPost, Route("reports/summary_overview_building/{type}")] [ApiExplorerSettings(GroupName = "reports")] public IActionResult GetSumDemandReport([FromRoute] string type, [FromBody] summary_overview_building summaryOverviewBuilding) { - foreach (var detail in summaryOverviewBuilding.data) { if (detail.topic_type != 5) { detail.row_no = null; - } - if (detail.topic_type == 2) - { - detail.topic = "- " + detail.topic; } + if (detail.topic_type == 5) { - if (detail.readiness_action_1 == true) { detail.readiness_action1 = "P"; @@ -1869,7 +1861,7 @@ namespace rmutr_report.Controllers detail.readiness_action4 = "P"; } - + if (detail.appearance_equipment_1 == true) { detail.appearance_equipment1 = "P";