diff --git a/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp index 5761a765..fa3371c3 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/payer/payer01020-info.jsp @@ -335,9 +335,41 @@ // 우편번호 검색 fnZip${pageName} = () => { - + + var callbackFuncName = "fnZipReturn${pageName}"; + + var popupWidth = 900; + var popupHeight = 700; + + var popupX = (window.screen.width / 2) - (popupWidth / 2); + var popupY= (window.screen.height / 2) - (popupHeight / 2); + + window.open( + wctx.url("/resources/html/searchAddr.html"+"?callbackFuncName="+callbackFuncName) + ,"searchAddr" + ,'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY + ); } - + // 우편번호 검색 결과 + fnZipReturn${pageName} = (obj) => { + + $("#addr--${pageName}").val(obj.ADDR); // 주소 + $("#zip--${pageName}").val(obj.ZIP); // 우편번호 + $("#dtlAddr--${pageName}").val(obj.DTL_ADDR); // 상세 주소 + + $("#roadNmCd--${pageName}").val(obj.ROAD_NM_CD); // + $("#udgdSeCd--${pageName}").val(obj.UDGD_SE_CD); // + $("#bmno--${pageName}").val(obj.BMNO); // + $("#bsno--${pageName}").val(obj.BSNO); // + $("#bldgMngNo--${pageName}").val(obj.BLDG_MNG_NO); // + $("#stdgCd--${pageName}").val(obj.STDG_CD); // + $("#mtnSeCd--${pageName}").val(obj.MTN_SE_CD); // + $("#mno--${pageName}").val(obj.MNO); // + $("#sno--${pageName}").val(obj.SNO); // + $("#dongCd--${pageName}").val(obj.DONG_CD); // + + } + // 화면에서 보여주는 주소입력 부분 수정 fnEdit${pageName} = () => { $("#rtpyrInptSeCd--${pageName}").val("01"); // 입력 구분 diff --git a/src/main/webapp/resources/html/searchAddr.html b/src/main/webapp/resources/html/searchAddr.html new file mode 100644 index 00000000..a9f79a59 --- /dev/null +++ b/src/main/webapp/resources/html/searchAddr.html @@ -0,0 +1,296 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +