From af24b8cc96554edebb6dc9c21687c0d0406ad213 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 27 Jul 2023 17:43:50 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=EC=A0=91=EC=88=98=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=EC=9E=90=EB=A3=8C=20=EC=83=81=EC=84=B8?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=BF=BC=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/crdn/dao/Crdn01Mapper.java | 6 + .../crdn/service/bean/Crdn01ServiceBean.java | 4 + .../xit/fims/crdn/web/Crdn01Controller.java | 20 + .../sql/mapper/fims/crdn/crdn01-mapper.xml | 38 +- .../WEB-INF/jsp/fims/crdn/crdn01010-main.jsp | 22 +- .../WEB-INF/jsp/fims/crdn/crdn01020-info.jsp | 472 ++++++++++++++++++ .../WEB-INF/jsp/fims/crdn/crdn01050-info.jsp | 3 +- 7 files changed, 560 insertions(+), 5 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp diff --git a/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java b/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java index 9cc55abc..b9369a1b 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/Crdn01Mapper.java @@ -63,4 +63,10 @@ public interface Crdn01Mapper extends AbstractMapper { */ DataObject selectAnswerPreview(CrdnQuery query); + /** 민원접수 초기자료 정보를 조회한다. + * @param query 민원접수 초기자료 조회 조건 + * @return 민원접수 초기자료 + */ + DataObject selectCivilComplaintReceiptInitialDataInfo(CrdnQuery req); + } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java index 472cd0b2..4e42af8b 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java @@ -156,6 +156,10 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic return crdn01Mapper.selectAnswerPreview(req); } + public DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req) { + return crdn01Mapper.selectCivilComplaintReceiptInitialDataInfo(req); + } + } diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java index 41dfba9c..067a5313 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn01Controller.java @@ -116,6 +116,26 @@ public class Crdn01Controller extends ApplicationController { ); } + /**민원접수 초기자료 상세조회 팝업 화면을 연다.
+ * @return fims/crdn/crdn01020-info + */ + @RequestMapping(name="민원접수 초기자료 조회", value="/020/info.do") + public ModelAndView getCivilComplaintReceiptInitialDataInfo(CrdnQuery req, HttpServletRequest request) { + boolean json = jsonResponse(); + String pageName = "crdn01020-info"; + + ModelAndView mav = new ModelAndView(json ? "jsonView" : "fims/crdn/"+pageName); + mav.addObject("pageName", pageName); + + String urlTaskSeCd = request.getServletPath().split("/")[1]; + mav.addObject("taskSeCd", urlTaskSeCd); + + DataObject info = crdn01Service.getCivilComplaintReceiptInitialDataInfo(req); + + mav.addObject("crdnInfo", json ? info : toJson(info)); + return mav; + } + /**민원답변대상자료 목록을 조회한다.
* {@link Crdn01ServiceBean#getCrackdownList(CrdnQuery)} 참고 * @param req 민원답변대상자료 목록 조회 조건 diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml index 725547ea..74935852 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml @@ -317,6 +317,42 @@ SELECT C.CRDN_ID AND C.CRDN_ID = #{crdnId} - + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp index 1e051fa0..3a5cda4b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01010-main.jsp @@ -179,7 +179,8 @@ $(document).ready(function(){ * DatasetControl **************************************************************************/ $P.crdnControl = new DatasetControl({ - prefix:"crdn", prefixName:"종합", infoSize:"xl", urls : { load : "", getInfo : "", remove : "" }, + size:"xxl", + urls : { load : "", getInfo : "", remove : "" }, keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.crdnList, appendData:true, formats : { CRDN_REG_SE_CD : FIM026, @@ -291,7 +292,24 @@ $(document).ready(function(){ } $P.dblclickCrdnList = (dataKey) => { - $P.crdnControl.getInfo(dataKey); + + var dialogId = "cvlcptInitialDataEditDialog--${pageName}"; + + ajax.get({ + url : $P.crdnControl.urls.getInfo, + data : {"crdnId" : dataKey}, + success : resp => { + dialog.open({ + id : dialogId, + title : "민원접수 초기자료 편집", + content : resp, + size : "xxl", + init : () => { + + } + }); + } + }); } $P.renderCrdnList = (total) => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp new file mode 100644 index 00000000..3b9d8030 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01020-info.jsp @@ -0,0 +1,472 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> + +
+
+
+ + +
+
+ +
+
+ + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+ + +
+
+ + +
+
+ + + +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp index 22c11753..1ccc010e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn01050-info.jsp @@ -100,8 +100,7 @@ $(document).ready(function() { **************************************************************************/ $P.formFields = new FimsFormFields("#frmEdit--${pageName}"); - $P.cvlcptControl = new DatasetControl({ - prefix:"cvlcpt", prefixName:"민원", infoSize:"xl", + $P.cvlcptControl = new DatasetControl({ urls : { load : "", getInfo : wctx.url("/"+$P.taskSeCd+"/crdn/crdn01/050/info.do") }, keymapper:info => info ? info.CRDN_ID : "", dataGetter:obj => obj.cvlcptInfo,