From 63043f69097b5611f23ff3af954e980db851cc69 Mon Sep 17 00:00:00 2001 From: Johngreen Date: Fri, 24 Oct 2025 16:56:00 +0900 Subject: [PATCH] =?UTF-8?q?E-BOM=20=ED=99=95=EC=9D=B8/=EC=88=98=EC=A0=95?= =?UTF-8?q?=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/view/partMng/structureList.jsp | 2 +- .../view/partMng/structurePopupHeaderFs.jsp | 2 +- .../view/partMng/structurePopupLeft.jsp | 27 +-- .../view/partMng/structurePopupTop.jsp | 193 ++++-------------- src/com/pms/controller/PartMngController.java | 8 + 5 files changed, 66 insertions(+), 166 deletions(-) diff --git a/WebContent/WEB-INF/view/partMng/structureList.jsp b/WebContent/WEB-INF/view/partMng/structureList.jsp index 992a365..b4dccbd 100644 --- a/WebContent/WEB-INF/view/partMng/structureList.jsp +++ b/WebContent/WEB-INF/view/partMng/structureList.jsp @@ -462,7 +462,7 @@ function fn_openSetBomCopy(product_code){ * 구조등록 팝업 */ function fn_openSetStructure(objId){ - window.open("/partMng/setStructurePopupMainFS.do?objId="+objId, "", "width=1880, height=1100, resizable=no"); + window.open("/partMng/setStructurePopupMainFS.do?objId="+objId, "", "width=1880, height=900, resizable=yes"); } /** * 배포사유 입력 팝업 diff --git a/WebContent/WEB-INF/view/partMng/structurePopupHeaderFs.jsp b/WebContent/WEB-INF/view/partMng/structurePopupHeaderFs.jsp index 70cac52..8bd425e 100644 --- a/WebContent/WEB-INF/view/partMng/structurePopupHeaderFs.jsp +++ b/WebContent/WEB-INF/view/partMng/structurePopupHeaderFs.jsp @@ -1,7 +1,7 @@ <% java.util.Map map = (java.util.HashMap)request.getAttribute("info"); %> - + "> diff --git a/WebContent/WEB-INF/view/partMng/structurePopupLeft.jsp b/WebContent/WEB-INF/view/partMng/structurePopupLeft.jsp index 02760f1..c61edc8 100644 --- a/WebContent/WEB-INF/view/partMng/structurePopupLeft.jsp +++ b/WebContent/WEB-INF/view/partMng/structurePopupLeft.jsp @@ -404,25 +404,30 @@ function getSelectedRowData() { // 필터 적용 함수 function fn_applyFilter() { - var partType = $("#filterPartType").val(); var partNo = $("#filterPartNo").val().trim(); var partName = $("#filterPartName").val().trim(); - var version = $("#filterVersion").val().trim(); - _tabulGrid.setFilter([ - {field: "PART_TYPE_TITLE", type: "like", value: partType}, - {field: "PART_NO", type: "like", value: partNo}, - {field: "PART_NAME", type: "like", value: partName}, - {field: "REVISION", type: "like", value: version} - ]); + // 빈 값이 아닌 필터만 추가 + var filters = []; + if(partNo) { + filters.push({field: "PART_NO", type: "like", value: partNo}); + } + if(partName) { + filters.push({field: "PART_NAME", type: "like", value: partName}); + } + + // 필터가 있으면 적용, 없으면 전체 표시 + if(filters.length > 0) { + _tabulGrid.setFilter(filters); + } else { + _tabulGrid.clearFilter(); + } } // 필터 초기화 함수 function fn_resetFilter() { - $("#filterPartType").val(""); $("#filterPartNo").val(""); $("#filterPartName").val(""); - $("#filterVersion").val(""); _tabulGrid.clearFilter(); } @@ -439,10 +444,8 @@ function fn_resetFilter() { - -
(${info.CUSTOMER_NAME}_${info.CUSTOMER_PROJECT_NAME}_${info.UNIT_NAME})_${info.REV} diff --git a/WebContent/WEB-INF/view/partMng/structurePopupTop.jsp b/WebContent/WEB-INF/view/partMng/structurePopupTop.jsp index e794449..1fdca80 100644 --- a/WebContent/WEB-INF/view/partMng/structurePopupTop.jsp +++ b/WebContent/WEB-INF/view/partMng/structurePopupTop.jsp @@ -11,9 +11,8 @@ body, html { margin: 0; padding: 0; - overflow-y: auto; - overflow-x: hidden; - height: 100%; + overflow: visible; + height: auto; } .plm_menu_name { margin: 5px 15px 0 15px !important; @@ -22,140 +21,67 @@ body, html { margin: 5px 0 !important; padding: 5px 0; } -/* global CSS에서 #plmSearchZon 스타일을 가져오므로 추가 스타일만 정의 */ -#csvImportList { - margin-top: 10px; +#plmSearchZon { + margin-bottom: 0 !important; + padding-bottom: 5px !important; + overflow: visible !important; + position: relative; + z-index: 1000; } -#csvImportTable { - width: 100%; - border-collapse: collapse; +.select2-container { + z-index: 9999 !important; } -#csvImportTable thead td { - background-color: #f0f0f0; - padding: 8px; - font-weight: bold; - border: 1px solid #ddd; -} -#csvImportTable tbody td { - padding: 8px; - border: 1px solid #ddd; -} -#excelUploadPopupForm .dropzone { - width: 99.8% !important; +.select2-dropdown { + z-index: 9999 !important; } @@ -172,17 +98,6 @@ function fn_resetFilter() {
- - - - - -
- - @@ -193,11 +108,6 @@ function fn_resetFilter() { - - @@ -205,27 +115,6 @@ function fn_resetFilter() {
- - -
-
-
   CSV uploadTemplate Download
-
-
-
Drag & Drop 엑셀 템플릿
-
- - - - - - -
CSV 첨부파일
-
-
-
-
-
\ No newline at end of file diff --git a/src/com/pms/controller/PartMngController.java b/src/com/pms/controller/PartMngController.java index f02d690..e62c205 100644 --- a/src/com/pms/controller/PartMngController.java +++ b/src/com/pms/controller/PartMngController.java @@ -875,6 +875,14 @@ public class PartMngController { @RequestMapping("/partMng/structureHeaderPopup.do") public String structureHeaderPopup(HttpServletRequest request, @RequestParam Map paramMap){ + Map code_map = new HashMap(); + try { + // 제품구분 (PART_TYPE) + code_map.put("product_cd", commonService.bizMakeOptionList("0000001", CommonUtils.nullToEmpty((String)paramMap.get("product")),"common.getCodeselect")); + } catch (Exception e) { + e.printStackTrace(); + } + request.setAttribute("code_map", code_map); return "/partMng/structurePopupTop"; }