From ef9a6d2ac14b9487a84503d509c3fd5c5ba99286 Mon Sep 17 00:00:00 2001 From: hjjeong Date: Thu, 27 Nov 2025 17:26:06 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=ED=92=88=EC=9D=98=EC=84=9C=20=EA=B0=9C?= =?UTF-8?q?=EB=B0=9C=20&=20DB=EC=97=90=20=EC=A0=80=EC=9E=A5=EB=90=9C=20?= =?UTF-8?q?=EB=A9=94=EB=89=B4=EB=AA=85=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/view/partMng/structureList.jsp | 27 +- .../view/productionplanning/mBomMgmtList.jsp | 17 +- .../WEB-INF/view/salesMng/proposalMngList.jsp | 49 ++-- .../view/salesMng/purchaseListFormPopUp.jsp | 11 +- .../view/salesMng/salesRequestMngRegList.jsp | 191 ++++++++++---- src/com/pms/common/utils/CommonUtils.java | 70 ++++++ src/com/pms/mapper/salesMng.xml | 237 ++++++++++++++++-- .../controller/SalesMngController.java | 88 +++++++ .../salesmgmt/service/SalesMngService.java | 153 +++++++++++ 9 files changed, 722 insertions(+), 121 deletions(-) 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%> +