임대계약서 승인 요청 수정.

main
jjh 2 months ago
parent d4bdaf242f
commit 1d7837c587

@ -265,6 +265,9 @@
if (tabName == "계약서등록") { if (tabName == "계약서등록") {
$P.$findn("btnRemove").prop("disabled", !atLeastOne); $P.$findn("btnRemove").prop("disabled", !atLeastOne);
$P.$findn("btnCreateAprvDmnd").prop("disabled", !atLeastOne);
} else if (tabName == "승인요청") {
$P.$findn("btnRemoveAprvDmnd").prop("disabled", !atLeastOne);
} }
Apply.toDataset.selection($P.ctrl.dataset, element, bool); Apply.toDataset.selection($P.ctrl.dataset, element, bool);
@ -385,19 +388,24 @@
if (tabName == "대상") { if (tabName == "대상") {
$P.$findn("btnCreate").prop("disabled", false); $P.$findn("btnCreate").prop("disabled", false);
$P.$findn("btnRemove").prop("disabled", true); $P.$findn("btnRemove").prop("disabled", true);
$P.$findn("btnAprvDmnd").prop("disabled", true); $P.$findn("btnCreateAprvDmnd").prop("disabled", true);
$P.$findn("btnRemoveAprvDmnd").prop("disabled", true);
} else if (tabName == "계약서등록") { } else if (tabName == "계약서등록") {
$P.$findn("btnCreate").prop("disabled", true); $P.$findn("btnCreate").prop("disabled", true);
$P.$findn("btnRemove").prop("disabled", false); $P.$findn("btnRemove").prop("disabled", false);
$P.$findn("btnAprvDmnd").prop("disabled", false); $P.$findn("btnCreateAprvDmnd").prop("disabled", false);
$P.$findn("btnRemoveAprvDmnd").prop("disabled", true);
} else if (tabName == "승인요청") { } else if (tabName == "승인요청") {
$P.$findn("btnCreate").prop("disabled", true); $P.$findn("btnCreate").prop("disabled", true);
$P.$findn("btnRemove").prop("disabled", true); $P.$findn("btnRemove").prop("disabled", true);
$P.$findn("btnAprvDmnd").prop("disabled", true); $P.$findn("btnCreateAprvDmnd").prop("disabled", true);
$P.$findn("btnRemoveAprvDmnd").prop("disabled", false);
} else { } else {
$P.$findn("btnCreate").prop("disabled", true); $P.$findn("btnCreate").prop("disabled", true);
$P.$findn("btnRemove").prop("disabled", true); $P.$findn("btnRemove").prop("disabled", true);
$P.$findn("btnAprvDmnd").prop("disabled", true); $P.$findn("btnCreateAprvDmnd").prop("disabled", true);
$P.$findn("btnRemoveAprvDmnd").prop("disabled", true);
} }
} }
@ -471,6 +479,7 @@
$P.ctrl.query.chgDmndYn = "Y"; // 변경 요청 여부 Y $P.ctrl.query.chgDmndYn = "Y"; // 변경 요청 여부 Y
$P.ctrl.query.chgAprvYn = "N"; // 변경 승인 여부 N $P.ctrl.query.chgAprvYn = "N"; // 변경 승인 여부 N
} else if (tabName == "승인완료") { } else if (tabName == "승인완료") {
$P.ctrl.query.chgDmndYn = "Y"; // 변경 요청 여부 Y
$P.ctrl.query.chgAprvYn = "Y"; // 변경 승인 여부 Y $P.ctrl.query.chgAprvYn = "Y"; // 변경 승인 여부 Y
} }
$P.ctrl.query.trgtSttsNm = tabName; $P.ctrl.query.trgtSttsNm = tabName;
@ -582,7 +591,7 @@
} }
// 임대계약서 승인 요청 취소 // 임대계약서 승인 요청 취소
$P.fnCreateAprvDmnd = () => { $P.fnRemoveAprvDmnd = () => {
let selected = $P.ctrl.getDataset("selected"); // 선택 자료 let selected = $P.ctrl.getDataset("selected"); // 선택 자료
if (selected.length < 1) { if (selected.length < 1) {

@ -80,7 +80,9 @@ function newRent02010Control(pageName, doctx="[data-doctx='rent02010']") {
// gridCheckbox // gridCheckbox
Apply.fromDataset.gridCheckbox(ctrl.dataset, ctrl.find("[name='tbodyList']"), 1, selectedArr); Apply.fromDataset.gridCheckbox(ctrl.dataset, ctrl.find("[name='tbodyList']"), 1, selectedArr);
// gridButton // gridButton
Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnRemove']"), selectedArr); // 삭제 버튼 Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnRemove']"), selectedArr); // 삭제 버튼
Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnCreateAprvDmnd']"), selectedArr); // 승인 요청 버튼
Apply.fromDataset.gridButton(ctrl.dataset, ctrl.find("[name='btnRemoveAprvDmnd']"), selectedArr); // 승인 요청 취소 버튼
}; };
// 상세 정보 dialog // 상세 정보 dialog

Loading…
Cancel
Save