diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp index 0db5f46b..f56b8648 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent02010-main.jsp @@ -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) { diff --git a/src/main/webapp/resources/js/fims/rent/rent02010.js b/src/main/webapp/resources/js/fims/rent/rent02010.js index a5124803..fba6f89e 100644 --- a/src/main/webapp/resources/js/fims/rent/rent02010.js +++ b/src/main/webapp/resources/js/fims/rent/rent02010.js @@ -80,7 +80,9 @@ function newRent02010Control(pageName, doctx="[data-doctx='rent02010']") { // gridCheckbox Apply.fromDataset.gridCheckbox(ctrl.dataset, ctrl.find("[name='tbodyList']"), 1, selectedArr); // 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