|
|
|
@ -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);
|
|
|
|
|