From dc274a673482c9304ad18fdf3428bd97003a8dee Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 3 Jul 2024 14:32:15 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=80=EC=84=9C=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=A9=94=EB=89=B4=20=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/mngt04010-main.jsp | 49 +--- .../WEB-INF/jsp/fims/mngt/mngt04020-info.jsp | 260 +++++++++++++----- 2 files changed, 191 insertions(+), 118 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04010-main.jsp index 994086e8..59f42491 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04010-main.jsp @@ -61,18 +61,6 @@ - - - - - - @@ -200,7 +188,7 @@ $(document).ready(function(){ $P.deptControl.dataset.onSelectionChange = (selectedArr) => { Apply.fromDataset.gridCheckbox($P.deptControl.dataset, document.getElementById("deptTbody--${pageName}"), 1, selectedArr); - Apply.fromDataset.gridButton($P.deptControl.dataset, $("#btnDel--${pageName}")[0], selectedArr); + }; /************************************************************************** @@ -289,15 +277,11 @@ $(document).ready(function(){ $P.getInfo(dataKey); } - $P.createDept = () => { - $P.getInfo(); - } + $P.getInfo = (deptCd) => { var params = {}; - if(deptCd != null){ - params.deptCd = deptCd; - } + params.deptCd = deptCd; ajax.get({ url : $P.deptControl.urls.getInfo, @@ -329,31 +313,6 @@ $(document).ready(function(){ }); } - $P.removeDept = () => { - var selected = $P.deptControl.dataset.getKeys("selected"); - if (selected.length < 1) { - return; - } - - var params = { - "deptCds" : selected.join(",") - }; - - ajax.post({ - url : $P.deptControl.urls.remove, - data : params, - success : (resp) => { - $P.removeCallback(resp); - } - }); - } - - $P.removeCallback = (resp) => { - if (resp.saved){ - $P.toast.show(); - sleep(1000).then(() => $P.refreshDeptList()); - } - } $P.provide = { "refreshList" : function(){ @@ -366,8 +325,6 @@ $(document).ready(function(){ **************************************************************************/ $('#btnReset--${pageName}').on('click', () => $P.fnReset()); $('#btnSearch--${pageName}').on('click', () => $P.searchDeptList()); - $('#btnAdd--${pageName}').on('click', () => $P.createDept()); - $('#btnDel--${pageName}').on('click', () => $P.removeDept()); /************************************************************************** * 초기화 diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04020-info.jsp index ae6255d9..bd4fe1fd 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt04020-info.jsp @@ -15,7 +15,7 @@ + class="form-control" required maxlength="7" readonly />
@@ -25,7 +25,7 @@ + class="form-control" required maxlength="7" readonly />
@@ -41,7 +41,7 @@ + class="form-control" required maxlength="7" readonly /> @@ -52,72 +52,196 @@ + class="form-control" required readonly /> -
- + - -
-
+
- - - - - - - - - - - - - - - - - - - - - +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
@@ -226,21 +350,13 @@ $(document).ready(function(){ } var deptInfo = ${deptInfo}; - if(deptInfo != null){ - $("#deptID--${pageName}").attr("disabled","disabled"); - $("#name--${pageName}").attr("disabled","disabled"); - $P.deptControl.dataset.setData([deptInfo]); - if(deptInfo.USE_YN == "N"){ - $("#btnSave--${pageName}").attr("disabled","disabled"); - } - } else { - $P.deptControl.dataset.setData([]); - - if(MY_INFO.institute != 'default') { - $("#sggID--${pageName}").val(MY_INFO.info.sggCd); - $("#instCode--${pageName}").val(MY_INFO.info.instCd); - } + $("#deptID--${pageName}").attr("disabled","disabled"); + $("#name--${pageName}").attr("disabled","disabled"); + $P.deptControl.dataset.setData([deptInfo]); + if(deptInfo.USE_YN == "N"){ + $("#btnSave--${pageName}").attr("disabled","disabled"); } + }); \ No newline at end of file