171 lines
5.1 KiB
Plaintext
171 lines
5.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>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
fnc_datepick();
|
|
});
|
|
</script>
|
|
<script>
|
|
function fn_save(){
|
|
if(fn_validate()){
|
|
if(confirm("저장하시겠습니까?")){
|
|
$.ajax({
|
|
url:"/productDev/saveEOApplyModifyConfirmInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true"){
|
|
opener.fn_search();
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
function fn_validate(){
|
|
if($("#modifyDocWriteType").val() != null && $("#modifyDocWriteType").val() == "Y"){
|
|
//eo 적용유형중 하나라도 선택되어야 한다.
|
|
var flag = false;
|
|
$("input[type=checkbox]:checked").each(function(){
|
|
flag = true;
|
|
});
|
|
if(!flag){
|
|
Swal.fire("수정승인서 작성대상일경우 \nEO 적용유형을 필수로 선택해 주시기 바랍니다.");
|
|
return flag;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="objId" id="objId" value="${info.EO_APPLY_OBJID}" />
|
|
<input type="hidden" name="targetObjId" id="targetObjId" value="${empty info.TARGET_OBJID?param.targetObjId:info.TARGET_OBJID}" />
|
|
<input type="hidden" name="targetType" id="targetType" value="${param.targetType}" />
|
|
<section class="">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>EO적용현황</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<div class="form_popup_title"> ${param.targetType eq 'MOLD'?'금형(C/F)':'설비(I/F)'} 수정승인관리</div>
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="37%"/>
|
|
<col width="15%"/>
|
|
<col width="*"/>
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">수정승인서 작성대상</label>
|
|
</td>
|
|
<td colspan="2">
|
|
<select name="modifyDocWriteType" id="modifyDocWriteType" style="width:93%;">
|
|
<option value="">선택</option>
|
|
<option value="Y" ${info.MODIFY_DOC_WRITE_TYPE eq 'Y'?'selected':''}>Y</option>
|
|
<option value="N" ${info.MODIFY_DOC_WRITE_TYPE eq 'N'?'selected':''}>N</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title" rowspan="3">
|
|
<label for="">EO적용유형</label>
|
|
</td>
|
|
<td class="input_sub_title">
|
|
<label for="">신작</label>
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" name="eoApplyTypeNew" id="eoApplyTypeNew" ${info.EO_APPLY_TYPE_NEW eq 'on'?'checked':''}>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_sub_title">
|
|
<label for="">폐기</label>
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" name="eoApplyTypeDisuse" id="eoApplyTypeDisuse" ${info.EO_APPLY_TYPE_DISUSE eq 'on'?'checked':''}>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_sub_title">
|
|
<label for="">수정</label>
|
|
</td>
|
|
<td>
|
|
<input type="checkbox" name="eoApplyTypeModify" id="eoApplyTypeModify" ${info.EO_APPLY_TYPE_MODIFY eq 'on'?'checked':''}>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">VAATZ 등록번호</label>
|
|
</td>
|
|
<td colspan="2">
|
|
<input type="text" name="vaatzNo" id="vaatzNo" value="${info.VAATZ_NO}" style="width:93%;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">승인일</label>
|
|
</td>
|
|
<td colspan="2">
|
|
<input type="text" name="vaatzConfirmDate" id="vaatzConfirmDate" value="${info.VAATZ_CONFIRM_DATE}" style="width:93%;">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">VAATZ 등록 만료기한</label>
|
|
</td>
|
|
<td colspan="2">
|
|
${info.VAATZ_TARGET_DATE}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">등록만료 D-Day</label>
|
|
</td>
|
|
<td colspan="2">
|
|
${info.VAATZ_LIMIT_DATE_CNT} 일
|
|
<c:choose>
|
|
<c:when test="${info.VAATZ_LIMIT_DATE_CNT > 0}">
|
|
남음
|
|
</c:when>
|
|
<c:otherwise>
|
|
지남
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="저장" id="btnSave" class="plm_btns">
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |