diff --git a/WebContent/WEB-INF/view/partMng/structureList.jsp b/WebContent/WEB-INF/view/partMng/structureList.jsp index 6944cb5..7cf68b9 100644 --- a/WebContent/WEB-INF/view/partMng/structureList.jsp +++ b/WebContent/WEB-INF/view/partMng/structureList.jsp @@ -23,32 +23,9 @@ 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(); - } + menuName = CommonUtils.getMenuName(menuObjId, menuName); } catch(Exception e) { e.printStackTrace(); } diff --git a/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp b/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp index 23e97df..41d8a8d 100644 --- a/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp +++ b/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp @@ -4,12 +4,25 @@ <%@ page import="java.util.*" %> <%@include file= "/init.jsp" %> - + +<% +// DB에서 메뉴명 조회 (공통 유틸 사용) +String menuObjId = request.getParameter("menuObjId"); +String menuName = CommonUtils.getMenuName(menuObjId, "생산관리_M-BOM관리"); +%> <%=Constants.SYSTEM_NAME%> +