ERP-node/WebContent/WEB-INF/view/protoDevMng/protoTestListFormPopUp.jsp

191 lines
6.5 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(){
$("#btnClose").click(function(){
self.close(0);
});
$(".btnResultForm").click(function(){
fn_openFormPopUp();
});
$(document).ready(function(){
$(".btnDetailPart").click(function(){
var partNo = $(this).attr("data-PART_NO");
fnc_openPartDetailPopup("${connectUserId}", partNo);
});
});
});
</script>
<script>
//검사결과 등록 팝업을 호출한다.
function fn_openFormPopUp(){
var selectedObj = $("input[name=testRadio]:checked");
if(0 < selectedObj.length){
var partNo = selectedObj.val();
var targetObjId = selectedObj.attr("data-TARGET-OBJID");
if("" == partNo || "" == targetObjId){
Swal.fire("선택된 Part가 없습니다.");
}else{
var params = "&actionType=regist"
window.open("/protoDevMng/protoTestResultFormPopUp.do?targetObjId="+targetObjId+"&partNo="+partNo+params, "", "width=700, height=385");
}
}else{
Swal.fire("선택된 Part가 없습니다.");
}
}
//검사결과 이력 팝업을 호출한다.
function fn_openHistoryPopUp(partNo,objId){
window.open("/protoDevMng/protoTestHistoryFormPopUp.do?targetObjId="+objId+"&partNo="+partNo, "", "width=580, height=390");
}
//첨부파일 미리보기
function openImagePopUp(url){
var img=new Image();
img.src=url;
var img_width=img.width;
var img_height=img.height;
var win_width=img.width+25;
var height=img.height+30;
window.open(url,"protoStockListShapeImgPopUp","width="+img_width+",height="+height+", menubars=no, scrollbars=yes'");
}
</script>
</head>
<body>
<form name="form1" action="" method="post">
<div class="">
<div class="plm_menu_name">
<h2>
<span>시작품검사</span>
</h2>
</div>
<section id="" class="contents_page_basic_margin">
<div class="btn_wrap">
<div class="plm_btn_wrap">
<input type="button" value="등록" class="plm_btns btnResultForm">
</div>
</div>
<div class="plm_table_wrap">
<table class="plm_table startProduct_table" style="width:99.9%;">
<colgroup>
<col width="2%">
<col width="3%">
<col width="10%">
<col width="*">
<col width="10%">
<col width="10%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="3%">
</colgroup>
<thead>
<tr class="plm_thead">
<td rowspan="2"></td>
<td rowspan="2">No</td>
<td rowspan="2">품번</td>
<td rowspan="2">품명</td>
<td rowspan="2" class="img_td">형상</td>
<td rowspan="2">EO No.</td>
<td rowspan="2">EO Date</td>
<td rowspan="2">Rev.</td>
<td colspan="2" class=" " name="">용접검사</td>
<td colspan="2" class=" " name="">골격검사</td>
<td rowspan="2">이력</td>
</tr>
<tr class="plm_sub_thead font_size_down_12">
<td class="" name="">차수</td>
<td class="" name="">결과</td>
<td class="" name="">차수</td>
<td class="" name="">결과</td>
</tr>
</thead>
</table>
<div class="plm_scroll_table" style="height:460px;">
<table class="plm_table startProduct_table">
<colgroup>
<col width="2%">
<col width="3%">
<col width="10%">
<col width="*">
<col width="10%">
<col width="10%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="3%">
</colgroup>
<tbody>
<c:choose>
<c:when test="${empty resultList}">
<tr style="text-align:center;">
<td align="center" colspan="13">조회된 데이터가 없습니다.</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach var="item" items="${resultList}" varStatus="varStatus">
<tr>
<td><input type="radio" name="testRadio" value="${item.PART_NO}" data-TARGET-OBJID="${item.TEST_OBJID}">
<td>${item.RNUM}</td>
<%-- <td><a href="#" onclick="fnc_openStartPartDetailPopup('','${item.PART_NO}');">${item.PART_NO}</a></td>
<td><a href="#" onclick="fnc_openStartPartDetailPopup('','${item.PART_NO}');">${item.PART_NAME}</a></td> --%>
<td title="${item.PART_NO}"><a href="#" class="btnDetailPart" data-PART_NO="${item.PART_NO}">${item.PART_NO}</a></td>
<td title="${item.PART_NAME}"><a href="#" class="btnDetailPart" data-PART_NO="${item.PART_NO}">${item.PART_NAME}</a></td>
<td>
<c:choose>
<c:when test="${empty item.PROTO_RESULT_ATTACH_REAL_FILE_NAME}">
<div class="no_img_icon"></div>
</c:when>
<c:otherwise>
<script>
var srcLocation = encodeURI("/common/viewImage.do?realFileName=${item.PROTO_RESULT_ATTACH_REAL_FILE_NAME}&savedFileName=${item.PROTO_RESULT_ATTACH_SAVED_FILE_NAME}&attDir=${item.PROTO_RESULT_ATTACH_FILE_PATH}");
document.write("<img src='"+srcLocation+"' height='68px' width='auto' onclick='openImagePopUp(this.src)' style='cursor:pointer;'/>");
</script>
</c:otherwise>
</c:choose>
</td>
<td title="${item.EO_NO}">${item.EO_NO}</td>
<td title="${item.EO_ISSUE_DATE_TITLE}">${item.EO_ISSUE_DATE_TITLE}</td>
<td title="${item.REV}">${item.REV}</td>
<td title="${item.WELD_CURRENT_ROUND}">${item.WELD_CURRENT_ROUND}</td>
<td title="${item.WELD_CURRENT_RESULT}">${item.WELD_CURRENT_RESULT}</td>
<td title="${item.FRAME_CURRENT_ROUND}">${item.FRAME_CURRENT_ROUND}</td>
<td title="${item.FRAME_CURRENT_SCORE}">${item.FRAME_CURRENT_SCORE}</td>
<td><a href="#" class="btnHistoryFile file_${item.HISTORY_CNT eq 0?'empty_':''}icon" onclick="fn_openHistoryPopUp('${item.PART_NO}','${item.TEST_OBJID}')"></a></td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
</tbody>
</table>
</div>
</div>
</section>
<div class="btn_wrap">
<div class="plm_btn_wrap_center">
<input type="button" value="닫기" id="btnClose" class="plm_btns">
</div>
</div>
</div>
</form>
</body>
</html>