From d2e04d91b9b6be9dd22c4176bc8351491d643841 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 25 Sep 2023 16:01:53 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=A9=EB=B6=80=EC=9E=90=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=ED=8C=9D=EC=97=85=20=ED=98=B8=EC=B6=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 33 ++++++++++++++++++ .../WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp | 34 +++++++++++++++++++ 2 files changed, 67 insertions(+) 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 9d013e67..569e957a 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 @@ -434,7 +434,40 @@ $(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 : () => { } // callback + }); + } + }); } /************************************************************************** diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp index 3126ba00..d4aa32dd 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp @@ -805,6 +805,40 @@ $(document).ready(function(){ //납부자 등록,수정 $P.fnPopPayer = () => { + var callPurpose = ""; + var dialogTitle = ""; + if($("#rtpyrId--${pageName}").val() == "" || $("#rtpyrId--${pageName}").val() == null){ + callPurpose = "create"; + dialogTitle = "납부자 등록"; + } else { + callPurpose = "update"; + dialogTitle = "납부자 수정"; + } + + var params = { + callPurpose : callPurpose, + crdnId : $("#crdnId--${pageName}").val(), // 단속 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 : () => { } // callback + }); + } + }); }