191 lines
5.0 KiB
Plaintext
191 lines
5.0 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<%
|
|
PersonBean person = (PersonBean)session.getAttribute(Constants.PERSON_BEAN);
|
|
String userId = CommonUtils.checkNull(person.getUserId());
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
</head>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("#btnClose").click(function(){
|
|
self.close(0);
|
|
});
|
|
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
fnc_getCodeListAppend("<%=Constants.INVENTORY_LOCATION_CD%>","LOCATION","");
|
|
});
|
|
|
|
</script>
|
|
<script>
|
|
|
|
function fn_save(){
|
|
if(fnc_validate('form1')){
|
|
if(confirm("저장하시겠습니까?")){
|
|
$.ajax({
|
|
url:"/inventoryMng/mergeInventoryRegist.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.message);
|
|
opener.fn_search();
|
|
self.close();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|
|
</script>
|
|
<style>
|
|
.input_title {border-left:1px solid #ccc;}
|
|
.input_sub_title {border-left:1px solid #ccc;}
|
|
.pmsPopupForm tr:last-child td{border-bottom:1px solid #ccc;}
|
|
</style>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="PARENT_OBJID" id="PARENT_OBJID" value="${resultMap.OBJID}">
|
|
<section>
|
|
<div class="plm_menu_name" style="display:flex;">
|
|
<h2>
|
|
<span>재고등록</span>
|
|
</h2>
|
|
</div>
|
|
<div id="businessPopupFormWrap">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="20%">
|
|
<col width="30%">
|
|
<col width="*">
|
|
</colgroup>
|
|
<tr>
|
|
<td class="input_title" rowspan="15">
|
|
<label for="">자재정보</label>
|
|
</td>
|
|
<td class="input_title">
|
|
<label for="">품목</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.PART_NO}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">품명</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.PART_NAME}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">규격</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.SPEC}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">재질</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.MATERIAL}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">단위</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.UNIT}</td>
|
|
</tr>
|
|
<%-- <tr>
|
|
<td class="input_title">
|
|
<label for="">중량</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.WEIGHT}</td>
|
|
</tr> --%>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">두께</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.THICKNESS}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">가로</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.WIDTH}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">세로</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.HEIGHT}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">외경</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.OUT_DIAMETER}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">내경</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.IN_DIAMETER}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">길이</label>
|
|
</td>
|
|
<td class="input_sub_title" >${resultMap.LENGTH}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">수량</label>
|
|
</td>
|
|
<td class="input_sub_title" >
|
|
<input type="number" name="QTY" id="QTY" value="${resultMap.QTY}" required title="수량">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">Location</label>
|
|
</td>
|
|
<td class="input_sub_title" >
|
|
<select name="LOCATION" id="LOCATION" type="select" required title="Location"></select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title">
|
|
<label for="">비고</label>
|
|
</td>
|
|
<td class="input_sub_title" >
|
|
<input type="text" name="REMARK" id="REMARK" value="${resultMap.REMARK}">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<c:choose>
|
|
<c:when test="${resultMap.WRITER eq connectUserId or param.actionType eq 'regist' or 'plm_admin' eq connectUserId}">
|
|
<input type="button" value="저장" id="btnSave" class="plm_btns create">
|
|
</c:when>
|
|
<c:otherwise></c:otherwise>
|
|
</c:choose>
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |