158 lines
4.6 KiB
Plaintext
158 lines
4.6 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">
|
|
<link rel="stylesheet" href="css/basic.css">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
|
|
<script>
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
$("#testTypeName").focus();
|
|
});
|
|
|
|
//엔터키로 조회
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
fnc_materialSubmit();
|
|
}
|
|
});
|
|
|
|
//save
|
|
$("#btnSave").click(function(){
|
|
if(fn_duplicateNameCheck()){
|
|
fn_save();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
//검사명 저장
|
|
function fn_save(){
|
|
$.ajax({
|
|
url:"/admin/saveTestTypeInfo.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
Swal.fire(data.msg);
|
|
if(data.result == "true" || data.result == true || data.result){
|
|
opener.fn_search();
|
|
self.close(0);
|
|
}
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
//검사명 중복체크
|
|
function fn_duplicateNameCheck(){
|
|
var result = false;
|
|
var testTypeName = $("#testTypeName").val();
|
|
|
|
$.ajax({
|
|
url:"/admin/checkDuplicateTestTypeName.do",
|
|
type:"POST",
|
|
data:{"testTypeName":testTypeName},
|
|
dataType:"json",
|
|
async:false,
|
|
success:function(data){
|
|
if(data.result == "false" || data.result == false || !data.result){
|
|
Swal.fire(data.msg);
|
|
}else{
|
|
result = true;
|
|
}
|
|
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
|
|
return result;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<section id="commonSection">
|
|
<div class=admin_title>
|
|
<h2>DFMEA Master 등록</h2>
|
|
</div>
|
|
<div id="adminPopupFormWrap">
|
|
<form id="form1" name="form1" method="post">
|
|
<input type="hidden" id="objId" name="objId" value="${info.OBJID}">
|
|
<table id="adminPopupForm">
|
|
<colgroup>
|
|
<col width="20%" />
|
|
<col width="40%" />
|
|
<col width="20%" />
|
|
<col width="40%" />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td><label>제품군</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</option>
|
|
<option value="" ></option>
|
|
<option value="" ></option>
|
|
<option value="" ></option>
|
|
</select>
|
|
</td>
|
|
<td><label>제품</label></td>
|
|
<td>
|
|
<select name="" id="">
|
|
<option value="">선택</option>
|
|
<option value="" ></option>
|
|
<option value="" ></option>
|
|
<option value="" ></option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>순번</label></td>
|
|
<td>
|
|
<input type="text">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>대분류</label></td>
|
|
<td><textarea style="resize:none;" placeholder="내용을 입력하세요."></textarea></td>
|
|
<td><label>중분류</label></td>
|
|
<td><textarea style="resize:none;" placeholder="내용을 입력하세요."></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>잠재적 고장형태</label></td>
|
|
<td><textarea style="resize:none;" placeholder="내용을 입력하세요."></textarea></td>
|
|
<td><label>고장의 잠재적 영향</label></td>
|
|
<td><textarea style="resize:none;" placeholder="내용을 입력하세요."></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>고장의 잠재적 원인</label></td>
|
|
<td><textarea style="resize:none;" placeholder="내용을 입력하세요."></textarea></td>
|
|
<td><label>현설계관리(예방)</label></td>
|
|
<td><textarea style="resize:none;" placeholder="내용을 입력하세요."></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label>현설계관리(검출)</label></td>
|
|
<td><textarea style="resize:none;" placeholder="내용을 입력하세요."></textarea></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div class="btnCenterWrap">
|
|
<center class="center_btns_wrap">
|
|
<input type="button" value="저장" class="btns" id="btnSave">
|
|
<input type="button" value="닫기" name="" id="btn_close" class="btns" onclick="javascript:self.close();">
|
|
</center>
|
|
</div>
|
|
</secsion>
|
|
</body>
|
|
</html> |