From c26cf10b15b202b3342326962244871d38689fb0 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 11 Jul 2023 15:53:10 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EA=B8=B0=20=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95(=EA=B3=BC=ED=83=9C=EB=A3=8C=EC=97=85?= =?UTF-8?q?=EB=AC=B4=EB=B3=84=20=EC=9E=85=EB=A0=A5=20=ED=95=AD=EB=AA=A9=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/web/Crdn05Controller.java | 30 +++-- .../WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 117 +++++++++++++----- 2 files changed, 108 insertions(+), 39 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java index ec875dfb..568fec57 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java @@ -61,20 +61,34 @@ public class Crdn05Controller extends ApplicationController { String urlTaskSeCd = request.getServletPath().split("/")[1]; mav.addObject("taskSeCd", urlTaskSeCd); - Map> commonCodes = getCodesOf("FIM011","FIM034","FIM053","LVS005"); + String vltnByTask = ""; + + switch(urlTaskSeCd) { + case "PVS" -> { vltnByTask = "WEB002"; } + case "BPV" -> { vltnByTask = "FIM005"; } + case "DPV","ECA" -> { vltnByTask = "FIM006"; } + } + Map> commonCodes = getCodesOf("FIM011","FIM053","LVS005",vltnByTask); mav.addObject("FIM011List", commonCodes.get("FIM011")); - mav.addObject("FIM034List", commonCodes.get("FIM034")); mav.addObject("FIM053List", commonCodes.get("FIM053")); mav.addObject("LVS005List", commonCodes.get("LVS005")); + mav.addObject("VLTNList", commonCodes.get(vltnByTask)); switch(urlTaskSeCd) { - case "PVS" -> {} - case "BPV" -> {} + case "PVS" -> { + commonCodes = getCodesOf("FIM002","FIM007"); + mav.addObject("FIM002List", commonCodes.get("FIM002")); + mav.addObject("FIM007List", commonCodes.get("FIM007")); + } + case "BPV" -> { + commonCodes = getCodesOf("FIM002"); + mav.addObject("FIM002List", commonCodes.get("FIM002")); + } case "DPV" -> { - commonCodes = getCodesOf("FIM006"); - mav.addObject("FIM006List", commonCodes.get("FIM006")); + commonCodes = getCodesOf("FIM034"); + mav.addObject("FIM034List", commonCodes.get("FIM034")); } - case "ECA" -> {} + case "ECA" -> { } } return mav; @@ -92,6 +106,8 @@ public class Crdn05Controller extends ApplicationController { List fileInfoList = new FileInfoFactory().makeFileInfos(null, uploadFileList); + crdn.setCrdnRegSeCd("01"); + crdn.setCrdnInptSeCd("03");//TODO : 사용자 기관의 시청,구청 구분 boolean saved = crdn05Service.create(crdn, fileInfoList); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index c7d14441..13c24d37 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -4,9 +4,9 @@
-
+ - +
-
- - (보류) -
+
@@ -54,28 +49,9 @@
-
- - -
-
- - -
-
- - -
+ + +
@@ -134,12 +110,18 @@
+ +
+ +
+
+
@@ -149,6 +131,7 @@
+
@@ -160,7 +143,72 @@
- +