From 84451ead3c2294221145e9bce7926a003e87f5d5 Mon Sep 17 00:00:00 2001 From: jjh Date: Wed, 7 Feb 2024 18:15:40 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/excl/excl01010-main.jsp | 34 +++++----- .../WEB-INF/jsp/fims/excl/excl02010-main.jsp | 2 +- .../WEB-INF/jsp/fims/levy/levy02010-main.jsp | 64 +++++++++---------- .../WEB-INF/jsp/fims/sndb/sndb01070-main.jsp | 18 +++--- .../WEB-INF/jsp/fims/sprt/sprt02050-info.jsp | 35 +++++----- .../WEB-INF/jsp/fims/sprt/sprt04010-main.jsp | 38 ++++++----- .../resources/html/inputDocNoTtlDialog.html | 35 ++++++---- 7 files changed, 116 insertions(+), 110 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp index ad619a51..039c9da4 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl01010-main.jsp @@ -273,7 +273,6 @@ - @@ -371,7 +370,7 @@ }); // 삭제 버튼 - $("#btnRemove--${pageName}").prop("disabled", keys.length < 1); + $("#btnRemoveLevyExcl--${pageName}").prop("disabled", keys.length < 1); // DataTables(그리드) 전체 선택(checkbox) if (keys.length < 1) { @@ -538,15 +537,7 @@ }); } - // 검색 자료 재조회 - $P.refreshList = () => { - $P.control.untilPageNum = $P.control.query.pageNum; - $P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum; - - $P.control.load(1); - } - - // 사유 callback + // 삭제 사유 callback $P.callbackRsn = (obj) => { // 서버에 전송할 data(파라미터) 생성 let params = {}; @@ -556,6 +547,14 @@ $P.control.remove(params); } + // 검색 자료 재조회 + $P.refreshList = () => { + $P.control.untilPageNum = $P.control.query.pageNum; + $P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum; + + $P.control.load(1); + } + /************************************************************************** * 버튼 clickEvent **************************************************************************/ @@ -618,16 +617,13 @@ // 부과제외 ID 가 없다면.. return if (typeof levyExclId == "undefined" || levyExclId == null || levyExclId == "") return; - // 부과제외 구분 코드 - let levyExclSeCd = $P.control.dataset.getValue("LEVY_EXCL_SE_CD"); - let params = { title : title , callPurpose : "update" - , sggCd : $P.control.dataset.getValue("SGG_CD") // 시군구 코드 - , taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 - , levyExclId : levyExclId // 부과제외 ID - , levyExclSeCd : levyExclSeCd // 부과제외 구분 코드 + , levyExclId : levyExclId // 부과제외 ID + , sggCd : $P.control.dataset.getValue("SGG_CD") // 시군구 코드 + , taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 + , levyExclSeCd : $P.control.dataset.getValue("LEVY_EXCL_SE_CD") // 부과제외 구분 코드 }; $P.control.getInfo(params); @@ -655,7 +651,7 @@ + "?openerPageName=${pageName}" + "&prefix=" + $P.control.prefix + "&title=" + title - + "&callPurpose=" + "remove" + + "&callPurpose=" + "removeLevyExcl" )) , "inputDelRsnDialog" , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY diff --git a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp index d55206c6..060e6b25 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/excl/excl02010-main.jsp @@ -740,7 +740,7 @@ + "?openerPageName=${pageName}" + "&prefix=" + $P.control.prefix + "&title=" + title - + "&callPurpose=" + "remove" + + "&callPurpose=" + "removeOpnn" )) , "inputDelRsnDialog" , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY diff --git a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp index b76066a6..9def16b6 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/levy/levy02010-main.jsp @@ -127,11 +127,11 @@ - - @@ -337,23 +337,13 @@ $P.control.getInfo = (params) => { if (!params) return; - let dialogTitle = ""; - - if (params.callPurpose == "create") { - dialogTitle = $P.control.prefixName + " 등록"; - } else if (params.callPurpose == "update") { - dialogTitle = $P.control.prefixName + " 수정"; - } else { - dialogTitle = $P.control.prefixName + " 정보"; - } - ajax.get({ url : $P.control.urls.getInfo , data : params || {} , success : resp => { dialog.open({ id : $P.control.prefixed("Dialog") - , title : dialogTitle + , title : params.title , content : resp , size : $P.control.infoSize , onClose : () => { $P.refreshList(); } @@ -495,15 +485,7 @@ }); } - // 검색 자료 재조회 - $P.refreshList = () => { - $P.control.untilPageNum = $P.control.query.pageNum; - $P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum; - - $P.control.load(1); - } - - // 사유 callback + // 삭제 사유 callback $P.callbackRsn = (obj) => { // 서버에 전송할 data(파라미터) 생성 let params = {}; @@ -513,6 +495,14 @@ $P.control.remove(params); } + // 검색 자료 재조회 + $P.refreshList = () => { + $P.control.untilPageNum = $P.control.query.pageNum; + $P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum; + + $P.control.load(1); + } + /************************************************************************** * element.on **************************************************************************/ @@ -568,15 +558,16 @@ $P.getFindUser(); } - // 수정 버튼 이벤트 - $P.fnUpdate = () => { + // 감경 수정 버튼 이벤트 + $P.fnUpdateRduct = () => { // 감경 ID let rductId = $P.control.dataset.getValue("RDUCT_ID"); // 감경 ID 가 없다면.. return if (typeof rductId == "undefined" || rductId == null || rductId == "") return; let params = { - callPurpose : "update" + title : title + , callPurpose : "update" , sggCd : $P.control.dataset.getValue("SGG_CD") // 시군구 코드 , taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 , rductId : rductId // 감경 ID @@ -585,8 +576,8 @@ $P.control.getInfo(params); } - // 삭제 버튼 이벤트 - $P.fnRemove = () => { + // 감경 삭제 버튼 이벤트 + $P.fnRemoveRduct = () => { // 선택 자료 let selected = $P.control.dataset.getKeys("selected"); @@ -606,8 +597,8 @@ encodeURI(wctx.url("/resources/html/inputRsnDialog.html" + "?openerPageName=${pageName}" + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" + + "&title=" + title + + "&callPurpose=" + "removeLevyExcl" )) , "inputDelRsnDialog" , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY @@ -647,9 +638,14 @@ }); }); - // 업무 버튼 이벤트 - $("#btnUpdate--${pageName}").on("click", () => $P.fnUpdate()); // 부과제외 수정 - $("#btnRemove--${pageName}").on("click", () => $P.fnRemove()); // 부과제외 삭제 + // 감경 수정 버튼 이벤트 + $("#btnUpdateRduct--${pageName}").on("click", function() { + $P.fnUpdateRduct($(this).attr("title")); + }); + // 감경 삭제 버튼 이벤트 + $("#btnRemoveRduct--${pageName}").on("click", function() { + $P.fnRemoveRduct($(this).attr("title")); + }); // DataTables width 변경 조정 업무별 그리드가 존재 한다면.. crdn06010-main.jsp 참고 $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp index 7f4cb5ed..76e394c6 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01070-main.jsp @@ -441,15 +441,7 @@ }); } - // 검색 자료 재조회 - $P.refreshList = () => { - $P.control.untilPageNum = $P.control.query.pageNum; - $P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum; - - $P.control.load(1); - } - - // 사유 callback + // 삭제 사유 callback $P.callbackRsn = (obj) => { // 서버에 전송할 data(파라미터) 생성 let params = {}; @@ -459,6 +451,14 @@ $P.control.remove(params); } + // 검색 자료 재조회 + $P.refreshList = () => { + $P.control.untilPageNum = $P.control.query.pageNum; + $P.control.query.fetchSize = $P.control.defaultFetchSize * $P.control.query.pageNum; + + $P.control.load(1); + } + /************************************************************************** * 버튼 clickEvent **************************************************************************/ diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp index 3fe12841..96572311 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02050-info.jsp @@ -578,7 +578,7 @@ * 버튼 clickEvent **************************************************************************/ // 감경 등록 - $P.fnCreateRduct = () => { + $P.fnCreateRduct = (title) => { // 버튼 title let btnTitle = $("#btnCreateRduct--${pageName}").attr("title"); @@ -625,7 +625,7 @@ } // 감경 수정 - $P.fnUpdateRduct = () => { + $P.fnUpdateRduct = (title) => { // 버튼 title let btnTitle = $("#btnUpdateRduct--${pageName}").attr("title"); @@ -661,10 +661,7 @@ } // 감경 삭제 - $P.fnRemoveRduct = () => { - // 버튼 title - let btnTitle = $("#btnRemoveRduct--${pageName}").attr("title"); - + $P.fnRemoveRduct = (title) => { // 감경 ID let rductId = $P.rductControl.dataset.getValue("RDUCT_ID"); // 감경 ID 가 없다면.. return @@ -677,7 +674,7 @@ if (Number(crdnSttsCd) > 45) { dialog.alert({ content : "단속상태가 '" + crdnSttsNm + "' 입니다." - + "
" + "[" + btnTitle + "]" + " 실행이 취소되었습니다." + + "
" + "[" + title + "]" + " 실행이 취소되었습니다." , onOK : () => { } }); return; @@ -695,10 +692,10 @@ window.open( encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.rductControl.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" + + "?openerPageName=${pageName}" + + "&prefix=" + $P.rductControl.prefix + + "&title=" + title + + "&callPurpose=" + "removeLevyExcl" )) , "inputDelRsnDialog" , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY @@ -708,7 +705,7 @@ } // 계고 등록 - $P.fnCreateWrng = () => { + $P.fnCreateWrng = (title) => { // 버튼 title let btnTitle = $("#btnCreateWrng--${pageName}").attr("title"); @@ -744,7 +741,7 @@ } // 부과제외 등록 - $P.fnCreateLevyExcl = () => { + $P.fnCreateLevyExcl = (title) => { // 버튼 title let btnTitle = $("#btnCreateLevyExcl--${pageName}").attr("title"); @@ -780,7 +777,7 @@ } // 부과제외 수정 - $P.fnUpdateLevyExcl = () => { + $P.fnUpdateLevyExcl = (title) => { // 버튼 title let btnTitle = $("#btnUpdateLevyExcl--${pageName}").attr("title"); @@ -803,7 +800,7 @@ } // 부과제외 삭제 - $P.fnRemoveLevyExcl = () => { + $P.fnRemoveLevyExcl = (title) => { // 버튼 title let btnTitle = $("#btnRemoveLevyExcl--${pageName}").attr("title"); @@ -824,10 +821,10 @@ window.open( encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.levyExclControl.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" + + "?openerPageName=${pageName}" + + "&prefix=" + $P.levyExclControl.prefix + + "&title=" + title + + "&callPurpose=" + "removeLevyExcl" )) , "inputDelRsnDialog" , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04010-main.jsp index 05544c99..ec3c0770 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04010-main.jsp @@ -144,10 +144,10 @@ - - @@ -325,7 +325,7 @@ , title : dialogTitle , content : resp , size : $P.control.infoSize - , onClose : () => { $P.refreshList(); } // 자료 재조회 + , onClose : () => { $P.refreshList(); } }); } }); @@ -372,7 +372,7 @@ document.getElementById("${infoPrefix}Row--${pageName}").innerHTML, <%-- from template#${infoPrefix}Row --%> (str, dataItem) => str .replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');") - .replace(/{ondblclick}/gi, "pageObject['${pageName}'].fnUpdate('" + dataItem.getValue("CVLCPT_DSCSN_ID") + "');") + .replace(/{ondblclick}/gi, "pageObject['${pageName}'].fnUpdateCvlcptDscsn('민원상담 수정');") ); let noMore = (totalSize == ${infoPrefix}List.length); @@ -504,24 +504,25 @@ } // 수정 버튼 이벤트 - $P.fnUpdate = (cvlcptDscsnId) => { + $P.fnUpdateCvlcptDscsn = (title) => { + // 민원상담 ID + let cvlcptDscsnId = $P.control.dataset.getValue("CVLCPT_DSCSN_ID"); // 민원상담 ID 가 없다면.. 입력 - if (typeof cvlcptDscsnId == "undefined" || cvlcptDscsnId == null || cvlcptDscsnId == "") { - cvlcptDscsnId = $P.control.dataset.getValue("CVLCPT_DSCSN_ID"); - } + if (typeof cvlcptDscsnId == "undefined" || cvlcptDscsnId == null || cvlcptDscsnId == "") return; let params = { - callPurpose : "update" + title : title + , callPurpose : "update" + , cvlcptDscsnId : cvlcptDscsnId // 민원상담 ID , sggCd : $P.control.dataset.getValue("SGG_CD") // 시군구 코드 , taskSeCd : $P.control.dataset.getValue("TASK_SE_CD") // 업무 구분 코드 - , cvlcptDscsnId : cvlcptDscsnId // 민원상담 ID }; $P.control.getInfo(params); } // 삭제 버튼 이벤트 - $P.fnRemove = () => { + $P.fnRemoveCvlcptDscsn = (title) => { // 선택 자료 let selected = $P.control.dataset.getKeys("selected"); @@ -541,8 +542,8 @@ encodeURI(wctx.url("/resources/html/inputRsnDialog.html" + "?openerPageName=${pageName}" + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" + + "&title=" + title + + "&callPurpose=" + "removeCvlcptDscsn" )) , "inputDelRsnDialog" , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY @@ -582,9 +583,14 @@ }); }); - // 업무 버튼 이벤트 - $("#btnUpdate--${pageName}").on("click", () => $P.fnUpdate()); // 민원상담 수정 - $("#btnRemove--${pageName}").on("click", () => $P.fnRemove()); // 민원상담 삭제 + // 민원상담 수정 버튼 이벤트 + $("#btnUpdateCvlcptDscsn--${pageName}").on("click", function() { + $P.fnUpdateCvlcptDscsn($(this).attr("title")); + }); + // 민원상담 삭제 버튼 이벤트 + $("#btnRemoveCvlcptDscsn--${pageName}").on("click", function() { + $P.fnRemoveCvlcptDscsn($(this).attr("title")); + }); // DataTables width 변경 조정 $("#DataTables_Table_0--${pageName}").find("th").resizable( {handles : "e"} ); diff --git a/src/main/webapp/resources/html/inputDocNoTtlDialog.html b/src/main/webapp/resources/html/inputDocNoTtlDialog.html index 1db59a85..0ea29163 100644 --- a/src/main/webapp/resources/html/inputDocNoTtlDialog.html +++ b/src/main/webapp/resources/html/inputDocNoTtlDialog.html @@ -39,12 +39,12 @@
- +
- +
@@ -69,30 +69,41 @@ - +