diff --git a/WebContent/WEB-INF/view/partMng/structureList.jsp b/WebContent/WEB-INF/view/partMng/structureList.jsp index cc54f73..cf8148c 100644 --- a/WebContent/WEB-INF/view/partMng/structureList.jsp +++ b/WebContent/WEB-INF/view/partMng/structureList.jsp @@ -6,6 +6,7 @@ <% // 권한 체크: AUTHORITY_MASTER의 OBJID가 41000668인 그룹에 속한 사용자 또는 관리자인지 확인 boolean hasStatusChangeAuth = false; +String menuName = "개발관리_E-BOM 등록"; // 기본값 try { // 관리자는 자동으로 권한 부여 if(isAdmin) { @@ -21,6 +22,33 @@ try { sqlSession.close(); } + + // 메뉴 이름 조회 + String menuObjId = request.getParameter("menuObjId"); + if(menuObjId != null && !menuObjId.isEmpty()) { + org.apache.ibatis.session.SqlSession sqlSession = com.pms.common.SqlMapConfig.getInstance().getSqlSession(); + java.util.Map menuParam = new java.util.HashMap(); + menuParam.put("OBJID", menuObjId); + + java.util.Map menuInfo = (java.util.Map)sqlSession.selectOne("admin.selectMenuInfo", menuParam); + if(menuInfo != null && menuInfo.get("MENU_NAME_KOR") != null) { + // 상위 메뉴 이름 조회 + String parentObjId = CommonUtils.checkNull(menuInfo.get("PARENT_OBJ_ID")); + if(!parentObjId.isEmpty() && !"0".equals(parentObjId)) { + menuParam.put("OBJID", parentObjId); + java.util.Map parentMenuInfo = (java.util.Map)sqlSession.selectOne("admin.selectMenuInfo", menuParam); + if(parentMenuInfo != null && parentMenuInfo.get("MENU_NAME_KOR") != null) { + menuName = CommonUtils.checkNull(parentMenuInfo.get("MENU_NAME_KOR")) + "_" + CommonUtils.checkNull(menuInfo.get("MENU_NAME_KOR")); + } else { + menuName = CommonUtils.checkNull(menuInfo.get("MENU_NAME_KOR")); + } + } else { + menuName = CommonUtils.checkNull(menuInfo.get("MENU_NAME_KOR")); + } + } + + sqlSession.close(); + } } catch(Exception e) { e.printStackTrace(); } @@ -196,8 +224,9 @@ var columns = [ } }, - // {headerHozAlign : 'center', hozAlign : 'center', width : '120', title : '등록자', field : 'DEPT_USER_NAME' }, + {headerHozAlign : 'center', hozAlign : 'center', width : '120', title : '등록자', field : 'DEPT_USER_NAME' }, {headerHozAlign : 'center', hozAlign : 'center', width : '130', title : '등록일', field : 'REG_DATE' }, + {headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '확정일', field : 'DEPLOY_DATE' }, // {headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '배포일', field : 'DEPLOY_DATE' }, {headerHozAlign : 'center', hozAlign : 'center', width : '110', title : 'Version', field : 'REVISION' }, @@ -688,12 +717,12 @@ function saveexcelpop() {

- E-BOM List + <%=menuName%>

- + @@ -747,12 +776,12 @@ function saveexcelpop() { - + - + @@ -763,7 +792,7 @@ function saveexcelpop() { ~ - +