ERP-node/WebContent/WEB-INF/view/project/gate/gateDateSetUpFormPopUp.jsp

110 lines
3.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">
<title><%=Constants.SYSTEM_NAME%></title>
<script>
$(document).ready(function(){
$("#btnSave").click(function(){
fn_save();
});
$("#btnClose").click(function(){
self.close(0);
});
fnc_monthpick();
});
</script>
<script>
function fn_save(){
if(confirm("저장하시겠습니까?")){
$.ajax({
url:"/project/saveProjectGateScheduleInfo.do",
type:"POST",
data:$("#form1").serialize(),
dataType:"json",
success:function(data){
Swal.fire(data.msg);
if(data.result == "true"){
opener.location.href="/project/gate/projectGateMngDashBoard.do";
self.close(0);
}
},
error: function(jqxhr, status, error){
}
});
}
}
</script>
</head>
<body>
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="objId" id="objId" value="${info.OBJID}" />
<input type="hidden" name="targetObjId" id="targetObjId" value="${info.TARGET_OBJID}" />
<section class="">
<div class="plm_menu_name">
<h2>
<span>Gate 설정</span>
</h2>
</div>
<div id="businessPopupFormWrap">
<div class="form_popup_title">&nbsp;&nbsp;&nbsp;Gate 설정</div>
<table class="pmsPopupForm">
<colgroup>
<col width="20%"/>
<col width="*"/>
</colgroup>
<tr>
<td class="input_title">
<label for="">고객사</label>
</td>
<td>${info.OEM_NAME}</td>
</tr>
<tr>
<td class="input_title">
<label for="">차종</label>
</td>
<td>${info.CAR_NAME} (${info.CAR_CODE})</td>
</tr>
<tr>
<td class="input_title">
<label for="">Gate1</label>
</td>
<td><input type="text" name="gate1FromMonth" id="gate1FromMonth" value="${info.GATE1_FROM_DATE}" maxlength="10" style="width:45%;">-<input type="text" name="gate1ToMonth" id="gate1ToMonth" value="${info.GATE1_TO_DATE}" maxlength="10"style="width:44%;"></td>
</tr>
<tr>
<td class="input_title">
<label for="">Gate2</label>
</td>
<td><input type="text" name="gate2FromMonth" id="gate2FromMonth" value="${info.GATE2_FROM_DATE}" maxlength="10" style="width:45%;">-<input type="text" name="gate2ToMonth" id="gate2ToMonth" value="${info.GATE2_TO_DATE}" maxlength="10"style="width:44%;"></td>
</tr>
<tr>
<td class="input_title">
<label for="">Gate3</label>
</td>
<td><input type="text" name="gate3FromMonth" id="gate3FromMonth" value="${info.GATE3_FROM_DATE}" maxlength="10" style="width:45%;">-<input type="text" name="gate3ToMonth" id="gate3ToMonth" value="${info.GATE3_TO_DATE}" maxlength="10"style="width:44%;"></td>
</tr>
<tr>
<td class="input_title">
<label for="">Gate4</label>
</td>
<td><input type="text" name="gate4FromMonth" id="gate4FromMonth" value="${info.GATE4_FROM_DATE}" maxlength="10" style="width:45%;">-<input type="text" name="gate4ToMonth" id="gate4ToMonth" value="${info.GATE4_TO_DATE}" maxlength="10"style="width:44%;"></td>
</tr>
</table>
<br><br><br><br><br><br>
<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>