102 lines
3.0 KiB
Plaintext
102 lines
3.0 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 type="text/javascript">
|
|
function btn_close(){
|
|
opener.location.reload();
|
|
self.close();
|
|
}
|
|
|
|
//선택된 파트를 IS_LAST = 1로 변경한다.
|
|
function changePartIsLast(){
|
|
if($("input[name=partCheckBox]:checked").length > 0){
|
|
if(confirm("선택된 Part로 최종확정 처리하시겠습니까?")){
|
|
$.ajax({
|
|
url:"/part/changePartStatus.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if(data.message != null){
|
|
Swal.fire(data.message);
|
|
opense.opener.search();
|
|
btn_close();
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
Swal.fire(jqxhr.statusText + ", " + status + ", " + error);
|
|
Swal.fire(jqxhr.status);
|
|
Swal.fire(jqxhr.responseText);
|
|
}
|
|
});
|
|
}
|
|
}else{
|
|
Swal.fire("선택된 Part가 없습니다.");
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="targetObjId" id="targetObjId" value="${param.objId}">
|
|
<section class="min_part_enroll_popup2">
|
|
<div class="pdm_menu_name">
|
|
<h2>
|
|
<span>EO등록 > Part조회</span>
|
|
</h2>
|
|
</div>
|
|
<div class="contents_page_basic_margin">
|
|
<div class="pdm_table_wrap">
|
|
<table class="pdm_table no_img_table_td_height" style="text-align:center";>
|
|
<colgroup>
|
|
<col width="4%" />
|
|
<col width="25%" />
|
|
<col width="*" />
|
|
</colgroup>
|
|
<tr class="pdm_thead">
|
|
<td>
|
|
</td>
|
|
<td>Part No.</td>
|
|
<td>Part Name</td>
|
|
<td>최종 여부</td>
|
|
<td>Rev</td>
|
|
</tr>
|
|
<c:choose>
|
|
<c:when test="${empty partList}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="4">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${partList}" varStatus="varStatus">
|
|
<tr>
|
|
<td><input type="radio" name="partCheckBox" value="${item.OBJID}"></td>
|
|
<td><a href="#" onclick="openPartFormPopup('','${item.OBJID}')">${item.PART_NO}</a></td>
|
|
<td><a href="#" onclick="openPartFormPopup('','${item.OBJID}')">${item.PART_NAME}</a></td>
|
|
<td>${item.IS_LAST_TITLE}</td>
|
|
<td>${item.REV}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
<div class="btnCenterWrap">
|
|
<center class="center_btns_wrap">
|
|
<input type="button" value="등록" class="pdm_btns" onclick="changePartIsLast();">
|
|
<input type="button" value="닫기" class="pdm_btns" onclick="javascript:btn_close()">
|
|
</center>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html>
|