From 1df696e9b07f05139aec6612cf6d3cfd8aa44362 Mon Sep 17 00:00:00 2001 From: jjh Date: Thu, 26 Sep 2024 12:14:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EC=B0=A8=EC=9D=B8=EA=B3=84=EC=95=BD?= =?UTF-8?q?=EC=84=9C=20=EA=B4=80=EB=A6=AC=20=EB=A9=94=EB=89=B4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/rent/rent02010-main.jsp | 149 +------- .../WEB-INF/jsp/fims/rent/rent02050-main.jsp | 351 ++++++++++-------- .../resources/js/fims/rent/rent02010.js | 2 +- .../resources/js/fims/rent/rent02050.js | 170 +++++++++ 4 files changed, 382 insertions(+), 290 deletions(-) create mode 100644 src/main/webapp/resources/js/fims/rent/rent02050.js 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 6fe0826f..b9f9fbe4 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 @@ -100,12 +100,6 @@ - - @@ -134,14 +128,8 @@ - @@ -161,9 +149,7 @@ No. 업무구분 - 대상여부 - 요청일시 - 승인일시 + 대상여부 단속일시 자동차등록번호 납부자구분 @@ -189,9 +175,7 @@ {TASK_SE_NM} {TRGT_STTS_NM} - {CHG_DMND_DT} - {CHG_APRV_DT} - {CRDN_YMD_TM} + {CRDN_DT} {VHRNO} {RTPYR_SE_NM} @@ -213,7 +197,7 @@ @@ -265,9 +249,6 @@ 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); @@ -286,8 +267,8 @@ $P.dataTableDblClick = (dataIndex) => { let params = { callPurpose: "view" - , lsctId: $P.ctrl.getValue("LSCT_ID") , crdnId: $P.ctrl.getValue("CRDN_ID") + , lsctId: $P.ctrl.getValue("LSCT_ID") }; $P.ctrl.getInfo(params); @@ -338,75 +319,18 @@ }); } - // 임대계약서 승인 요청 - $P.createAprvDmnd = (params) => { - if (!params) return; - - ajax.get({ - url: wctx.url("${prefixUrl}" + "/010/createAprv.do") - , data: params || {} - , success: (resp) => { - let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, "승인 요청"); - - // 메시지 출력 - dialog.alert({ - content: showMessage - , init: () => { AppSupport.setDialogZindex(); } - , onOK: () => { } - , onClose: () => { - if (resp.saved) { $P.ctrl.reload({ all: true }); } - } - }); - } - }); - } - - // 임대계약서 승인 요청 취소 - $P.removeAprvDmnd = (params) => { - if (!params) return; - - ajax.get({ - url: wctx.url("${prefixUrl}" + "/010/removeAprv.do") - , data: params || {} - , success: (resp) => { - let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, "승인 요청 취소"); - - // 메시지 출력 - dialog.alert({ - content: showMessage - , init: () => { AppSupport.setDialogZindex(); } - , onOK: () => { } - , onClose: () => { - if (resp.saved) { $P.ctrl.reload({ all: true }); } - } - }); - } - }); - } - // 버튼 설정 $P.setButton = (tabName) => { // tab if (tabName == "대상") { $P.$findn("btnCreate").prop("disabled", false); $P.$findn("btnRemove").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("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("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("btnCreateAprvDmnd").prop("disabled", true); - $P.$findn("btnRemoveAprvDmnd").prop("disabled", true); } } @@ -476,13 +400,8 @@ if (tabName == "계약서등록") { $P.ctrl.query.chgDmndYn = "N"; // 변경 요청 여부 N $P.ctrl.query.chgAprvYn = "N"; // 변경 승인 여부 N - } else if (tabName == "승인요청") { - $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; // 임대기업번호가 전체라면.. @@ -565,58 +484,6 @@ }); } - // 임대계약서 승인 요청 - $P.fnCreateAprvDmnd = () => { - let selected = $P.ctrl.getDataset("selected"); // 선택 자료 - - if (selected.length < 1) { - dialog.alert({ - content: "선택하신 " + $P.ctrl.prefixName + " 정보가 없습니다." - , init: () => { AppSupport.setDialogZindex(); } - , onOK: () => { } - }); - return; - } - - dialog.alert({ - content: "선택한 " + selected.length + "건의 " + $P.ctrl.prefixName + " 정보를 승인 요청하시겠습니까?" - , onOK: () => { - let params = { - callPurpose: "create" - , lsctIds: selected.map(info => info.LSCT_ID).join(",") - } - - $P.createAprvDmnd(params); - } - }); - } - - // 임대계약서 승인 요청 취소 - $P.fnRemoveAprvDmnd = () => { - let selected = $P.ctrl.getDataset("selected"); // 선택 자료 - - if (selected.length < 1) { - dialog.alert({ - content: "선택하신 " + $P.ctrl.prefixName + " 정보가 없습니다." - , init: () => { AppSupport.setDialogZindex(); } - , onOK: () => { } - }); - return; - } - - dialog.alert({ - content: "선택한 " + selected.length + "건의 " + $P.ctrl.prefixName + " 정보를 승인 요청을 취소하시겠습니까?" - , onOK: () => { - let params = { - callPurpose: "remove" - , lsctIds: selected.map(info => info.LSCT_ID).join(",") - } - - $P.removeAprvDmnd(params); - } - }); - } - /************************************************************************** * 초기 설정 **************************************************************************/ @@ -630,8 +497,6 @@ // 업무 버튼 이벤트 $P.$findn("btnCreate").on("click", () => { $P.fnCreate(); }); // 등록 $P.$findn("btnRemove").on("click", () => { $P.fnRemove(); }); // 삭제 - $P.$findn("btnCreateAprvDmnd").on("click", () => { $P.fnCreateAprvDmnd(); }); // 승인 요청 - $P.$findn("btnRemoveAprvDmnd").on("click", () => { $P.fnRemoveAprvDmnd(); }); // 승인 요청 취소 // DataTables width 변경 조정 Componentization.fnMakeResizableTable($P.findn("tableRspns")); diff --git a/src/main/webapp/WEB-INF/jsp/fims/rent/rent02050-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rent/rent02050-main.jsp index ad464a56..a60c99a4 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rent/rent02050-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rent/rent02050-main.jsp @@ -1,7 +1,7 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> -임대계약서 관리 +임대차계약서 관리
@@ -26,42 +26,60 @@
- - - + + +
@@ -76,11 +94,11 @@
- - @@ -88,24 +106,36 @@ -