임차인계약 매핑 수정.

main
jjh 1 month ago
parent 18bf697bdd
commit 805905536b

@ -297,9 +297,7 @@
AppSupport.setDialogZindex();
}
, onClose: () => {
if (resp.saved) { $P.ctrl.reload({ all: true }); }
}
, onClose: () => { }
});
}
});

@ -28,6 +28,7 @@
<form name="frmSearch">
<!-- hidden -->
<input type="hidden" name="crdnId" data-map="CRDN_ID" />
<input type="hidden" name="entId" data-map="ENT_ID" />
<!-- 메인 조건 -->
<div class="container-search">

@ -111,6 +111,7 @@ function newRent02030Control(pageName, doctx="[data-doctx='rent02030']") {
// 저장 callback
ctrl.onSave = (params, resp) => {
let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, "임대차계약");
let modalId = $(document.querySelector(doctx)).parents(".modal")[0].id;
// 메시지 출력
dialog.alert({
@ -118,7 +119,13 @@ function newRent02030Control(pageName, doctx="[data-doctx='rent02030']") {
, init: () => { AppSupport.setDialogZindex(); }
, onOK: () => { }
, onClose: () => {
if (resp.saved) { dialog.close($(document.querySelector(doctx)).parents(".modal")[0].id); }
if (resp.saved) {
// 다이얼로그를 호출했던 부모 control 자료 재조회
let dataRefDoctx = $("#" + modalId).attr("data-ref-doctx");
pageObject[dataRefDoctx].ctrl.reload({ all: true });
dialog.close(modalId);
}
}
});
}

Loading…
Cancel
Save