ERP-node/WebContent/WEB-INF/view/transfer/qualityTransferTestPartList...

172 lines
5.8 KiB
Plaintext

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.pms.common.utils.*"%>
<%@ page import="java.util.*" %>
<%@include file= "/init.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=Constants.SYSTEM_NAME%></title>
<script>
$(function(){
$(document).ready(function(){
$("#btnEdit").click(function(){
//if(confirm("Edit Mode로 이동하시겠습니까?")){
document.form1.action = "/transfer/qualityTransferTestPartListFormPopUp.do";
document.form1.submit();
//}
});
$("#btnComplete").click(function(){
fn_complete();
});
//닫기
$("#btnClose").click(function(){
self.close(0);
});
$(".btnDetailPart").click(function(){
var partNo = $(this).attr("data-PART_NO");
fnc_openPartDetailPopup("${connectUserId}", partNo);
});
});
});
</script>
<script>
function fn_complete(){
var targetObjId = $("#targetObjId").val();
if(confirm("확정하시겠습니까?")){
$.ajax({
url:"/quality/completeQualityTestInfo.do",
type:"POST",
data:{"targetObjId":targetObjId},
dataType:"json",
success:function(data){
Swal.fire(data.msg);
if(data.result == "true"){
opener.fn_search();
self.close(0);
}
},
error: function(jqxhr, status, error){
}
});
}
}
</script>
</head>
<body>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="targetObjId" id="targetObjId" value="${param.targetObjId}" />
<input type="hidden" name="partNo" id="partNo" value="${param.partNo}" />
<input type="hidden" name="partType" id="partType" value="${param.partType}" />
<input type="hidden" name="carObjId" id="carObjId" value="${param.carObjId}" />
<input type="hidden" name="productObjId" id="productObjId" value="${param.productObjId}" />
<div class="plm_menu_name">
<h2>
<span>품질검사결과</span>
</h2>
</div>
<section class="contents_page_basic_margin">
<div class="plm_table_wrap" style="margin-top:15px;">
<div style="overflow-y:scroll;">
<table class="plm_table" style="width:100%">
<colgroup>
<col width="3%">
<col width="10%">
<col width="*">
<col width="6%">
<col width="12%">
<col width="6%">
<col width="10%">
<col width="6%">
<col width="6%">
<col width="15%">
<col width="15%">
</colgroup>
<thead>
<tr class="plm_thead">
<td>No</td>
<td>품번</td>
<td>품명</td>
<td>등급</td>
<td>금형제작처</td>
<td>점수</td>
<td>판정</td>
<td>문제건수</td>
<td>인수결정</td>
<td>인수결정자</td>
<td>인수자의견</td>
</tr>
</thead>
</table>
</div>
<div class="plm_scroll_table" style="width:100%; height:300px;">
<table class="plm_table">
<colgroup>
<col width="3%">
<col width="10%">
<col width="*">
<col width="6%">
<col width="12%">
<col width="6%">
<col width="10%">
<col width="6%">
<col width="6%">
<col width="15%">
<col width="15%">
</colgroup>
<tbody>
<c:choose>
<c:when test="${!empty LIST}">
<c:forEach var="info" items="${LIST}" varStatus="status">
<tr>
<td>${info.RNUM}</td>
<td title="${info.PART_NO}"><a href="#" class="btnDetailPart" data-PART_NO="${info.PART_NO}">${info.PART_NO}</a></td>
<td title="${info.PART_NAME}"><a href="#" class="btnDetailPart" data-PART_NO="${info.PART_NO}">${info.PART_NAME}</a></td>
<td title="${info.RATE}">${info.RATE}</td>
<td title="${info.MOLD_MAKE_COMPANY}">${info.MOLD_MAKE_COMPANY}</td>
<td title="${info.SCORE}">${info.SCORE}</td>
<td>
<c:choose>
<c:when test="${info.RESULT eq 'Y'}">
합격
</c:when>
<c:when test="${info.RESULT eq 'N'}">
불합격
</c:when>
<c:otherwise>
${info.RESULT}
</c:otherwise>
</c:choose>
</td>
<td title="${info.PROBLEM_CNT}">${info.PROBLEM_CNT}</td>
<td title="${info.PROBLEM_CNT}">${info.TAKE_OVER_STATUS_TITLE}</td>
<td title="${info.PROBLEM_CNT}">${info.DEPT_NAME} ${info.USER_NAME}</td>
<td title="${info.PROBLEM_CNT}">${info.TAKE_OVER_COMMENT}</td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td align="center" colspan="11">조회된 Part가 없습니다.</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
</div>
</div>
</section>
<div class="btn_wrap">
<div class="plm_btn_wrap_center">
<input type="button" value="Edit" id="btnEdit" class="plm_btns">
<input type="button" value="확정" id="btnComplete" class="plm_btns">
<input type="button" value="닫기" id="btnClose" class="plm_btns">
</div>
</div>
</form>
</body>
</html>