From c2e48f4cbb4d5e2b485cdf1d1cdcac2b87ae7e52 Mon Sep 17 00:00:00 2001 From: hjjeong Date: Fri, 5 Dec 2025 18:25:15 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=9E=85=EA=B2=80=EC=82=AC=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=EA=B2=80=EC=83=89=EC=A1=B0=EA=B1=B4,=20=ED=8C=8C?= =?UTF-8?q?=ED=8A=B8=20=EC=83=81=EC=84=B8=EC=B0=BD=20=EB=93=B1=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quality/incomingInspectionFormPopUp.jsp | 23 +++++++++++++-- .../view/quality/incomingInspectionList.jsp | 24 +++++++++------- src/com/pms/controller/QualityController.java | 8 +++--- src/com/pms/mapper/quality.xml | 28 ++++++++++++++++++- 4 files changed, 65 insertions(+), 18 deletions(-) diff --git a/WebContent/WEB-INF/view/quality/incomingInspectionFormPopUp.jsp b/WebContent/WEB-INF/view/quality/incomingInspectionFormPopUp.jsp index cb296ab..f698c80 100644 --- a/WebContent/WEB-INF/view/quality/incomingInspectionFormPopUp.jsp +++ b/WebContent/WEB-INF/view/quality/incomingInspectionFormPopUp.jsp @@ -72,8 +72,11 @@ $(document).ready(function(){ fnc_getJsonAllDataListBySqlId({"sqlId": "common.getUserselect"}) ); - // 오늘 날짜 기본 설정 - if($("#INSPECTION_DATE").val() == ''){ + // 검사일 기본 설정 (저장된 값 없으면 오늘 날짜) + var savedInspectionDate = "${info.inspection_date}"; + if(savedInspectionDate != '' && savedInspectionDate != 'null'){ + $("#INSPECTION_DATE").val(savedInspectionDate); + } else if($("#INSPECTION_DATE").val() == ''){ $("#INSPECTION_DATE").val("${today}"); } @@ -159,10 +162,24 @@ function editCheckInspection(cell) { return rowData.INSPECTION_YN === '검사'; } +// 품목상세 팝업 +function fn_openPartDetailPopUp(partObjId) { + if (!partObjId) return; + var popup_width = 1200; + var popup_height = 900; + var url = "/partMng/partMngDetailPopUp.do?OBJID=" + partObjId; + window.open(url, "partMngDetailPopUp", "width=" + popup_width + ",height=" + popup_height + ",scrollbars=yes,resizable=yes"); +} + function fn_search() { var columns = [ //{formatter:"rowSelection", titleFormatter:"rowSelection", hozAlign:"center", headerSort:false, width:30}, - {title:'품번', field:'PART_NO', headerHozAlign:'center', hozAlign:'left', width:180, editor:false}, + {title:'품번', field:'PART_NO', headerHozAlign:'center', hozAlign:'left', width:180, editor:false, + formatter: fnc_createGridAnchorTag, + cellClick: function(e, cell) { + fn_openPartDetailPopUp(cell.getData().PART_OBJID); + } + }, {title:'품명', field:'PART_NAME', headerHozAlign:'center', hozAlign:'left', width:180, editor:false}, {title:'입고일', field:'DELIVERY_DATE', headerHozAlign:'center', hozAlign:'center', width:100, editor:false}, {title:'입고수량', field:'DELIVERY_QTY', headerHozAlign:'center', hozAlign:'right', width:80, editor:false, diff --git a/WebContent/WEB-INF/view/quality/incomingInspectionList.jsp b/WebContent/WEB-INF/view/quality/incomingInspectionList.jsp index ace014c..814bb96 100644 --- a/WebContent/WEB-INF/view/quality/incomingInspectionList.jsp +++ b/WebContent/WEB-INF/view/quality/incomingInspectionList.jsp @@ -239,22 +239,23 @@ function fn_excelDownload(){ - ${code_map.project_no} - + - + + + + + - - - ${code_map.inspector_id} - - - + + + + ~ + + +