From b64e77c5b3d05f952f6c4d31b659ab9690b8e25f Mon Sep 17 00:00:00 2001 From: JoJH Date: Thu, 24 Oct 2024 14:34:27 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EB=B0=8F=20=EB=82=A9=EB=B6=80=EC=95=88=EB=82=B4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/rent/rent03010-main.jsp | 1 + .../resources/js/fims/rent/rent03020.js | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) 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);