176 lines
5.6 KiB
Plaintext
176 lines
5.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.*" %>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@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(){
|
|
$('.select2').select2();
|
|
//날짜
|
|
fnc_datepick();
|
|
|
|
$("#btn_close").click(function(){
|
|
self.close();
|
|
opener.fn_search();
|
|
});
|
|
});
|
|
|
|
function saveInfo(){
|
|
if(fnc_valitate("form1")){
|
|
|
|
var detail_qty = "${info.DETAIL_QTY}";
|
|
var input_qty = $("#input_qty").val();
|
|
|
|
if(parseInt(input_qty) > parseInt(detail_qty)){
|
|
Swal.fire('재고 수량보다 많은 값을 투입할수 없습니다.');
|
|
return;
|
|
}
|
|
|
|
if(confirm("저장하시겠습니까?")){
|
|
$.ajax({
|
|
url:"/inventoryMng/saveInventoryInputFormPopUp.do"
|
|
,type:"POST"
|
|
,data: $("#form1").serialize()
|
|
,dataType:"json"
|
|
,success:function(data){
|
|
if(data =="SUCCESS"){
|
|
Swal.fire("저장되었습니다.");
|
|
};
|
|
if(typeof opener.fn_search =="function"){ opener.fn_search() };
|
|
self.close();
|
|
}
|
|
,error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="oemForm" id=form1 action="" method="post">
|
|
<input type="hidden" name="OBJID" id="OBJID" value="${param.OBJID}">
|
|
|
|
<section>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>자재투입등록</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="15%">
|
|
<col width="35%">
|
|
<col width="15%">
|
|
<col width="35%">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title"><label for="">발생 프로젝트번호</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" id="project_no" readonly value="${param.project_no}"/>
|
|
</td>
|
|
<td class="input_title"><label for="">UNIT Name</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" id="unit" readonly value="${param.unit}"/>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">품번</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" id="part_no" readonly value="${param.part_no}"/>
|
|
</td>
|
|
<td class="input_title"><label for="">품명</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" id="part_name" readonly value="${param.part_name}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="">사양(규격)</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" id="spec" readonly value="${param.spec}"/>
|
|
</td>
|
|
|
|
<td class="input_title"><label for="">메이커</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" id="maker" readonly value="${param.maker}"/>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="businessPopupFormWrap">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="15%">
|
|
<col width="35%">
|
|
<col width="15%">
|
|
<col width="35%">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title"><label for="">투입 프로젝트번호</label></td>
|
|
<td class="input_sub_title">
|
|
<select name="input_contract_objid" id="input_contract_objid" style="" required reqTitle="투입 프로젝트번호" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.input_contract_objid}
|
|
</select>
|
|
</td>
|
|
|
|
<td class="input_title"><label for="">투입수량</label></td>
|
|
<td class="input_sub_title">
|
|
<%-- <input type="text" name="input_qty" id="input_qty" required reqTitle="투입수량" maxlength="100" value="${info.INPUT_QTY}"> --%>
|
|
<input type="text" name="input_qty" id="input_qty" required reqTitle="투입수량" maxlength="100" >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="input_title"><label for="">자재투입일</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" class="date_icon" name="input_date" id="input_date" reqTitle="자재투입일" value=""/>
|
|
<%-- <input type="text" class="date_icon" name="input_date" id="input_date" reqTitle="자재투입일" value="${info.INPUT_DATE}"/> --%>
|
|
</td>
|
|
|
|
<td class="input_title"><label for="">인수자</label></td>
|
|
<td class="input_sub_title">
|
|
<select name="assumption_user" id="assumption_user" style="" required reqTitle="인수자" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.assumption_user}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="input_title"><label for="">잔여수량</label></td>
|
|
<td class="input_sub_title">
|
|
<input type="text" name="qty" id="qty" readonly disabled value="${info.DETAIL_QTY}">
|
|
</td>
|
|
|
|
<td class="input_title"><label for="">인계자</label></td>
|
|
<td class="input_sub_title">
|
|
<select name="successor_user" id="successor_user" style="" required reqTitle="인계자" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.successor_user}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<input type="button" value="저장" class="plm_btns" onclick="javascript:saveInfo();">
|
|
<input type="button" value="닫기" name="" id="btn_close" class="plm_btns" onclick="javascript:self.close();">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |