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