diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent03010-main.jsp index 881ab26d..42d31132 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent03010-main.jsp @@ -288,6 +288,7 @@ $P.ctrl.query.fetchSize = DEFAULT_FETCH_SIZE; // 한번에 조회되는 자료 건수 $P.ctrl.query.ffnlgSysInqYn = "Y"; // 과태료 시스템 조회 여부 $P.ctrl.query.delYn = "N"; // 삭제 여부 + $P.ctrl.query.orderBy = "CRDN_YMD, CRDN_TM"; // 정렬 $P.ctrl.load(1); } diff --git a/src/main/webapp/resources/js/fims/rent/rent03020.js b/src/main/webapp/resources/js/fims/rent/rent03020.js index 9848c144..7ce5c6f8 100644 --- a/src/main/webapp/resources/js/fims/rent/rent03020.js +++ b/src/main/webapp/resources/js/fims/rent/rent03020.js @@ -26,6 +26,26 @@ function newRent03020Control(pageName, doctx="[data-doctx='rent03020']") { let formFields = new FimsFormFields(ctrl.selector("[name='frmEdit']")); formFields.set(ctrl, item); + // 가상 계좌번호, 전자납부번호 + let vrActno = Array.from({length: 20}, (x, i) => { + let no = i + 1 + , bank = "BANK_NM" + (no > 1 ? no : "") + , account = "VR_ACTNO" + (no > 1 ? no : ""); + + return [bank, account] + }) + .map(entry => { + let bank = item.data[entry[0]] + , account = item.data[entry[1]]; + + return bank ? bank + " " + account : null; + }) + .filter(txt => txt != null) + .join("\n"); + + $(ctrl.find("[name='vrActno']")).val(vrActno); // 가상 계좌번호 + $(ctrl.find("[name='epaynoMask']")).val(item.data.EPAYNO_MASK); // 전자납부번호 + // 화면에 임대차계약 Dataset 셋팅 let formFields2 = new FimsFormFields(ctrl.selector("[name='frmEditLsct']")); formFields2.set(ctrl, item);