최초커밋
This commit is contained in:
@@ -0,0 +1,231 @@
|
||||
<%@ 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(){
|
||||
//조회 Popup
|
||||
$("#btnSearch").click(function(){
|
||||
fn_searchFormPopup();
|
||||
});
|
||||
});
|
||||
//취소
|
||||
$("#btnCancel").click(function(){
|
||||
var objId = $(this).attr("data-OBJID");
|
||||
var params = "?objId="+objId;
|
||||
document.form1.action ="/admin/translateDocDetailPopUp.do"+params;
|
||||
document.form1.submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// 부서 조회정보 입력
|
||||
function fn_searchDeptCallback(deptName,deptId){
|
||||
$("#deptName").val(deptName);
|
||||
$("#deptId").val(deptId);
|
||||
}
|
||||
|
||||
//문서 기준정보 등록 조회 Popup
|
||||
function fn_searchFormPopup(){
|
||||
window.open("/admin/searchDeptPopUp.do","","width=500,height=370");
|
||||
$("#deptName").attr("value","");
|
||||
$("#deptId").attr("value","");
|
||||
}
|
||||
|
||||
/* 문서기준정보의 중복여부를 확인한다. */
|
||||
function fn_checkDuplicate(){
|
||||
var result = false;
|
||||
|
||||
$.ajax({
|
||||
url:"/admin/checkDuplicateTranslateDoc.do",
|
||||
type:"POST",
|
||||
data:$("#form1").serialize(),
|
||||
dataType:"json",
|
||||
async:false,
|
||||
success:function(data){
|
||||
if(data.CNT != "0"){
|
||||
Swal.fire("이미 존재하는 정보 입니다.");
|
||||
}else{
|
||||
result = true;
|
||||
}
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
function fn_save(){
|
||||
if(fnc_valitate("form1")){
|
||||
if(fn_checkDuplicate()){
|
||||
if(confirm("저장하시겠습니까?")){
|
||||
$.ajax({
|
||||
url:"/admin/saveTranslateDoc.do",
|
||||
type:"POST",
|
||||
data:$("#form1").serialize(),
|
||||
dataType:"json",
|
||||
async:false,
|
||||
success:function(data){
|
||||
|
||||
if(fnc_checkTrue(data.result)){
|
||||
Swal.fire("저장되었습니다.");
|
||||
|
||||
opener.fn_search();
|
||||
|
||||
var form = document.form1;
|
||||
form.action="/admin/translateDocDetailPopUp.do";
|
||||
form.submit();
|
||||
}else{
|
||||
Swal.fire("오류가 발생하였습니다.");
|
||||
}
|
||||
},
|
||||
error: function(jqxhr, status, error){
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<section id="commonSection">
|
||||
<div class=admin_title>
|
||||
<h2>재질관리</h2>
|
||||
</div>
|
||||
<div id="adminPopupFormWrap">
|
||||
<form id="form1" name="form1" method="post">
|
||||
<input type="hidden" id="objId" name="objId" value="${resultMap.OBJID}">
|
||||
<table id="adminPopupForm">
|
||||
<colgroup>
|
||||
<col width="37%" />
|
||||
<col width="63%" />
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><label>문서명</label></td>
|
||||
<td><input type="text" title="재질" id="docTitle" name="docTitle" value="${resultMap.DOC_TITLE}" maxlength="50" reqTitle="문서명" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>문서유형</label></td>
|
||||
<td>
|
||||
<select name="docType" type="select" reqTitle="문서유형" required>
|
||||
<option value="">선택</option>
|
||||
<option value="file" ${'file' eq resultMap.DOC_TYPE ? 'selected':''}>파일</option>
|
||||
<option value="output" ${'output' eq resultMap.DOC_TYPE ? 'selected':''}>출력</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>이관유형</label></td>
|
||||
<td>
|
||||
<select name="translateType" type="select" reqTitle="이관유형" required>
|
||||
<option value="">선택</option>
|
||||
<option value="facility" ${'facility' eq resultMap.TRANSLATE_TYPE ? 'selected':''}>설계</option>
|
||||
<option value="quality" ${'quality' eq resultMap.TRANSLATE_TYPE ? 'selected':''}>품질</option>
|
||||
<option value="etc" ${'etc' eq resultMap.TRANSLATE_TYPE ? 'selected':''}>기타</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>인계팀</label></td>
|
||||
<td>
|
||||
<input type="hidden" value="${!empty resultMap.HAND_OVER_DEPT ? resultMap.HAND_OVER_DEPT:''}" id="deptId" name="deptId">
|
||||
<input type="text" value="${!empty resultMap.HAND_OVER_DEPT_NAME ? resultMap.HAND_OVER_DEPT_NAME:''}" id="deptName" name="deptName" readonly style="width:82%;" reqTitle="인계팀" required>
|
||||
<input type="button" value="조회" id="btnSearch" class="btns" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>생산팀</label></td>
|
||||
<td>
|
||||
<select name="isProduction">
|
||||
<option value="nonTarget" ${'nonTarget' eq resultMap.IS_PRODUCTION ? 'selected':''}>비대상</option>
|
||||
<option value="target" ${'target' eq resultMap.IS_PRODUCTION ? 'selected':''}>대상</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>생산관리팀</label></td>
|
||||
<td>
|
||||
<select name="isProductMng">
|
||||
<option value="nonTarget" ${'nonTarget' eq resultMap.IS_PRODUCT_MNG ? 'selected':''}>비대상</option>
|
||||
<option value="target" ${'target' eq resultMap.IS_PRODUCT_MNG ? 'selected':''}>대상</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>보전팀</label></td>
|
||||
<td>
|
||||
<select name="isIntegrity">
|
||||
<option value="nonTarget" ${'nonTarget' eq resultMap.IS_INTEGRITY ? 'selected':''}>비대상</option>
|
||||
<option value="target" ${'target' eq resultMap.IS_INTEGRITY ? 'selected':''}>대상</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>부품구매팀</label></td>
|
||||
<td>
|
||||
<select name="isComponentBuy">
|
||||
<option value="nonTarget" ${'nonTarget' eq resultMap.IS_COMPONENT_BUY ? 'selected':''}>비대상</option>
|
||||
<option value="target" ${'target' eq resultMap.IS_COMPONENT_BUY ? 'selected':''}>대상</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>양산품질팀</label></td>
|
||||
<td>
|
||||
<select name="isProductQuality">
|
||||
<option value="nonTarget" ${'nonTarget' eq resultMap.IS_PRODUCT_QUALITY ? 'selected':''}>비대상</option>
|
||||
<option value="target" ${'target' eq resultMap.IS_PRODUCT_QUALITY ? 'selected':''}>대상</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>SEQ</label></td>
|
||||
<td><input type="number" name="seq" value="${resultMap.SEQ}" reqTitle="SEQ" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>활성화</label></td>
|
||||
<td>
|
||||
<select name="status">
|
||||
<option value="inActive" ${'inActive' eq resultMap.STATUS ? 'selected':''}>비활성화</option>
|
||||
<option value="active" ${'active' eq resultMap.STATUS ? 'selected':''}>활성화</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div class="btnCenterWrap">
|
||||
<center class="center_btns_wrap">
|
||||
<input type="button" value="저장" class="btns" onclick="javascript:fn_save();" >
|
||||
<c:choose>
|
||||
<c:when test="${param.actionType eq 'regist'}">
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<input type="button" value="취소" class="btns" id="btnCancel" data-OBJID="${resultMap.OBJID}">
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
<input type="button" value="닫기" name="" id="btn_close" class="btns" onclick="javascript:self.close();">
|
||||
</center>
|
||||
</div>
|
||||
</secsion>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user