화면 오류 수정(데이터가 없을 때 임대차계약등록 버튼 비활성화)

main
이범준 12 months ago
parent 2132680e92
commit 1295bee402

@ -441,6 +441,15 @@
// 임대계약서 등록
$P.fnCreate = () => {
if($P.ctrl.getCurrent() == null){
dialog.alert({
content: "선택된 " + $P.ctrl.prefixName + " 정보가 없습니다."
, init: () => { AppSupport.setDialogZindex(); }
, onOK: () => { }
});
return;
}
let params = {
callPurpose: "create"
, crdnId: $P.ctrl.getValue("CRDN_ID")

@ -65,11 +65,17 @@ function newRent02010Control(pageName, doctx="[data-doctx='rent02010']") {
// dataTables(그리드)에 페이지 표시 pagingInfo
ctrl.pagingSupport.setPagingInfo(obj);
let tabName = $(ctrl.find("[name='tabMain']")).find("button.active").text().trim();
if (tabName == "대상") {
$(ctrl.find("[name='btnCreate']")).prop("disabled", empty);
}
};
// 현재 선택 자료 변경 이벤트
ctrl.onCurrentChange = (item) => {
Apply.fromDataset.currentRow(ctrl.dataset, item, ctrl.find("[name='tbodyList']"));
};
// 선택(체크) 변경 이벤트

Loading…
Cancel
Save