256 lines
9.6 KiB
Plaintext
256 lines
9.6 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<%
|
|
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
|
|
String connector = person.getUserId();
|
|
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<!-- //JSTL 페이징 변수선언 -->
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
|
|
<c:set var="connector" value="<%=connector %>" />
|
|
<script>
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
|
|
//엔터 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
$("#btnActReg").click(function(){
|
|
fn_redeliverydateReg();
|
|
});
|
|
|
|
$("#project_no").change(function(){
|
|
fn_UnitCodeList(this.value, "unit_code", "");
|
|
});
|
|
fnc_datepick2();
|
|
fn_search();
|
|
});
|
|
|
|
var columns = [
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '발주번호', field : 'PURCHASE_ORDER_NO',
|
|
formatter:fnc_createGridAnchorTag,
|
|
cellClick:function(e, cell){
|
|
var objId = fnc_checkNull(cell.getData().ORDER_OBJID);
|
|
fn_formPopUp(objId);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '프로젝트번호', field : 'PROJECT_NO'},
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '180', title : '유닛명', field : 'UNIT_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '120', title : '입고일', field : 'RECEIPT_DATE' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '180', title : '품번', field : 'PART_NO' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '180', title : '품명', field : 'PART_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '80', title : '입고차수', field : 'GROUP_SEQ' },
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '100', title : '부적합수량', field : 'ERROR_QTY' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '120', title : '유형', field : 'ERROR_REASON'},
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '120', title : '귀책', field : 'ATTRIBUTION' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', editor:"input", editorParams:{valueId:"RE_ARRIVAL_PLAN_DATE"}, editable:true,
|
|
title : '<font style="color:#FFBB00;">재입고예정일</font>', field : 'RE_ARRIVAL_PLAN_DATE'},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '입고확인', field : 'RECEIPT_DATE' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '재조립결과', field : 'ASSEMBLY_STATUS' }
|
|
|
|
];
|
|
|
|
//var grid;
|
|
function fn_search(){
|
|
_tabulGrid = fnc_tabul_search(_tabul_layout_fitDataStretch, _tabulGrid, "/supplyChainMgmt/invalidMgmtGridList.do", columns, true);
|
|
}
|
|
|
|
//영업활동등록 상세
|
|
function fn_projectConceptDetail(objId){
|
|
var popup_width = 1200;
|
|
var popup_height = 760;
|
|
var url = "/contractMgmt/contracMgmtFormPopup.do?objId="+objId;
|
|
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openProjectFormPopUp(objId){
|
|
var popup_width = 420;
|
|
var popup_height = 350;
|
|
var objId = objId;
|
|
var params = "?OBJID="+objId;
|
|
var url = "/project/projectmodifyPopUp.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openIssueFormPopUp(status,projectobjid){
|
|
var popup_width = 1720;
|
|
var popup_height = 900;
|
|
var objId = objId;
|
|
var params = "?status="+status+"&project_no="+projectobjid;
|
|
var url = "/productionplanning/issuemgmtList.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
function wbs_popup(objId){
|
|
|
|
var popup_width = 900;
|
|
var popup_height = 800;
|
|
var objId = objId;
|
|
var params = "?OBJID="+objId;
|
|
//var url = "/project/wbsTaskProductGanttFormPopUp.do"+params;
|
|
var url = "/project/wbsTaskProductProduceFormPopUp.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
function setup_wbs_popup(objId){
|
|
|
|
var popup_width = 1100;
|
|
var popup_height = 750;
|
|
var objId = objId;
|
|
var params = "?OBJID="+objId;
|
|
//var url = "/project/wbsTaskProductGanttFormPopUp.do"+params;
|
|
var url = "/project/wbsTaskProductSetupFormPopUp.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
}
|
|
|
|
//등록,수정,뷰
|
|
function fn_formPopUp(objId){
|
|
var popup_width = 1260;
|
|
var popup_height = 1050;
|
|
var target = "purchaseOrderFormPopup_new";
|
|
var url = "/purchaseOrder/purchaseOrderFormPopup_new.do?PURCHASE_ORDER_MASTER_OBJID="+objId+"&action=view";
|
|
fn_centerPopup(popup_width, popup_height, url, target);
|
|
}
|
|
fnc_datepick2();
|
|
|
|
function fn_redeliverydateReg(){
|
|
var selected = _tabulGrid.getSelectedData();
|
|
if(selected.length==0){
|
|
Swal.fire("선택된 데이터가 없습니다.");
|
|
return;
|
|
}else{
|
|
if(selected.length > 1){
|
|
Swal.fire("한건씩 등록 가능합니다.");
|
|
return;
|
|
}else
|
|
{
|
|
var ARRIVAL_OBJID = fnc_checkNull(selected[0].ARRIVAL_OBJID);
|
|
var RE_ARRIVAL_PLAN_DATE = fnc_checkNull(selected[0].RE_ARRIVAL_PLAN_DATE);
|
|
Swal.fire({
|
|
title: '선택된 부적합품의 재입고예정일을 저장하시겠습니까?',
|
|
text: '',
|
|
icon: 'warning',
|
|
|
|
showCancelButton: true, // cancel버튼 보이기. 기본은 원래 없음
|
|
confirmButtonColor: '#3085d6', // confrim 버튼 색깔 지정
|
|
cancelButtonColor: '#d33', // cancel 버튼 색깔 지정
|
|
confirmButtonText: '확인', // confirm 버튼 텍스트 지정
|
|
cancelButtonText: '취소', // cancel 버튼 텍스트 지정
|
|
reverseButtons: false, // 버튼 순서 거꾸로
|
|
|
|
}).then(result => {
|
|
// 만약 Promise리턴을 받으면,
|
|
if (result.isConfirmed) { // 만약 모달창에서 confirm 버튼을 눌렀다면
|
|
$.ajax({
|
|
url:"/supplyChainMgmt/redeliverydateReg.do",
|
|
type:"POST",
|
|
data:{
|
|
"OBJID":ARRIVAL_OBJID , "RE_ARRIVAL_PLAN_DATE":RE_ARRIVAL_PLAN_DATE
|
|
},
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
fn_search();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="actionType" value="" />
|
|
<div class="min_part_enroll">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name_gdnsi">
|
|
<h2>
|
|
<span>SCM관리_부적합품관리</span>
|
|
</h2>
|
|
<div class="btnArea">
|
|
<input type="button" class="plm_btns" value="재입고예정일등록" id="btnActReg">
|
|
<input type="button" class="plm_btns" value="조회" id="btnSearch" name="btnSearch">
|
|
</div>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="Year">년도</label></td>
|
|
<td>
|
|
<select name="Year" id="Year" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<c:forEach begin="${sysYear-4}" end="${sysYear}" var="req_year">
|
|
<option value="${req_year}"${param.Year eq req_year ? 'selected':'' }>${req_year}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="project_no">프로젝트번호</label></td>
|
|
<td>
|
|
<select name="project_no" id="project_no" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.project_no}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="unit_code">유닛명</label></td>
|
|
<td>
|
|
<select name="unit_code" id="unit_code" class="select2" style="width:200px;" type="select" autocomplete="off">
|
|
</td>
|
|
|
|
<td><label for="">품번</label></td>
|
|
<td>
|
|
<input type="text" name="part_no" id="part_no" style="width:200px;" autocomplete="off" value="">
|
|
</td>
|
|
|
|
<td><label for="">유형</label></td>
|
|
<td>
|
|
<select name="defect_reason" id="defect_reason" style="width:200px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.defect_reason}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="">재조립결과</label></td>
|
|
<td>
|
|
<select name="reassembly_result" id="reassembly_result" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<option value="OK">OK</option>
|
|
<!-- <option value="NG">NG</option> -->
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |