ERP-node/WebContent/WEB-INF/view/productDevMng/dfmea/dfmeaAttrSearchPopUp.jsp

145 lines
6.1 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>
</head>
<script>
$(document).ready(function(){
$("#btnClose").click(function(){
self.close(0);
});
$("#btnSave").click(function(){
fn_setSelectedDFMEAInfo();
self.close(0);
});
});
</script>
<script>
//기준정보를 DFMEA에 적용한다.
function fn_setSelectedDFMEAInfo(){
var checkedRadio = $("input:radio[name='dfmeaRadio']:checked");
var checkedRadioLength = checkedRadio.length;
if(0 == checkedRadioLength){
Swal.fire("선택된 정보가 없습니다.");
return false;
}else{
if(confirm("선택된 정보를 적용하시겠습니까?")){
opener.document.getElementById("dfmeaAttribute_${param.targetObjId}").value = "";
opener.document.getElementById("dfmeaAttributeText_${param.targetObjId}").value = "";
opener.document.getElementById("potentialImpact_${param.targetObjId}").value = "";
opener.document.getElementById("potentialCause_${param.targetObjId}").value = "";
opener.document.getElementById("currentMngPrevent_${param.targetObjId}").value = "";
opener.document.getElementById("currentMngDetect_${param.targetObjId}").value = "";
opener.document.getElementById("recommendOption_${param.targetObjId}").value = "";
opener.document.getElementById("dfmeaAttribute_${param.targetObjId}").value = checkedRadio.val();
opener.document.getElementById("dfmeaAttributeText_${param.targetObjId}").value = $("#attrName_"+checkedRadio.val()).val();
opener.document.getElementById("potentialImpact_${param.targetObjId}").value = $("#potenImpact_"+checkedRadio.val()).val();
opener.document.getElementById("potentialCause_${param.targetObjId}").value = $("#potenCause_"+checkedRadio.val()).val();
opener.document.getElementById("currentMngPrevent_${param.targetObjId}").value = $("#mngPrevent_"+checkedRadio.val()).val();
opener.document.getElementById("currentMngDetect_${param.targetObjId}").value = $("#mngDetect_"+checkedRadio.val()).val();
opener.document.getElementById("recommendOption_${param.targetObjId}").value = $("#recommendOption_"+checkedRadio.val()).val();
}
}
}
</script>
<body>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="targetObjId" id="targetObjId" value="${param.targetObjId}">
<section style="min-width:540px;">
<div class="plm_menu_name">
<h2>
<span>DFMEA</span>
</h2>
</div>
<div id="businessPopupFormWrap">
<div class="form_popup_title">&nbsp;&nbsp;&nbsp;잠재적 고장필터</div>
<div class="plm_table_wrap" style="width:97.5%; margin: 10px auto 0;">
<div style="overflow-y:scroll;">
<table class="project_form_in_table" style="width:100%;">
<colgroup>
<col width="3%" />
<col width="3%" />
<col width="*" />
<col width="*" />
<col width="*" />
<col width="*" />
<col width="*" />
<col width="*" />
</colgroup>
<thead>
<tr class="plm_thead">
<td></td>
<td>No</td>
<td>잠재적 고장필터</td>
<td>고장의 잠재적영향</td>
<td>고장의 잠재적원인</td>
<td>현설계관리(예방)</td>
<td>현설계관리(검출)</td>
<td>권고조치사항</td>
</tr>
</thead>
</table>
</div>
<div class="in_table_scroll_wrap" style="height:250px; width:100%">
<table class="project_form_in_table">
<colgroup>
<col width="3%" />
<col width="3%" />
<col width="*" />
<col width="*" />
<col width="*" />
<col width="*" />
<col width="*" />
<col width="*" />
</colgroup>
<tbody id="dfmeaListArea">
<c:choose>
<c:when test="${!empty resultList}">
<c:forEach var="info" items="${resultList}" varStatus="status">
<tr>
<td><input type="radio" name="dfmeaRadio" value="${info.OBJID}"></td>
<td>${info.RNUM}</td>
<td>${info.ATTRIBUTE_NAME}</td>
<td>${info.POTENTIAL_IMPACT}</td>
<td>${info.POTENTIAL_CAUSE}</td>
<td>${info.CURRENT_DESIGN_MANAGE_PREVENT}</td>
<td>${info.CURRENT_DESIGN_MANAGE_DETECT}</td>
<td>${info.RECOMMEND_OPTION}</td>
<input type="hidden" name="attrName_${info.OBJID}" id="attrName_${info.OBJID}" value="${info.ATTRIBUTE_NAME}">
<input type="hidden" name="potenImpact_${info.OBJID}" id="potenImpact_${info.OBJID}" value="${info.POTENTIAL_IMPACT}">
<input type="hidden" name="potenCause_${info.OBJID}" id="potenCause_${info.OBJID}" value="${info.POTENTIAL_CAUSE}">
<input type="hidden" name="mngPrevent_${info.OBJID}" id="mngPrevent_${info.OBJID}" value="${info.CURRENT_DESIGN_MANAGE_PREVENT}">
<input type="hidden" name="mngDetect_${info.OBJID}" id="mngDetect_${info.OBJID}" value="${info.CURRENT_DESIGN_MANAGE_DETECT}">
<input type="hidden" name="recommendOption_${info.OBJID}" id="recommendOption_${info.OBJID}" value="${info.RECOMMEND_OPTION}">
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="8" align="center">조회된 데이터가 없습니다.</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
</div>
</div>
<div class="btn_wrap" style="margin-top:5px;">
<div class="plm_btn_wrap_center">
<input type="button" value="지정" class="plm_btns" id="btnSave">
<input type="button" value="닫기" class="plm_btns" id="btnClose">
</div>
</div>
</div>
</section>
</form>
</body>
</html>