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} - - - + + + + ~ + + +