From 46ed1e23c791225ba3cc66f323be809387ed07f5 Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 9 Aug 2024 15:05:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=BC=EC=A0=95=EA=B4=80=EB=A6=AC=20?= =?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/mngt/mngt01010-main.jsp | 8 ++++- .../WEB-INF/jsp/fims/mngt/mngt02010-main.jsp | 13 +++++-- .../WEB-INF/jsp/fims/mngt/mngt02020-info.jsp | 34 +++++++++---------- 3 files changed, 34 insertions(+), 21 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp index 616a5499..cbdcadfb 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt01010-main.jsp @@ -257,12 +257,18 @@ $(document).ready(function(){ data : params, success : (resp) => { + let dialogName = "ntcInfoDialog"; + let dialogId = dialogName+"-"+uuid(); + dialog.open({ - id : "ntcInfoDialog", + id : dialogId, title : "공지사항 상세", size : "xl", content : resp, init : () => { + $("#"+dialogId).attr("name", dialogName); + $("#"+dialogId).attr("data-ref-doctx","${pageName}"); + var parentRes = new Object(); var childReq = pageObject.childReq.pop(); diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp index 9c48ca90..1e4e34c8 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02010-main.jsp @@ -5,7 +5,7 @@
-
+
@@ -23,7 +23,7 @@ $(document).ready(function(){ var $P = pageObject["${pageName}"]; - $P.calendar = new Calendar(document.getElementById("calendar--${pageName}"), { + $P.calendar = new Calendar($P.find("calendar"), { initialView: 'dayGridMonth', plugins : [dayGridPlugin, interactionPlugin], locale: 'ko', @@ -50,12 +50,19 @@ $(document).ready(function(){ schdlEndYmd : schdlEndYmd }, success : (resp) => { + + let dialogName = "scheduleInfoDialog"; + let dialogId = dialogName+"-"+uuid(); + dialog.open({ - id : "scheduleInfoDialog", + id : dialogId, title : "일정 정보", size : "xl", content : resp, init : () => { + $("#"+dialogId).attr("name", dialogName); + $("#"+dialogId).attr("data-ref-doctx","${pageName}"); + var parentRes = new Object(); var childReq = pageObject.childReq.pop(); diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp index b7405947..3ab1280c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt02020-info.jsp @@ -5,37 +5,37 @@
-
- + +
- -
- -
- -
@@ -44,8 +44,8 @@
- - + +
@@ -78,7 +78,7 @@ $(document).ready(function(){ /************************************************************************** * DatasetControl, Dataset, FormFields **************************************************************************/ - $P.formFields = new FimsFormFields("#frmEdit--${pageName}"); + $P.formFields = new FimsFormFields($P.selector("frmEdit")); $P.ctrl = new DatasetControl({ dataGetter : obj => obj["List"], appendData : false, @@ -108,7 +108,7 @@ $(document).ready(function(){ **************************************************************************/ $P.fnSave = () => { - if(!customValidate($("#frmEdit--${pageName} input"))) return; + if(!customValidate($P.$find("frmEdit").find("input"))) return; var info = $P.formFields.get(); @@ -117,7 +117,7 @@ $(document).ready(function(){ return; } - var create = ($("#schdlId--${pageName}").val() == ""); + var create = ($P.$find("schdlId").val() == ""); if(create){ ajax.post({ url : $P.ctrl.urls.create, @@ -191,13 +191,13 @@ $(document).ready(function(){ /************************************************************************** * element.on **************************************************************************/ - $("#btnSave--${pageName}").on('click', () => $P.fnSave()); - $("#btnRemove--${pageName}").on('click', () => $P.fnRemove()); + $P.$find("btnSave").on('click', () => $P.fnSave()); + $P.$find("btnRemove").on('click', () => $P.fnRemove()); /************************************************************************** * 초기화 **************************************************************************/ - initDatepicker("frmEdit--${pageName}"); //달력 초기화 + initDatepicker($P.find("frmEdit")); //달력 초기화 var schdlInfo = ${schdlInfo}; if(schdlInfo != null){ @@ -206,7 +206,7 @@ $(document).ready(function(){ $P.ctrl.dataset.setData([{ SCHDL_BGNG_YMD : "${schdlBgngYmd}", SCHDL_END_YMD : "${schdlEndYmd}" }]); - $("#btnRemove--${pageName}").attr("hidden","hidden"); + $P.$find("btnRemove").attr("hidden","hidden"); } });