From 12b7020e764194c3bb55a49e5689c470a56b8fa5 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 21 Mar 2024 13:42:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AD=EC=A0=9C=EC=82=AC=EC=9C=A0=20?= =?UTF-8?q?=EC=9E=85=EB=A0=A5=20=EC=B0=BD=EC=9D=B4=20=EB=8B=A4=EC=9D=B4?= =?UTF-8?q?=EC=96=BC=EB=A1=9C=EA=B7=B8=20=EC=B0=BD=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=ED=95=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/excl/excl01010-main.jsp | 30 +++--- .../WEB-INF/jsp/fims/excl/excl02010-main.jsp | 30 +++--- .../WEB-INF/jsp/fims/levy/levy02010-main.jsp | 30 +++--- .../WEB-INF/jsp/fims/rdca/rdca01010-main.jsp | 29 +++--- .../WEB-INF/jsp/fims/sndb/sndb01030-main.jsp | 29 +++--- .../WEB-INF/jsp/fims/sndb/sndb01070-main.jsp | 29 +++--- .../WEB-INF/jsp/fims/sndb/sndb01090-main.jsp | 29 +++--- .../WEB-INF/jsp/fims/sndb/sndb01240-main.jsp | 29 +++--- .../WEB-INF/jsp/fims/sndb/sndb01250-info.jsp | 29 +++--- .../WEB-INF/jsp/fims/sprt/sprt02020-info.jsp | 29 +++--- .../WEB-INF/jsp/fims/sprt/sprt02030-info.jsp | 29 +++--- .../WEB-INF/jsp/fims/sprt/sprt02050-info.jsp | 58 +++++------ .../WEB-INF/jsp/fims/sprt/sprt02070-info.jsp | 58 +++++------ .../WEB-INF/jsp/fims/sprt/sprt02080-info.jsp | 29 +++--- .../WEB-INF/jsp/fims/sprt/sprt04010-main.jsp | 29 +++--- .../webapp/resources/html/inputRsnDialog.html | 99 ++----------------- 16 files changed, 234 insertions(+), 361 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 369f588d..d6af66d2 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 @@ -637,23 +637,21 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&title=" + title - + "&callPurpose=" + "removeLevyExcl" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); + } }); } 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 13ca5965..efba5441 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 @@ -728,23 +728,21 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&title=" + title - + "&callPurpose=" + "removeOpnn" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); + } }); } 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 cbcd354d..d3569c7f 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 @@ -585,23 +585,21 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&title=" + title - + "&callPurpose=" + "removeLevyExcl" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); + } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp index 226de45c..0c83d85f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/rdca/rdca01010-main.jsp @@ -637,23 +637,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&title=" + title - + "&callPurpose=" + "removeRdca" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: "삭제", + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp index a654bd70..5ff8e560 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01030-main.jsp @@ -525,23 +525,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: "삭제", + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } 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 11134dc9..49c9a355 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 @@ -525,23 +525,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: "삭제", + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp index 1bfc0616..be67a1b0 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01090-main.jsp @@ -559,23 +559,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: "삭제", + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp index d8225cc1..d9535129 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01240-main.jsp @@ -623,23 +623,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&title=" + title - + "&callPurpose=" + "removeSvbtc" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp index 04cf4ade..1904cfb8 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sndb/sndb01250-info.jsp @@ -445,23 +445,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&title=" + title - + "&callPurpose=" + "removeSvbtc" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp index bc90db71..4a3d643d 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp @@ -680,23 +680,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택한 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp index 1726d1e1..cd3c1fb9 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02030-info.jsp @@ -455,23 +455,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택한 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } 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 364b6c70..de75950f 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 @@ -694,23 +694,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택한 " + $P.rductControl.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.rductControl.prefix - + "&title=" + title - + "&callPurpose=" + "removeLevyExcl" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } @@ -827,23 +824,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택한 " + $P.levyExclControl.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.levyExclControl.prefix - + "&title=" + title - + "&callPurpose=" + "removeLevyExcl" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp index 0e4b416f..927f42b6 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02070-info.jsp @@ -471,23 +471,20 @@ dialog.alert({ content : title + " 작업 진행시 과오납이 발생합니다." + "
" + "계속 진행하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "update" - + "&ttlNm=" + "취소" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } @@ -515,23 +512,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택한 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp index 6c13b3a1..3eb7df74 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02080-info.jsp @@ -301,23 +301,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택한 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&usePurpose=" + "remove" - + "&ttlNm=" + "삭제" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } 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 f8191562..3c602b1e 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 @@ -531,23 +531,20 @@ // 삭제 메세지 확인 dialog.alert({ content : "선택하신 " + selected.length + "건의 " + $P.control.prefixName + " 정보를 삭제하시겠습니까?" - , onOK : () => { + , onOK : async() => { // 삭제 사유 입력 - let popupWidth = 640; - let popupHeight = 240; - let popupX = (window.screen.width / 2) - (popupWidth / 2); - let popupY = (window.screen.height / 2) - (popupHeight / 2); - - window.open( - encodeURI(wctx.url("/resources/html/inputRsnDialog.html" - + "?openerPageName=${pageName}" - + "&prefix=" + $P.control.prefix - + "&title=" + title - + "&callPurpose=" + "removeCvlcptDscsn" - )) - , "inputDelRsnDialog" - , 'status=no, height=' + popupHeight + ', width=' + popupWidth + ', left='+ popupX + ', top='+ popupY - ); + var resp = await fetch(wctx.url("/resources/html/inputRsnDialog.html")); + var template = await resp.text(); + + dialog.open({ + id : "inputDelRsnDialog", + title: title, + size : "lg", + content: template, + onOK : () => { + $P.callbackRsn({ reason : $("#reason").val() }); + } + }); } }); } diff --git a/src/main/webapp/resources/html/inputRsnDialog.html b/src/main/webapp/resources/html/inputRsnDialog.html index 8c4ec844..cc716db8 100644 --- a/src/main/webapp/resources/html/inputRsnDialog.html +++ b/src/main/webapp/resources/html/inputRsnDialog.html @@ -1,92 +1,13 @@ - - - - - - - - - - - - - - - - - - - - - - - - - 사유 입력 - - - -
-
-