From 5076170757a8fcbf7dd7d7165a9aaef592f2165b Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 9 Aug 2024 15:29:54 +0900 Subject: [PATCH] =?UTF-8?q?openerPageName=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp | 9 +++------ src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 7 +++---- src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp | 4 ++-- src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp | 4 ++-- src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp | 3 +-- src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp | 1 - src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp | 8 +++----- 7 files changed, 14 insertions(+), 22 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp index 7b7f92fd..5a533755 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp @@ -899,7 +899,6 @@ $(document).ready(function(){ var params = { "crdnId" : info.data.CRDN_ID, "levyExclSeCd" : levyExclSeCd, - "openerPageName" : "${pageName}", "savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']", "callPurpose" : "create" }; @@ -954,7 +953,6 @@ $(document).ready(function(){ var params = { "crdnId" : info.data.CRDN_ID, - "openerPageName" : "${pageName}", "savedCallbackFuncName" : "pageObject['${pageName}']['popupSavedCallback']" }; @@ -1010,12 +1008,11 @@ $(document).ready(function(){ // 사용자검색 버튼 클릭 이벤트 $P.fnGetFindUser = () => { let params = { - openerPageName: "${pageName}" - , callbackFuncName: "pageObject['${pageName}']['callbackFindUser']" - } + callbackFuncName: "pageObject['${pageName}']['callbackFindUser']" + }; ajax.get({ - url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}" + url: wctx.url("/user/user02/010/main.do") , data: params || {} , success: resp => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 97109671..2e024b41 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -561,12 +561,11 @@ $(document).ready(function(){ // 사용자검색 버튼 클릭 이벤트 $P.fnGetFindUser = () => { let params = { - openerPageName: "${pageName}" - , callbackFuncName: "pageObject['${pageName}']['callbackFindUser']" - } + callbackFuncName: "pageObject['${pageName}']['callbackFindUser']" + }; ajax.get({ - url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}" + url: wctx.url("/user/user02/010/main.do") , data: params || {} , success: resp => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp index b5525351..d86cd083 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp @@ -260,7 +260,7 @@ // 저장 callback $P.control.onSave = (resp) => { - let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html(); + let dialogTitle = $("#" + $P.selfDlgId()).find("h5.modal-title").html(); let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle); dialog.alert({ @@ -272,7 +272,7 @@ }); if (resp.saved) { - dialog.close($P.control.prefix + "Dialog--${openerPageName}"); + dialog.close($P.selfDlgId()); } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp index 767c0b24..7ecfdfaf 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06030-info.jsp @@ -100,7 +100,7 @@ // 저장 callback $P.control.onSave = (resp) => { - let dialogTitle = $("#" + $P.control.prefix + "Dialog--${openerPageName}").find("h5.modal-title").html(); + let dialogTitle = $("#" + $P.selfDlgId()).find("h5.modal-title").html(); let showMessage = resp.rtnMsg.replace(/[S]|[F]/g, dialogTitle); dialog.alert({ @@ -112,7 +112,7 @@ }); if (resp.saved) { - dialog.close($P.control.prefix + "Dialog--${openerPageName}"); + dialog.close($P.selfDlgId()); } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp index 1656002f..b7c0fe5c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp @@ -472,8 +472,7 @@ $(document).ready(function(){ ajax.get({ url : $P.ctrl.urls.getInfo, data : { - "crdnId" : dataKey, - "openerPageName" : "${pageName}" + "crdnId" : dataKey }, success : (resp) => { diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp index 4ba00f8a..fef4a4fa 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01020-info.jsp @@ -472,7 +472,6 @@ $(document).ready(function(){ var taskSeCd = $P.$find("taskSeCd").val(); var params = { - "openerPageName" : "${pageName}", "saveCallbackFuncName" : "pageObject['${pageName}']['exclSaveCallback']", "callPurpose" : "create", "crdnId" : crdnId, diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp index 4492af6d..66818d8e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02060-info.jsp @@ -195,12 +195,10 @@ $(document).ready(function() { var cs = $P.parentRes.getCountStatus($P.$find("crdnId").val()); $P.$find("countStauts").val(cs); - let openerPageName = "${openerPageName}"; - - if (openerPageName == "sprt02020") { - $P.$find("btnSave").hide(); - } else { + if($("#"+$P.selfDlgId()).attr("data-ref-doctx") == "cvlc02010") { $P.$find("btnSave").show(); + } else { + $P.$find("btnSave").hide(); } });