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 + }); + } + }); }