From 7d1b665e8a5156e1becbaf0a8ed1197af9ae6bf7 Mon Sep 17 00:00:00 2001 From: jjh Date: Tue, 19 Sep 2023 14:02:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=AC=B4=20=EA=B5=AC=EB=B6=84=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EA=B0=9C?= =?UTF-8?q?=EB=B3=84=EC=B4=9D=EC=A0=95=EB=B3=B4=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EB=8A=94=20url=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/levy/web/Levy02Controller.java | 9 --- .../xit/fims/sprt/web/Sprt02Controller.java | 29 +++++---- .../xit/fims/sprt/web/Sprt04Controller.java | 7 --- .../cokr/xit/fims/task/web/DpvController.java | 61 +++++++++++++++++-- .../WEB-INF/jsp/fims/sprt/sprt02010-main.jsp | 36 ++++++++--- .../WEB-INF/jsp/fims/sprt/sprt02020-info.jsp | 44 ++++++++----- .../WEB-INF/jsp/fims/sprt/sprt02030-info.jsp | 28 ++++++--- .../WEB-INF/jsp/fims/sprt/sprt02050-info.jsp | 48 ++++++++------- .../WEB-INF/jsp/fims/sprt/sprt02080-info.jsp | 24 +++++--- 9 files changed, 191 insertions(+), 95 deletions(-) diff --git a/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java b/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java index c4f9c53c..d83333e0 100644 --- a/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java +++ b/src/main/java/cokr/xit/fims/levy/web/Levy02Controller.java @@ -5,8 +5,6 @@ import java.util.Map; import javax.annotation.Resource; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.code.CommonCode; @@ -50,7 +48,6 @@ public class Levy02Controller extends ApplicationController { * 조건없는 {@link #getRductList(RductQuery) 과태료 감경 대장 조회 결과}를 포함시킨다. * @return /rduct/rduct-main */ - @RequestMapping(name = "과태료 감경 대장 메인", value = "/010/main.do") public ModelAndView reductionMain() { ModelAndView mav = getRductList(new LevyQuery().setPageNum(1)); @@ -75,7 +72,6 @@ public class Levy02Controller extends ApplicationController { * "rductTotal": 조회 결과 찾은 전체 과태료 감경 대장 수 * } */ - @RequestMapping(name = "과태료 감경 대장 조회", value = "/010/list.do") public ModelAndView getRductList(LevyQuery req) { List result = levy02Service.getRductList(setFetchSize(req)); @@ -90,7 +86,6 @@ public class Levy02Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name = "과태료 감경 대장 제거", value = "/010/remove.do") public ModelAndView removeRduct(Rduct rduct) { boolean saved = false; String retMessage = levy02Service.removeRduct(rduct); @@ -114,7 +109,6 @@ public class Levy02Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name="과태료 감경 대장 목록 제거", value="/010/removes.do") public ModelAndView removeRductList(LevyQuery req) { boolean saved = false; String retMessage = levy02Service.removeRducts(req); @@ -137,7 +131,6 @@ public class Levy02Controller extends ApplicationController { * "rductInfo": 과태료 감경 정보 * } */ - @RequestMapping(name = "과태료 감경 정보 조회", value = "/020/info.do") public ModelAndView getRductInfo(LevyQuery req) { DataObject rductInfo = levy02Service.getRductInfo(req); @@ -173,7 +166,6 @@ public class Levy02Controller extends ApplicationController { * "saved": 등록되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name = "과태료 감경 대장 등록", value = "/020/create.do") public ModelAndView createRduct(Rduct rduct) { boolean saved = false; String retMessage = levy02Service.createRduct(rduct); @@ -196,7 +188,6 @@ public class Levy02Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name = "과태료 감경 대장 수정", value = "/020/update.do") public ModelAndView updateRduct(Rduct rduct) { boolean saved = false; String retMessage = levy02Service.updateRduct(rduct); diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java index 78b55d62..0547a855 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt02Controller.java @@ -5,7 +5,6 @@ import java.util.List; import javax.annotation.Resource; -import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.ModelAndView; @@ -45,6 +44,24 @@ import cokr.xit.foundation.data.DataObject; */ public class Sprt02Controller extends ApplicationController { + public static final String CLASS_URL = "/sprt/sprt02"; + + public class METHOD_URL { + public static final String + indivTotalInfoMain = "/010/main.do" // 개별 총정보 메인 화면 + , getCrdnPayerInfo = "/020/info.do" // 단속, 납부자 정보 조회 + , getCrdnFileList = "/020/crdnFileList.do" // 단속 이미지 파일 정보 조회 + , updateCrdnImageFile = "/020/updateFile.do" // 단속 이미지 파일 저장 + , removeCrdnImageFile = "/020/removeFile.do" // 단속 이미지 파일 삭제 + , getOpnnSbmsnInfo = "/030/info.do" // 의견제출 정보 조회 + , getSndngInfo = "/040/info.do" // 발송, 반송 정보 조회 + , getPrcsDtlInfo = "/050/info.do" // 처리 상세 정보 조회 + , getLevyNpmntInfo = "/060/info.do" // 부과체납 정보 조회 + , getRcvmtInfo = "/070/info.do" // 수납 정보 조회 + , getCvlcptDscsnCnInfo = "/080/info.do" // 민원 상담 정보 조회 + ; + } + @Resource(name="sprt02Service") private Sprt02Service sprt02Service; @@ -110,7 +127,6 @@ public class Sprt02Controller extends ApplicationController { * "crdnPayer": {...} * } */ - @RequestMapping(name="단속, 납부자 정보 조회", value="/020/info.do") public ModelAndView getCrdnPayerInfo(SprtQuery req) { // 단속(TB_CRDN), 납부자(TB_PAYER) 정보 DataObject crdnPayer = sprt02Service.getCrdnPayerInfo(req); @@ -137,7 +153,6 @@ public class Sprt02Controller extends ApplicationController { * "crdnPayer": {...} * } */ - @RequestMapping(name="단속 이미지 파일 정보 조회", value="/020/crdnFileList.do") public ModelAndView getCrdnFileList(SprtQuery req) { List fileList = sprt02Service.getCrdnFileList(req); @@ -158,7 +173,6 @@ public class Sprt02Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ - @RequestMapping(name="단속 이미지 파일 저장", value="/020/updateFile.do") public ModelAndView updateCrdnImageFile(Crdn crdn, MultipartFile[] newFileList) { boolean saved = false; String retMessage = "[F] "; @@ -195,7 +209,6 @@ public class Sprt02Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ - @RequestMapping(name="단속 이미지 파일 저장", value="/020/removeFile.do") public ModelAndView removeCrdnImageFile(String crdnId, String atchFileCnt, String... fileIDs) { boolean saved = false; String retMessage = "[F] "; @@ -220,7 +233,6 @@ public class Sprt02Controller extends ApplicationController { * "opnnSbmsn": {...} * } */ - @RequestMapping(name="의견제출 정보 조회", value="/030/info.do") public ModelAndView getOpnnSbmsnInfo(SprtQuery req) { // 의견제출(TB_OPNN_SBMSN) 대장 조회 ExclQuery exclQuery = new ExclQuery(); @@ -258,7 +270,6 @@ public class Sprt02Controller extends ApplicationController { * "sndngDtl": {...} * } */ - @RequestMapping(name="발송 정보 조회", value="/040/info.do") public ModelAndView getSndngInfo(SprtQuery req) { // 발송반송 정보 SndbQuery sndb01Query = new SndbQuery(); @@ -302,7 +313,6 @@ public class Sprt02Controller extends ApplicationController { * "sndngDtl": {...} * } */ - @RequestMapping(name="처리 상세 정보 조회", value="/050/info.do") public ModelAndView getPrcsDtlInfo(SprtQuery req) { // 과태료 감경(TB_RDUCT) 대장 조회 LevyQuery levyQuery = new LevyQuery(); @@ -375,7 +385,6 @@ public class Sprt02Controller extends ApplicationController { * "sndngDtl": {...} * } */ - @RequestMapping(name="부과체납 정보 조회", value="/060/info.do") public ModelAndView getLevyNpmntInfo(SprtQuery req) { // 감경 조회 LevyQuery levyQuery = new LevyQuery(); @@ -409,7 +418,6 @@ public class Sprt02Controller extends ApplicationController { * "rcvmt": {...} * } */ - @RequestMapping(name="수납 정보 조회", value="/070/info.do") public ModelAndView getRcvmtInfo(SprtQuery req) { RcvmQuery rcvmQuery = new RcvmQuery(); @@ -443,7 +451,6 @@ public class Sprt02Controller extends ApplicationController { * "cvlcptDscsnCn": {...} * } */ - @RequestMapping(name="민원 상담 정보 조회", value="/080/info.do") public ModelAndView getCvlcptDscsnCnInfo(SprtQuery req) { if (req.getCallPurpose() == null) { req.setCallPurpose("view"); diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt04Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt04Controller.java index 4f8d6fa0..d3e9a10d 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt04Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt04Controller.java @@ -5,8 +5,6 @@ import java.util.Map; import javax.annotation.Resource; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.code.CommonCode; @@ -69,7 +67,6 @@ public class Sprt04Controller extends ApplicationController { * "cvlcptDscsnCnTotal": 조회 결과 찾은 전체 민원 상담 내용 수 * } */ - @RequestMapping(name = "민원 상담 내용 조회", value = "/010/list.do") public ModelAndView getCvlcptDscsnCnList(SprtQuery req) { List result = sprt04Service.getCvlcptDscsnCnList(setFetchSize(req)); @@ -84,7 +81,6 @@ public class Sprt04Controller extends ApplicationController { * "saved": 저장되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name = "민원 상담 내용 제거", value = "/010/remove.do") public ModelAndView removeCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) { boolean saved = false; String retMessage = sprt04Service.removeCvlcptDscsnCn(cvlcptDscsnCn); @@ -130,7 +126,6 @@ public class Sprt04Controller extends ApplicationController { * "levyExclusionInfo": 부과제외 정보 * } */ - @RequestMapping(name = "민원 상담 내용 정보 조회", value = "/020/info.do") public ModelAndView getCvlcptDscsnCnInfo(SprtQuery req) { DataObject cvlcptDscsnCn = sprt04Service.getCvlcptDscsnCnInfo(req); @@ -155,7 +150,6 @@ public class Sprt04Controller extends ApplicationController { * "saved": 등록되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name = "민원 상담 내용 대장 등록", value = "/020/create.do") public ModelAndView createCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) { boolean saved = false; String retMessage = sprt04Service.createCvlcptDscsnCn(cvlcptDscsnCn); @@ -178,7 +172,6 @@ public class Sprt04Controller extends ApplicationController { * "saved": 수정되었으면 true, 그렇지 않으면 false * } */ - @PostMapping(name = "민원 상담 내용 대장 수정", value = "/020/update.do") public ModelAndView updateCvlcptDscsnCn(CvlcptDscsnCn cvlcptDscsnCn) { boolean saved = false; String retMessage = sprt04Service.updateCvlcptDscsnCn(cvlcptDscsnCn); diff --git a/src/main/java/cokr/xit/fims/task/web/DpvController.java b/src/main/java/cokr/xit/fims/task/web/DpvController.java index a5296dc5..da090c2a 100644 --- a/src/main/java/cokr/xit/fims/task/web/DpvController.java +++ b/src/main/java/cokr/xit/fims/task/web/DpvController.java @@ -461,15 +461,68 @@ public class DpvController { @RequestMapping(name="장애인과태료업무 업무지원_개별총정보", value=CLASS_URL+"/sprt/sprt02") class Sprt02Controller extends cokr.xit.fims.sprt.web.Sprt02Controller { - /** 개별총정보 메인화면을 연다. - * @return fims/sprt/sprt02010-main - */ @Override - @RequestMapping(name="개별총정보 메인", value="/010/main.do") + @RequestMapping(name="장애인과태료업무 과태료 개별총정보 메인", value=METHOD_URL.indivTotalInfoMain) public ModelAndView indivTotalInfoMain(SprtQuery req) { return super.indivTotalInfoMain(req); } + @Override + @RequestMapping(name="장애인과태료업무 과태료 단속, 납부자 정보 조회", value=METHOD_URL.getCrdnPayerInfo) + public ModelAndView getCrdnPayerInfo(SprtQuery req) { + return super.getCrdnPayerInfo(req); + } + + @Override + @RequestMapping(name="장애인과태료업무 과태료 단속 이미지 파일 정보 조회", value=METHOD_URL.getCrdnFileList) + public ModelAndView getCrdnFileList(SprtQuery req) { + return super.getCrdnFileList(req); + } + + @Override + @RequestMapping(name="장애인과태료업무 과태료 단속 이미지 파일 저장", value=METHOD_URL.updateCrdnImageFile) + public ModelAndView updateCrdnImageFile(Crdn crdn, MultipartFile[] newFileList) { + return super.updateCrdnImageFile(crdn, newFileList); + } + + @Override + @RequestMapping(name="장애인과태료업무 과태료 단속 이미지 파일 삭제", value=METHOD_URL.removeCrdnImageFile) + public ModelAndView removeCrdnImageFile(String crdnId, String atchFileCnt, String... fileIDs) { + return super.removeCrdnImageFile(crdnId, atchFileCnt, fileIDs); + } + + @Override + @RequestMapping(name="장애인과태료업무 과태료 의견제출 정보 조회", value=METHOD_URL.getOpnnSbmsnInfo) + public ModelAndView getOpnnSbmsnInfo(SprtQuery req) { + return super.getOpnnSbmsnInfo(req); + } + + @Override + @RequestMapping(name="장애인과태료업무 과태료 발송, 반송 정보 조회", value=METHOD_URL.getSndngInfo) + public ModelAndView getSndngInfo(SprtQuery req) { + return super.getSndngInfo(req); + } + @Override + @RequestMapping(name="장애인과태료업무 과태료 처리 상세 정보 조회", value=METHOD_URL.getPrcsDtlInfo) + public ModelAndView getPrcsDtlInfo(SprtQuery req) { + return super.getPrcsDtlInfo(req); + } + @Override + @RequestMapping(name="장애인과태료업무 과태료 부과 체납 정보 조회", value=METHOD_URL.getLevyNpmntInfo) + public ModelAndView getLevyNpmntInfo(SprtQuery req) { + return super.getLevyNpmntInfo(req); + } + @Override + @RequestMapping(name="장애인과태료업무 과태료 수납 정보 조회", value=METHOD_URL.getRcvmtInfo) + public ModelAndView getRcvmtInfo(SprtQuery req) { + return super.getRcvmtInfo(req); + } + @Override + @RequestMapping(name="장애인과태료업무 과태료 민원 상담 정보 조회", value=METHOD_URL.getCvlcptDscsnCnInfo) + public ModelAndView getCvlcptDscsnCnInfo(SprtQuery req) { + return super.getCvlcptDscsnCnInfo(req); + } + } @Controller diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp index e21e25ea..d47a63a7 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02010-main.jsp @@ -145,7 +145,7 @@ // 자료 재조회 refreshDataInfo${pageName} = (params) => { ajax.get({ - url : wctx.url("/" + params.taskSeCd + "/sprt/sprt02/010/main.do") + url : wctx.url(params.taskSeCd + "/sprt/sprt02/010/main.do") , headers: { Accept: "application/json; charset=utf-8" } // json , data : params || {} , success : resp => { @@ -318,7 +318,7 @@ }; ajax.get({ - url : wctx.url("/sprt/sprt02/020/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/020/info.do") , data : params || {} , success : resp => { $("#crdnPayerInfo").html(resp); @@ -345,7 +345,7 @@ }; ajax.get({ - url : wctx.url("/sprt/sprt02/030/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/030/info.do") , data : params || {} , success : resp => { $("#opnnSbmsnInfo").html(resp); @@ -356,6 +356,8 @@ // 발송 반송 정보 fnSndngInfo${pageName} = () => { let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -365,10 +367,12 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd }; ajax.get({ - url : wctx.url("/sprt/sprt02/040/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/040/info.do") , data : params || {} , success : resp => { $("#sndngInfo").html(resp); @@ -379,6 +383,8 @@ // 처리 상세 정보 fnPrcsDtlInfo${pageName} = () => { let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -388,10 +394,12 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd }; ajax.get({ - url : wctx.url("/sprt/sprt02/050/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/050/info.do") , data : params || {} , success : resp => { $("#prcsDtlInfo").html(resp); @@ -402,6 +410,8 @@ // 부과체납 정보 fnLevyNpmntInfo${pageName} = () => { let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -411,10 +421,12 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd }; ajax.get({ - url : wctx.url("/sprt/sprt02/060/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/060/info.do") , data : params || {} , success : resp => { $("#levyNpmntInfo").html(resp); @@ -425,6 +437,8 @@ // 수납 정보 fnRcvmtInfo${pageName} = () => { let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -434,10 +448,12 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd }; ajax.get({ - url : wctx.url("/sprt/sprt02/070/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/070/info.do") , data : params || {} , success : resp => { $("#rcvmtInfo").html(resp); @@ -449,6 +465,8 @@ fnCvlcptDscsnInfo${pageName} = () => { let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); let vhrno = ${pageName}Control.dataset.getValue("VHRNO"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -460,10 +478,12 @@ , inquiryCondition : "crdnId_vhrno" , crdnId : crdnId , vhrno : vhrno + , sggCd : sggCd + , taskSeCd : taskSeCd }; ajax.get({ - url : wctx.url("/sprt/sprt02/080/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/080/info.do") , data : params || {} , success : resp => { $("#cvlcptDscsnInfo").html(resp); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp index 08b4bb6c..42f44492 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp @@ -359,7 +359,7 @@ } ajax.get({ - url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do") + url : wctx.url(params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do") , data : params || {} , success : resp => { dialog.open({ @@ -389,7 +389,7 @@ // 삭제 ${pageName}Control.remove = (params) => { ajax.post({ - url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/010/remove.do") + url : wctx.url(params.taskSeCd + ${pageName}PrefixUrl + "/010/remove.do") , data : params || {} , success : resp => ${pageName}Control.onRemove(resp) // 삭제 callback }); @@ -476,6 +476,9 @@ saveFile${pageName} = (info) => { if (!info) return; + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); let btnTitle = $("#btnAddFile--${pageName}").attr("title"); let formData = new FormData(document.getElementById("frmFile--${pageName}")); @@ -494,7 +497,7 @@ } ajax.post({ - url : wctx.url("/sprt/sprt02/020/updateFile.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/020/updateFile.do") , data : formData , contentType : false , processData : false @@ -506,9 +509,11 @@ removeFile${pageName} = (target) => { if (!target) return; + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); let btnTitle = $("#btnDeleteFile--${pageName}").attr("title"); let fileId = ""; - let crdnId = $("#crdnId--${pageName}").val(); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -524,12 +529,14 @@ let params = { crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd , atchFileCnt : existFileArr${pageName}.length , fileIDs : fileId } ajax.post({ - url : wctx.url("/sprt/sprt02/020/removeFile.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/020/removeFile.do") , data : params || {} , success : resp => { callbackFile${pageName}(btnTitle, resp); } }); @@ -537,7 +544,9 @@ // 이미지(사진) 재조회 refreshImageInfo${pageName} = () => { - let crdnId = $("#crdnId--${pageName}").val(); + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -547,11 +556,13 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd , delYn : "N" }; ajax.get({ - url : wctx.url("/sprt/sprt02/020/crdnFileList.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/020/crdnFileList.do") , headers: { Accept: "application/json; charset=utf-8" } // json , data : params || {} , success : resp => { @@ -582,7 +593,7 @@ let dialogId = "cvlcptOrgnlDialog--${pageName}"; ajax.get({ - url : wctx.url("/" + params.taskSeCd + "/cvlc/cvlc01/050/info.do") + url : wctx.url(params.taskSeCd + "/cvlc/cvlc01/050/info.do") , data : params || {} , success : resp => { dialog.open({ @@ -602,7 +613,7 @@ let dialogId = "answerPreviewDialog--${pageName}"; ajax.get({ - url : wctx.url("/" + params.taskSeCd + "/cvlc/cvlc02/060/info.do?openerPageName=${pageName}") + url : wctx.url(params.taskSeCd + "/cvlc/cvlc02/060/info.do?openerPageName=${pageName}") , data : params || {} , success : resp => { dialog.open({ @@ -620,7 +631,7 @@ if (!params) return; ajax.post({ - url : wctx.url("/" + params.taskSeCd + "/excl/excl03/010/create.do") + url : wctx.url(params.taskSeCd + "/excl/excl03/010/create.do") , data : params || {} , success : resp => { if (resp.saved) { @@ -641,10 +652,11 @@ } - // 자료 재조회 refreshDataInfo${pageName} = () => { let crdnId = $("#crdnId--${pageNameMain}").val(); + let sggCd = $("#sggCd--${pageNameMain}").val(); + let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -654,11 +666,13 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd , delYn : "N" }; ajax.get({ - url : wctx.url("/sprt/sprt02/020/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/020/info.do") , headers: { Accept: "application/json; charset=utf-8" } // json , data : params || {} , success : resp => { @@ -858,9 +872,9 @@ // 단속 재등록 fnCreateCrdnReReg${pageName} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 단속 ID 가 없다면.. return if (crdnId == undefined || crdnId == "") { diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp index 7fffb0ad..6d2ef891 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp @@ -226,7 +226,7 @@ } ajax.get({ - url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do") + url : wctx.url(params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do") , data : params || {} , success : resp => { if ((typeof resp) != "string") { @@ -257,7 +257,7 @@ // 삭제 ${pageName}Control.removeOpnnSbmsn = (params) => { ajax.post({ - url : wctx.url("/excl/excl02/010/remove.do") + url : wctx.url(params.taskSeCd + "/excl/excl02/010/remove.do") , data : params || {} , success : resp => ${pageName}Control.onRemove(resp) }); @@ -269,7 +269,7 @@ // 심의 dialog getInfoOpnnSbmsnDlbrt = (params) => { ajax.get({ - url : wctx.url("/excl/excl02/030/info.do") + url : wctx.url(params.taskSeCd + "/excl/excl02/030/info.do") , data : params || {} , success : resp => { dialog.open({ @@ -286,6 +286,8 @@ // 자료 재조회 refreshDataInfo${pageName} = () => { let crdnId = $("#crdnId--${pageNameMain}").val(); + let sggCd = $("#sggCd--${pageNameMain}").val(); + let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -295,11 +297,13 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd , delYn : "N" }; ajax.get({ - url : wctx.url("/sprt/sprt02/030/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/030/info.do") , headers: { Accept: "application/json; charset=utf-8" } // json , data : params || {} , success : resp => { @@ -356,10 +360,10 @@ // 의견제출 수정 fnUpdateOpnnSbmsn${pageName} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID"); + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 의견 ID 가 없다면.. return if (opnnId == null || opnnId == "") { @@ -379,10 +383,10 @@ // 의견제출 삭제 fnRemoveOpnnSbmsn${pageName} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID"); + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 의견 ID 가 없다면.. return if (opnnId == null || opnnId == "") { @@ -416,6 +420,8 @@ fnUpdateOpnnSbmsnDlbrt${pageName} = () => { let opnnId = ${pageName}Control.dataset.getValue("OPNN_ID"); let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 의견제출 ID 가 없다면.. return if (opnnId == null || opnnId == "") { @@ -426,6 +432,8 @@ callPurpose : "update" , opnnId : opnnId , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd }; getInfoOpnnSbmsnDlbrt(params); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp index 25526e46..9d387d4c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp @@ -334,7 +334,7 @@ } ajax.get({ - url : wctx.url("/" + params.taskSeCd + ${pageName}${pageDataName1}PrefixUrl + "/020/info.do") + url : wctx.url(params.taskSeCd + ${pageName}${pageDataName1}PrefixUrl + "/020/info.do") , data : params || {} , success : resp => { if ((typeof resp) != "string") { @@ -371,7 +371,7 @@ // 삭제 ${pageName}${pageDataName1}Control.remove = (params) => { ajax.post({ - url : wctx.url("/" + params.taskSeCd + ${pageName}${pageDataName1}PrefixUrl + "/010/remove.do") + url : wctx.url(params.taskSeCd + ${pageName}${pageDataName1}PrefixUrl + "/010/remove.do") , data : params || {} , success : resp => ${pageName}${pageDataName1}Control.onRemove(resp) // 삭제 callback }); @@ -404,7 +404,7 @@ } ajax.get({ - url : wctx.url("/" + params.taskSeCd + ${pageName}${pageDataName2}PrefixUrl + "/020/info.do") + url : wctx.url(params.taskSeCd + ${pageName}${pageDataName2}PrefixUrl + "/020/info.do") , data : params || {} , success : resp => { if ((typeof resp) != "string") { @@ -442,7 +442,7 @@ // 삭제 ${pageName}${pageDataName2}Control.remove = (params) => { ajax.post({ - url : wctx.url("/" + params.taskSeCd + ${pageName}${pageDataName2}PrefixUrl + "/010/remove.do") + url : wctx.url(params.taskSeCd + ${pageName}${pageDataName2}PrefixUrl + "/010/remove.do") , data : params || {} , success : resp => ${pageName}${pageDataName2}Control.onRemove(resp) // 삭제 callback }); @@ -486,6 +486,8 @@ // 자료 재조회 refreshDataInfo${pageName} = () => { let crdnId = $("#crdnId--${pageNameMain}").val(); + let sggCd = $("#sggCd--${pageNameMain}").val(); + let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); // 단속 ID 가 없다면.. return if (crdnId == null || crdnId == "") { @@ -495,11 +497,13 @@ let params = { callPurpose : "view" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd , delYn : "N" }; ajax.get({ - url : wctx.url("/sprt/sprt02/050/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/050/info.do") , headers: { Accept: "application/json; charset=utf-8" } // json , data : params || {} , success : resp => { @@ -566,7 +570,6 @@ , crdnId : crdnId , sggCd : sggCd , taskSeCd : taskSeCd - , levyExclSeCd : "1" }; ${pageName}${pageDataName1}Control.getInfo(params); @@ -574,10 +577,10 @@ // 감경 수정 fnUpdate${pageName}${pageDataName1} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let rductId = ${pageName}${pageDataName1}Control.dataset.getValue("RDUCT_ID"); + let crdnId = ${pageName}${pageDataName1}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}${pageDataName1}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}${pageDataName1}Control.dataset.getValue("TASK_SE_CD"); // 감경 ID 가 없다면.. return if (rductId == undefined || rductId == "") { @@ -586,10 +589,11 @@ let params = { callPurpose : "update" + , rductId : rductId , crdnId : crdnId , sggCd : sggCd , taskSeCd : taskSeCd - , rductId : rductId + }; ${pageName}${pageDataName1}Control.getInfo(params); @@ -597,10 +601,10 @@ // 감경 삭제 fnRemove${pageName}${pageDataName1} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let rductId = ${pageName}${pageDataName1}Control.dataset.getValue("RDUCT_ID"); + let crdnId = ${pageName}${pageDataName1}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}${pageDataName1}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}${pageDataName1}Control.dataset.getValue("TASK_SE_CD"); // 감경 ID 가 없다면.. return if (rductId == undefined || rductId == "") { @@ -609,10 +613,10 @@ let params = { callPurpose : "remove" + , rductId : rductId , crdnId : crdnId , sggCd : sggCd , taskSeCd : taskSeCd - , rductId : rductId }; dialog.alert({ @@ -647,10 +651,10 @@ // 부과제외 수정 fnUpdate${pageName}${pageDataName2} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let levyExclId = ${pageName}${pageDataName2}Control.dataset.getValue("LEVY_EXCL_ID"); + let crdnId = ${pageName}${pageDataName2}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}${pageDataName2}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}${pageDataName2}Control.dataset.getValue("TASK_SE_CD"); // 부과 제외 ID 가 없다면.. return if (levyExclId == undefined || levyExclId == "") { @@ -659,10 +663,10 @@ let params = { callPurpose : "update" + , levyExclId : levyExclId , crdnId : crdnId , sggCd : sggCd , taskSeCd : taskSeCd - , levyExclId : levyExclId }; ${pageName}${pageDataName2}Control.getInfo(params); @@ -670,10 +674,10 @@ // 부과제외 삭제 fnRemove${pageName}${pageDataName2} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let levyExclId = ${pageName}${pageDataName2}Control.dataset.getValue("LEVY_EXCL_ID"); + let crdnId = ${pageName}${pageDataName2}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}${pageDataName2}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}${pageDataName2}Control.dataset.getValue("TASK_SE_CD"); // 부과제외 ID 가 없다면.. return if (levyExclId == undefined || levyExclId == "") { @@ -682,10 +686,10 @@ let params = { callPurpose : "remove" + , levyExclId : levyExclId , crdnId : crdnId , sggCd : sggCd , taskSeCd : taskSeCd - , levyExclId : levyExclId }; dialog.alert({ diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp index f663fabc..061377e2 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp @@ -137,7 +137,7 @@ } ajax.get({ - url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do") + url : wctx.url(params.taskSeCd + ${pageName}PrefixUrl + "/020/info.do") , data : params || {} , success : resp => { dialog.open({ @@ -160,6 +160,8 @@ dialog.alert(showMessage); if (resp.saved) { + $("#dscsnCn--${pageName}").val(""); // 상담내용 초기화 + refreshDataInfo${pageName}(); // 자료 재조회 } } @@ -167,7 +169,7 @@ // 삭제 ${pageName}Control.remove = (params) => { ajax.post({ - url : wctx.url("/" + params.taskSeCd + ${pageName}PrefixUrl + "/010/remove.do") + url : wctx.url(params.taskSeCd + ${pageName}PrefixUrl + "/010/remove.do") , data : params || {} , success : resp => ${pageName}Control.onRemove(resp) // 삭제 callback }); @@ -195,6 +197,8 @@ // 자료 재조회 refreshDataInfo${pageName} = () => { let crdnId = $("#crdnId--${pageNameMain}").val(); + let sggCd = $("#sggCd--${pageNameMain}").val(); + let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let vhrno = $("#vhrno--${pageNameMain}").val(); // 단속 ID 가 없다면.. return @@ -206,12 +210,14 @@ callPurpose : "view" , inquiryCondition : "crdnId_vhrno" , crdnId : crdnId + , sggCd : sggCd + , taskSeCd : taskSeCd , vhrno : vhrno , delYn : "N" }; ajax.get({ - url : wctx.url("/sprt/sprt02/080/info.do") + url : wctx.url(taskSeCd + "/sprt/sprt02/080/info.do") , headers: { Accept: "application/json; charset=utf-8" } // json , data : params || {} , success : resp => { @@ -260,10 +266,10 @@ // 민원 상담 내용 수정 fnUpdate${pageName} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let cvlcptDscsnId = ${pageName}Control.dataset.getValue("CVLCPT_DSCSN_ID"); + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 민원 상담 ID 가 없다면.. return if (cvlcptDscsnId == undefined || cvlcptDscsnId == "") { @@ -283,10 +289,10 @@ // 민원 상담 내용 삭제 fnRemove${pageName} = () => { - let crdnId = $("#crdnId--${pageNameMain}").val(); - let sggCd = $("#sggCd--${pageNameMain}").val(); - let taskSeCd = $("#taskSeCd--${pageNameMain}").val(); let cvlcptDscsnId = ${pageName}Control.dataset.getValue("CVLCPT_DSCSN_ID"); + let crdnId = ${pageName}Control.dataset.getValue("CRDN_ID"); + let sggCd = ${pageName}Control.dataset.getValue("SGG_CD"); + let taskSeCd = ${pageName}Control.dataset.getValue("TASK_SE_CD"); // 민원 상담 ID 가 없다면.. return if (cvlcptDscsnId == undefined || cvlcptDscsnId == "") {