185 lines
6.0 KiB
Plaintext
185 lines
6.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>
|
|
</head>
|
|
<script>
|
|
$(document).ready(function(){
|
|
fnc_datepick();
|
|
|
|
//닫기
|
|
$("#btnClose").click(function(){
|
|
opener.location.reload();
|
|
self.close(0);
|
|
});
|
|
|
|
//저장
|
|
$("#btnSave").click(function(){
|
|
if(fnc_valitate("form1")){
|
|
if(fn_checkDuplicate()){
|
|
if(confirm("저장하시겠습니까?")){
|
|
fn_save();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
//취소
|
|
$("#btnCancel").click(function(){
|
|
var objId = $(this).attr("data-OBJID");
|
|
var params = "?objId="+objId;
|
|
document.form1.action ="/productDevMng/dfmea/dfmeaChangeStructureDetailPopUp.do"+params;
|
|
document.form1.submit();
|
|
});
|
|
|
|
//단계 change
|
|
$("#step1").change(function(){
|
|
fnc_setStep2($(this).val(), "${resultMap.STEP2}");
|
|
});
|
|
|
|
//단계1 change trigger
|
|
$("#step1").trigger("change");
|
|
|
|
});
|
|
</script>
|
|
<script>
|
|
//설변 적용내용을 저장한다.
|
|
function fn_save(){
|
|
$.ajax({
|
|
url:"/productDevMng/dfmea/saveStructureChangeInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if(data.result == "true" || data.result == true || data.result){
|
|
Swal.fire("저장하였습니다.");
|
|
opener.location.reload();
|
|
self.close();
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//설계 체크리스트의 중복여부를 확인한다.
|
|
function fn_checkDuplicate(){
|
|
var resultFlag = true;
|
|
var form = $("#form1").serialize();
|
|
$.ajax({
|
|
url:"/productDevMng/dfmea/checkStructureChangeInfoDuplicate.do",
|
|
type:"POST",
|
|
data:form,
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if(0 < data.CNT){
|
|
Swal.fire("이미 해당 내용으로 갑지가 존재합니다.");
|
|
resultFlag = false;
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
|
|
return resultFlag;
|
|
}
|
|
</script>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${resultMap.OBJID}" />
|
|
<input type="hidden" name="targetObjId" id="targetObjId" value="${resultMap.TARGET_OBJID}" />
|
|
<section class="">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>DFMEA</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<div class="form_popup_title"> DFMEA 등록정보 입력</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="133px"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">완료예정일</label>
|
|
</td>
|
|
<td colspan=""><input type="text" name="planCompleteDate" id="planCompleteDate" value="${resultMap.PLAN_COMPLETE_DATE}" style="width:100%;"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">조치내용</label>
|
|
</td>
|
|
<td style="height:80px;"><textarea name="actionContents" id="actionContents" style="width:100%; height:100%; border: 1px solid #ccc; border-radius:3px;" maxlength="120">${resultMap.ACTION_CONTENTS}</textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">심각도</label>
|
|
</td>
|
|
<td colspan=""><input type="number" name="severityScore" id="severityScore" value="${resultMap.SEVERITY_SCORE}" style="width:100%;" required reqTitle="심각도"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">발생도</label>
|
|
</td>
|
|
<td colspan=""><input type="number" name="incidenceScore" id="incidenceScore" value="${resultMap.INCIDENCE_SCORE}" style="width:100%;" required reqTitle="발생도"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">검출도</label>
|
|
</td>
|
|
<td colspan=""><input type="number" name="detectScore" id="detectScore" value="${resultMap.DETECT_SCORE}" style="width:100%;" required reqTitle="검출도"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">단계</label></td>
|
|
<td>
|
|
<select name="step1" id="step1" style="width:90px;" required reqTitle="상위 단계" type="select">
|
|
<option value="">선택</option>
|
|
<option value="design" ${resultMap.STEP1 eq 'design'?'selected':''}>설계</option>
|
|
<option value="develop" ${resultMap.STEP1 eq 'develop'?'selected':''}>개발</option>
|
|
<option value="production" ${resultMap.STEP1 eq 'production'?'selected':''}>양산</option>
|
|
</select>
|
|
<select name="step2" id="step2" style="width:91px;" required reqTitle="하위 단계" type="select">
|
|
<option value="">선택</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">완료일</label>
|
|
</td>
|
|
<td colspan=""><input type="text" name="completeDate" id="completeDate" value="${resultMap.COMPLETE_DATE}" style="width:100%;"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">담당자</label>
|
|
</td>
|
|
<td class="tr_data_border_bottom">${resultMap.DEPT_NAME} ${resultMap.USER_NAME}</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="저장" id="btnSave" class="plm_btns">
|
|
<c:choose>
|
|
<c:when test="${param.actionType eq 'regist'}">
|
|
</c:when>
|
|
<c:otherwise>
|
|
<input type="button" id="btnCancel" value="취소" class="plm_btns" data-OBJID="${resultMap.OBJID}">
|
|
</c:otherwise>
|
|
</c:choose>
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |