From 1d7837c58754395488d6ce38f24d9d6ecb8ae90b Mon Sep 17 00:00:00 2001 From: jjh Date: Tue, 24 Sep 2024 18:09:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EB=8C=80=EA=B3=84=EC=95=BD=EC=84=9C?= =?UTF-8?q?=20=EC=8A=B9=EC=9D=B8=20=EC=9A=94=EC=B2=AD=20=EC=88=98=EC=A0=95?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/rent/rent02010-main.jsp | 19 ++++++++++++++----- .../resources/js/fims/rent/rent02010.js | 4 +++- 2 files changed, 17 insertions(+), 6 deletions(-) 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