From ad82d16c59aafb15fcd1dfe61d22e8f07e26cb3a Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 25 Sep 2023 16:54:42 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=EC=A0=91=EC=88=98=20?= =?UTF-8?q?=EC=83=81=EC=84=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 83 ------------------- .../WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 2 +- .../WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp | 22 ++++- 3 files changed, 19 insertions(+), 88 deletions(-) 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 f4c02b3e..26435a25 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 @@ -121,9 +121,6 @@ -
@@ -429,83 +426,6 @@ $(document).ready(function(){ } - //납부자 등록,수정 - $P.fnPopPayer = () => { - var callPurpose = ""; - var dialogTitle = ""; - if($("#rtpyrId--${pageName}").val() == null || $("#rtpyrId--${pageName}").val() == ""){ - callPurpose = "create"; - dialogTitle = "납부자 등록"; - } else { - callPurpose = "update"; - dialogTitle = "납부자 수정"; - } - - var params = { - callPurpose : callPurpose, - crdnId : "", // 단속 ID - sggCd : $("#sggCd--${pageName}").val(), // 시군구 코드 - taskSeCd : $("#taskSeCd--${pageName}").val(), // 업무 구분 코드 - rtpyrId : $("#rtpyrId--${pageName}").val(), // 납부자 ID - vhrno : $("#vhrno--${pageName}").val(), // 차량번호 - rtpyrInptSeCd : "01", // 납부자 입력 구분 코드 - delYn : "N" - }; - - ajax.get({ - url : wctx.url("/"+params.taskSeCd + "/payer/info.do"), - data : params || {}, - success : resp => { - dialog.open({ - id : "payerDialog", - title : dialogTitle, - content : resp, - size : "lg", - onClose : () => { $P.refreshPayer(); } // callback - }); - } - }); - } - - $P.refreshPayer = () => { - - var params = { - callPurpose : "refresh", - crdnId : "", - sggCd : $("#sggCd--${pageName}").val(), - taskSeCd : $("#taskSeCd--${pageName}").val(), - delYn : "N" - }; - - ajax.get({ - url : wctx.url("/"+params.taskSeCd + "/sprt/sprt02/020/info.do"), - headers: { Accept: "application/json; charset=utf-8" }, - data : params || {}, - success : resp => { - - if (resp.crdnPayer) { - var payer = resp.crdnPayer; - $("#rtpyrId--${pageName}").val(payer.RTPYR_ID).change(); - $("#rtpyrNm--${pageName}").val(payer.RTPYR_NM).change(); - $("#rtpyrSeCd--${pageName}").val(payer.RTPYR_SE_CD).change(); - $("#rtpyrNo--${pageName}").val(payer.RTPYR_NO).change(); - $("#zip--${pageName}").val(payer.ZIP).change(); - $("#addr--${pageName}").val(payer.ADDR).change(); - $("#dtlAddr--${pageName}").val(payer.DTL_ADDR).change(); - } else { - $("#rtpyrId--${pageName}").val("").change(); - $("#rtpyrNm--${pageName}").val("").change(); - $("#rtpyrSeCd--${pageName}").val("").change(); - $("#rtpyrNo--${pageName}").val("").change(); - $("#zip--${pageName}").val("").change(); - $("#addr--${pageName}").val("").change(); - $("#dtlAddr--${pageName}").val("").change(); - } - } - }); - - } - /************************************************************************** * 초기화(업무별 입력항목) **************************************************************************/ @@ -638,9 +558,6 @@ $(document).ready(function(){ }); - //납부자 등록, 수정 - $("#btnPopPayer--${pageName}").on("click", () => $P.fnPopPayer()); - $("#teamId--${pageName}").on("change",function(){ $("#teamer1--${pageName}").val(""); $("#teamer2--${pageName}").val(""); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index d27e05c4..d286d54d 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -155,7 +155,7 @@