기타 수정.

main
JoJH 2 weeks ago
parent 2db89b36df
commit fe5de3c2f3

@ -378,7 +378,7 @@
dialog.open({
id: "searchAddrDialog"
, title: "주소 검색"
, title: "주소검색"
, size: "lg"
, content: template
, init: () => {

@ -25,8 +25,8 @@ function newRent01040Control(pageName, doctx="[data-doctx='rent01040']") {
// 저장 callback
ctrl.onSave = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, ctrl.prefixName);
let modalId = $(document.querySelector(doctx)).parents(".modal")[0].id;
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, ctrl.prefixName);
// 메시지 출력
dialog.alert({

@ -35,8 +35,8 @@ function newRent02040Control(pageName, doctx="[data-doctx='rent02040']") {
// 저장 callback
ctrl.onSave = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, ctrl.prefixName);
let modalId = $(document.querySelector(doctx)).parents(".modal")[0].id;
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, ctrl.prefixName);
// 메시지 출력
dialog.alert({

@ -24,21 +24,23 @@ function newRent03020Control(pageName, doctx="[data-doctx='rent03020']") {
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 : "");
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, 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");
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); // 전자납부번호

Loading…
Cancel
Save