diff --git a/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp b/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp index 32634f0..3d5180c 100644 --- a/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp +++ b/WebContent/WEB-INF/view/productionplanning/mBomMgmtList.jsp @@ -467,7 +467,7 @@ function fn_checkAssignmentAndOpenMbom(projectObjId) { dataType: "json", async: false, success: function(templateResponse) { - if(templateResponse && templateResponse.MBOM_PART_NO) { + if(templateResponse && templateResponse.TEMPLATE_HEADER_OBJID) { console.log("동일 품번의 M-BOM 템플릿 발견 - 팝업 열기"); fn_openMBomFormPopup(projectObjId); } else { diff --git a/WebContent/WEB-INF/view/quality/processInspectionFormPopUp.jsp b/WebContent/WEB-INF/view/quality/processInspectionFormPopUp.jsp index 69db83d..ef0866e 100644 --- a/WebContent/WEB-INF/view/quality/processInspectionFormPopUp.jsp +++ b/WebContent/WEB-INF/view/quality/processInspectionFormPopUp.jsp @@ -234,18 +234,24 @@ function fn_search(){ editor:"date" }, {title:'검사자', field:'INSPECTOR_ID', headerHozAlign:'center', hozAlign:'center', width:100, - editor: fnc_customSelectEditor, + editor: fn_select2Editor, + editorParams: { + valueId: "CODE", labelId: "NAME", values: _INSPECTOR_LIST, + placeholder: "검사자 검색..." + }, formatter: function(cell) { return fnc_customSelectFormatter(cell, {valueId:"CODE", labelId:"NAME", values:_INSPECTOR_LIST}); - }, - editorParams: {valueId:"CODE", labelId:"NAME", values:_INSPECTOR_LIST} + } }, {title:'진행공정', field:'PROCESS_CD', headerHozAlign:'center', hozAlign:'center', width:130, - editor: fnc_customSelectEditor, + editor: fn_select2Editor, + editorParams: { + valueId: "CODE", labelId: "NAME", values: _PROCESS_LIST, + placeholder: "공정 검색..." + }, formatter: function(cell) { return fnc_customSelectFormatter(cell, {valueId:"CODE", labelId:"NAME", values:_PROCESS_LIST}); - }, - editorParams: {valueId:"CODE", labelId:"NAME", values:_PROCESS_LIST} + } }, {title:'프로젝트번호', field:'PROJECT_OBJID', headerHozAlign:'center', hozAlign:'center', width:130, editor: fn_select2Editor, @@ -326,18 +332,24 @@ function fn_search(){ editorParams: {valueId:"CODE", labelId:"NAME", values:_INSPECTION_RESULT_LIST} }, {title:'담당팀', field:'DEPT_CD', headerHozAlign:'center', hozAlign:'center', width:100, - editor: fnc_customSelectEditor, + editor: fn_select2Editor, + editorParams: { + valueId: "CODE", labelId: "NAME", values: _DEPT_LIST, + placeholder: "담당팀 검색..." + }, formatter: function(cell) { return fnc_customSelectFormatter(cell, {valueId:"CODE", labelId:"NAME", values:_DEPT_LIST}); - }, - editorParams: {valueId:"CODE", labelId:"NAME", values:_DEPT_LIST} + } }, {title:'담당자', field:'USER_ID', headerHozAlign:'center', hozAlign:'center', width:100, - editor: fnc_customSelectEditor, + editor: fn_select2Editor, + editorParams: { + valueId: "CODE", labelId: "NAME", values: _USER_LIST, + placeholder: "담당자 검색..." + }, formatter: function(cell) { return fnc_customSelectFormatter(cell, {valueId:"CODE", labelId:"NAME", values:_USER_LIST}); - }, - editorParams: {valueId:"CODE", labelId:"NAME", values:_USER_LIST} + } }, {title:'특이사항', field:'REMARK', headerHozAlign:'center', hozAlign:'left', width:150, diff --git a/src/com/pms/controller/ProductionPlanningController.java b/src/com/pms/controller/ProductionPlanningController.java index 906a8cd..ef9073f 100644 --- a/src/com/pms/controller/ProductionPlanningController.java +++ b/src/com/pms/controller/ProductionPlanningController.java @@ -1163,14 +1163,14 @@ public class ProductionPlanningController extends BaseService { // 할당된 BOM도 없으면 Machine 이외 제품은 템플릿 확인 String productCode = CommonUtils.checkNull(projectInfo.get("PRODUCT_CODE")); String partNo = CommonUtils.checkNull(projectInfo.get("PART_NO")); - + if(!"0000928".equals(productCode) && !"".equals(partNo)) { System.out.println("Machine 이외 제품 - 템플릿 조회 시도"); Map templateParam = new HashMap<>(); templateParam.put("partNo", partNo); - + Map template = commonService.selectOne("productionplanning.getLatestMbomTemplateByPartNo", request, templateParam); - + if(template != null && !template.isEmpty()) { bomReportObjid = CommonUtils.checkNull(template.get("TEMPLATE_HEADER_OBJID")); bomDataType = "TEMPLATE"; diff --git a/src/com/pms/mapper/productionplanning.xml b/src/com/pms/mapper/productionplanning.xml index bca42a8..f0edca5 100644 --- a/src/com/pms/mapper/productionplanning.xml +++ b/src/com/pms/mapper/productionplanning.xml @@ -3406,31 +3406,25 @@ BPQ.SEQ - + diff --git a/src/com/pms/mapper/salesMng.xml b/src/com/pms/mapper/salesMng.xml index ed05500..d98ebda 100644 --- a/src/com/pms/mapper/salesMng.xml +++ b/src/com/pms/mapper/salesMng.xml @@ -3900,21 +3900,35 @@ ORDER BY V.PATH2 - + + + - + + + + + - + + - + +