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];