From 20406ce881da75d9df901945951672702c8c38a1 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 2 Feb 2024 10:01:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EC=97=B0=EA=B3=84=EC=99=80=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=EB=90=9C=20=EB=A9=94=EB=89=B4,=EB=B2=84=ED=8A=BC=20?= =?UTF-8?q?=EC=88=A8=EA=B8=B0=EA=B8=B0=20=EC=B2=98=EB=A6=AC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/UserController.java | 15 +++- .../sql/mapper/fims/cmmn/stng-mapper.xml | 10 ++- .../WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 74 ++++++++++++------- src/main/webapp/WEB-INF/jsp/index.jsp | 25 +++++++ 4 files changed, 91 insertions(+), 33 deletions(-) diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index c0c716a0..be318fd4 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -83,7 +83,7 @@ public class UserController extends cokr.xit.base.user.web.UserController - , DEPT_FXNO - , DTBN_BANK_NM - , DTBN_ACTNO + , DEPT_TELNO + , DEPT_FXNO + , DTBN_BANK_NM + , DTBN_ACTNO + , NXRP_LINK_YN + , CVLCPT_LINK_SE_CD FROM TB_DEPT WHERE DEPT_CD = #{deptCd} 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 01449e48..a5e36680 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 @@ -132,17 +132,24 @@
-
+
- - + + + + +
@@ -380,7 +387,12 @@ $(document).ready(function(){ //업무별 조회조건 renderForTask("frmSearch--${pageName}", clsForTask); - + //업무별 버튼 + renderForTask("gridbuttonArea--${pageName}", clsForTask); + //버튼 이벤트 재매핑 + $("#btnSendCrdn--${pageName}").off("click"); + $("#btnSendCrdn--${pageName}").on("click", () => $P.fnSendCrdn()); + //업무별 그리드 $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" ); @@ -393,6 +405,12 @@ $(document).ready(function(){ $("#crdnThead--${pageName}").html(colsStr); $("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); + + if(SYS_LINK_INFO.NXRP_LINK_YN != 'Y'){ + $("#btnSendCrdn--${pageName}").attr("hidden","hidden"); + } else { + $("#btnSendCrdn--${pageName}").prop("disabled", true); + } } $P.refreshCrdnList = () => { @@ -487,27 +505,8 @@ $(document).ready(function(){ return data; } - /************************************************************************** - * element.on - **************************************************************************/ - $('#btnReset--${pageName}').on('click', () => $P.fnReset()); - $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); - $('#btnExcel--${pageName}').on('click', function(){ - - if($P.crdnControl.dataset.empty){ - alert("조회된 자료가 없습니다."); - return; - } - - var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"), - $($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); - $P.crdnControl.query.cellDefs = cellDefs; - - $P.crdnControl.download(); - }); - - $('#btnSendCrdn--${pageName}').on('click', function(){ - var datas = $P.crdnControl.dataset.getDataset("selected"); + $P.fnSendCrdn = () => { + var datas = $P.crdnControl.dataset.getDataset("selected"); var taskSeCd = datas[0].TASK_SE_CD; var keys = $P.crdnControl.dataset.getKeys("selected"); @@ -532,6 +531,25 @@ $(document).ready(function(){ } } }); + } + + /************************************************************************** + * element.on + **************************************************************************/ + $('#btnReset--${pageName}').on('click', () => $P.fnReset()); + $('#btnSearch--${pageName}').on('click', () => $P.searchCrdnList()); + $('#btnExcel--${pageName}').on('click', function(){ + + if($P.crdnControl.dataset.empty){ + alert("조회된 자료가 없습니다."); + return; + } + + var cellDefs = getCellDefs($("#crdnThead--${pageName} th").not(".dummy-th").not(":eq(0)"), + $($("#crdnRow--${pageName}")[0].content).find("td").not(".dummy-td").not(":eq(0)")); + $P.crdnControl.query.cellDefs = cellDefs; + + $P.crdnControl.download(); }); fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList); diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index 0aad190b..71548b78 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -94,6 +94,7 @@ var ALL_TASK = {}; var MY_INFO = {}; + var SYS_LINK_INFO = {}; var PARAM_TASK = "${param.taskSeCd}"; async function fnGetAllTask(){ @@ -133,6 +134,23 @@ }); } + async function fnGetSysLinkInfo(){ + return new Promise((resolve, reject) => { + $.ajax({ + type: "get", + url: wctx.url("/user/sysLinkInfo.do"), + data: {}, + dataType: 'json', + success: function(resp, textStatus, jqXHR) { + SYS_LINK_INFO = resp.sysLinkInfo; + resolve({resp, textStatus, jqXHR}); + }, + error: function(jqXHR, textStatus, error) { + } + }); + }); + }; + async function fnGetMyInfo(){ return new Promise((resolve, reject) => { $.ajax({ @@ -195,6 +213,7 @@ fnGetAllTask() .then(() => { return fnCheckSggTask(); }) + .then(() => { return fnGetSysLinkInfo(); }) .then(() => { return fnGetMyInfo(); }) .then(() => { @@ -235,6 +254,12 @@ $("#symbol--left").attr("src", MY_INFO.info.sggSymbolPath); } + //사용하지 않는 연계와 관련된 메뉴 제거 + //새올민원 관련 메뉴 제거 + if(SYS_LINK_INFO.CVLCPT_LINK_SE_CD != '01'){ + $("ul[id='menus']").find("li[class='menu-item'][data-key='22']").remove(); + } + //사용자별 선택가능한 업무 렌더링 for(var i=0; i < MY_INFO.info.taskForUser.length; i++){ var taskCd = MY_INFO.info.taskForUser[i];