사용하지 않는 연계와 관련된 메뉴,버튼 숨기기 처리 추가

main
이범준 10 months ago
parent d1b080916d
commit 20406ce881

@ -83,7 +83,7 @@ public class UserController extends cokr.xit.base.user.web.UserController<Manage
//사용자별 업무 및 기본업무 //사용자별 업무 및 기본업무
stngBean.initUserInfo(userInfo); stngBean.initUserInfo(userInfo);
//지자체 로고 //지자체 로고(시군구 설정)
DataObject sggStng = stngBean.getStng("sgg"); DataObject sggStng = stngBean.getStng("sgg");
userInfo.getInfo().put("sggLogoPath", sggStng.string("LOGO_FILE_PATH")); userInfo.getInfo().put("sggLogoPath", sggStng.string("LOGO_FILE_PATH"));
userInfo.getInfo().put("sggSymbolPath", sggStng.string("SYMBOL_FILE_PATH")); userInfo.getInfo().put("sggSymbolPath", sggStng.string("SYMBOL_FILE_PATH"));
@ -92,6 +92,19 @@ public class UserController extends cokr.xit.base.user.web.UserController<Manage
return mav; return mav;
} }
@RequestMapping(name="시스템 연계 정보",value="/sysLinkInfo.do")
public ModelAndView sysLinkInfo() {
ModelAndView mav = new ModelAndView("jsonView");
DataObject deptStng = stngBean.getStng("dept");
DataObject sysLinkInfo = new DataObject();
sysLinkInfo.put("NXRP_LINK_YN", deptStng.string("NXRP_LINK_YN"));
sysLinkInfo.put("CVLCPT_LINK_SE_CD", deptStng.string("CVLCPT_LINK_SE_CD"));
mav.addObject("sysLinkInfo", sysLinkInfo);
return mav;
}
@RequestMapping(name="내 정보 변경 화면", value="/openMyInfo.do") @RequestMapping(name="내 정보 변경 화면", value="/openMyInfo.do")
public ModelAndView openMyInfo() { public ModelAndView openMyInfo() {
ModelAndView mav = new ModelAndView("fims/user/user-info"); ModelAndView mav = new ModelAndView("fims/user/user-info");

@ -23,10 +23,12 @@ SELECT USER_ID
/* 부서 설정정보 조회 (stngMapper.selectDeptStng) */ /* 부서 설정정보 조회 (stngMapper.selectDeptStng) */
SELECT DEPT_CD SELECT DEPT_CD
, DEPT_NM , DEPT_NM
, DEPT_TELNO <!-- 부서 전화번호 --> , DEPT_TELNO <!-- 부서 전화번호 -->
, DEPT_FXNO <!-- 부서 팩스번호 --> , DEPT_FXNO <!-- 부서 팩스번호 -->
, DTBN_BANK_NM <!-- 교부 은행 명 --> , DTBN_BANK_NM <!-- 교부 은행 명 -->
, DTBN_ACTNO <!-- 교부 계좌번호 --> , DTBN_ACTNO <!-- 교부 계좌번호 -->
, NXRP_LINK_YN <!-- 세외수입 연계 여부 -->
, CVLCPT_LINK_SE_CD <!-- 민원 연계 구분 코드 -->
FROM TB_DEPT FROM TB_DEPT
WHERE DEPT_CD = #{deptCd} WHERE DEPT_CD = #{deptCd}
</select> </select>

@ -132,17 +132,24 @@
</form> </form>
<div> <div>
<div class="container-page-btn"> <div id="gridbuttonArea--${pageName}" class="container-page-btn">
<div class="d-flex flex-row justify-content-between"> <div class="d-flex flex-row justify-content-between">
<label id="crdnPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label> <label id="crdnPaging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="crdnPaging--${pageName}" class="pagination pagination-primary"> <ul id="crdnPaging--${pageName}" class="pagination pagination-primary">
</ul> </ul>
</div> </div>
<span class="container-window-btn-right">
<button type="button" class="btn btn-primary w-px-120" <span class="container-window-btn-right">
id="btnSendCrdn--${pageName}" title="세외수입 전송"> <span slot="button">
&#x2611; 세외수입 전송 <template class="pvs bpv">
</button> <slot>
<button type="button" class="btn btn-primary w-px-120"
id="btnSendCrdn--${pageName}" title="세외수입 전송">
&#x2611; 세외수입 전송
</button>
</slot>
</template>
</span>
</span> </span>
</div> </div>
</div> </div>
@ -380,7 +387,12 @@ $(document).ready(function(){
//업무별 조회조건 //업무별 조회조건
renderForTask("frmSearch--${pageName}", clsForTask); 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" ); $("#DataTables_Table_0--${pageName}").find("th").resizable( "destroy" );
@ -393,6 +405,12 @@ $(document).ready(function(){
$("#crdnThead--${pageName}").html(colsStr); $("#crdnThead--${pageName}").html(colsStr);
$("#DataTables_Table_0--${pageName}").find("th").resizable({handles : "e"}); $("#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 = () => { $P.refreshCrdnList = () => {
@ -487,27 +505,8 @@ $(document).ready(function(){
return data; return data;
} }
/************************************************************************** $P.fnSendCrdn = () => {
* element.on var datas = $P.crdnControl.dataset.getDataset("selected");
**************************************************************************/
$('#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");
var taskSeCd = datas[0].TASK_SE_CD; var taskSeCd = datas[0].TASK_SE_CD;
var keys = $P.crdnControl.dataset.getKeys("selected"); 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); fnMakeScrollableTable($("#table-responsive--${pageName}")[0], $P.scrollCrdnList);

@ -94,6 +94,7 @@
var ALL_TASK = {}; var ALL_TASK = {};
var MY_INFO = {}; var MY_INFO = {};
var SYS_LINK_INFO = {};
var PARAM_TASK = "${param.taskSeCd}"; var PARAM_TASK = "${param.taskSeCd}";
async function fnGetAllTask(){ 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(){ async function fnGetMyInfo(){
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
$.ajax({ $.ajax({
@ -195,6 +213,7 @@
fnGetAllTask() fnGetAllTask()
.then(() => { return fnCheckSggTask(); }) .then(() => { return fnCheckSggTask(); })
.then(() => { return fnGetSysLinkInfo(); })
.then(() => { return fnGetMyInfo(); }) .then(() => { return fnGetMyInfo(); })
.then(() => { .then(() => {
@ -235,6 +254,12 @@
$("#symbol--left").attr("src", MY_INFO.info.sggSymbolPath); $("#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++){ for(var i=0; i < MY_INFO.info.taskForUser.length; i++){
var taskCd = MY_INFO.info.taskForUser[i]; var taskCd = MY_INFO.info.taskForUser[i];

Loading…
Cancel
Save