269 lines
7.6 KiB
Plaintext
269 lines
7.6 KiB
Plaintext
<%
|
|
/**
|
|
* 발주관리 상세 조회
|
|
* @since 2021.11.17
|
|
* @author min
|
|
* @version 1.0
|
|
*
|
|
* << 개정 이력 >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ---------------- --------------------- --------------------------------------------------------
|
|
* 2021.11.17 민상익 최초작성
|
|
**/
|
|
%>
|
|
<%@ 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" %>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
</head>
|
|
<link rel="stylesheet" href="/css/ions-basic.css">
|
|
<script type="text/javascript" src="/js/ions-common.js" ></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
|
|
fnc_makeDatepick();
|
|
|
|
// 저장
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
|
|
// 삭제
|
|
$("#btnDelete").click(function(){
|
|
fn_delete();
|
|
});
|
|
|
|
// 닫기
|
|
$("#btnClose").click(function(){
|
|
opener.fn_search();
|
|
self.close();
|
|
});
|
|
});
|
|
|
|
// 발주품목 정보 등록
|
|
function fn_save(){
|
|
//if(fnc_valitate("form1")){
|
|
if(confirm("등록 하시겠습니까?")){
|
|
saveProcess();
|
|
}
|
|
//}
|
|
}
|
|
|
|
// 발주품목 정보 등록
|
|
function saveProcess(){
|
|
$.ajax({
|
|
url:"/ordersMgmt/saveOrdersMgmtItem.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.RESULT.msg);
|
|
reload();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
// 발주관리 정보 삭제
|
|
function fn_delete() {
|
|
if(confirm("삭제 하시겠습니까?")){
|
|
deleteProcess();
|
|
}
|
|
}
|
|
|
|
// 삭제
|
|
function deleteProcess(){
|
|
$.ajax({
|
|
url:"/ordersMgmt/deleteOrdersMgmtItem.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.RESULT.msg);
|
|
reload();
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
//다시 불러오기
|
|
function reload(){
|
|
|
|
document.form1.action = "/ordersMgmt/ordersMgmtFormItemPopup.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
|
|
//품목 선택시 불러 오기
|
|
function selectImItemId(imItemId){
|
|
|
|
document.form1.condImItemId.value = imItemId;
|
|
|
|
document.form1.action = "/ordersMgmt/ordersMgmtItemOne.do";
|
|
document.form1.submit();
|
|
|
|
}
|
|
|
|
</script>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="odOrderNo" id="odOrderNo" value="${param.odOrderNo}">
|
|
<input type="hidden" name="condImItemId" id="condImItemId" >
|
|
<input type="hidden" name="puReqstNo" id="puReqstNo" value="${info.PUREQSTNO}">
|
|
<section>
|
|
|
|
<div id="businessPopupFormWrap">
|
|
<table class="pmsPopupForm">
|
|
<colgroup>
|
|
<col width="25%"/>
|
|
|
|
<col width="15%"/>
|
|
<col width="20%"/>
|
|
<col width="15%"/>
|
|
|
|
<col width="25%"/>
|
|
</colgroup>
|
|
<tr><td colspan="5" style="height:15px;"></td></tr>
|
|
<tr>
|
|
<td rowspan="3" class="sub_title">발주품목정보</td>
|
|
|
|
<td class="input_title" style="font-size:13px;"><label for="">발주번호</label></td>
|
|
<td colspan="3" class="input_sub_title"><input type="text" name="displayOdOrderNo" id="displayOdOrderNo" value="${param.odOrderNo}" disabled maxlength="30" style="width:120px;" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="label">품목명</label></td>
|
|
<td colspan="3" class="input_sub_title">
|
|
<select name="imItemId" id="imItemId" required style="width: 150px;" class="select2">
|
|
<option value="">선택</option>
|
|
<c:forEach var="imItemIdList" items="${codeMap.imItemIdList}">
|
|
${imItemIdList}
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="input_title"><label for="label">발주수량</label></td>
|
|
<td colspan="3" class="input_sub_title"><input type="text" name="oiOrderQty" id="oiOrderQty" value="${info.OIORDERQTY}" maxlength="20" style="width:100px;float:left;" /></td>
|
|
</tr>
|
|
<tr><td colspan="5" style="height:15px;"></td></tr>
|
|
</table>
|
|
|
|
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="7%" />
|
|
<col width="15%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="8%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>품번</td>
|
|
<td>품명</td>
|
|
<td>규격</td>
|
|
|
|
<td>재질</td>
|
|
<td>단위</td>
|
|
<td>발주수량</td>
|
|
|
|
<td>소요일</td>
|
|
<td>최소발주량 </td>
|
|
<td>조달</td>
|
|
<td>사급</td>
|
|
|
|
<td>등급</td>
|
|
<td>발주업체1순위</td>
|
|
<td>발주업체2순위</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div style="height:300px;overflow-y:scroll;margin-right:-10px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="7%" />
|
|
<col width="15%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="8%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${empty LISTITEM}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="13">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LISTITEM}" varStatus="varStatus">
|
|
<tr onclick="ordersListClick('${item.IMITEMID}' )"
|
|
${param.imItemId eq item.IMITEMID ? 'class=selected':''}
|
|
>
|
|
<td><a href="javascript:;" onclick="selectImItemId('${item.IMITEMID}' )">${item.IMITEMNO}</a></td>
|
|
<td>${item.IMITEMNM}</td>
|
|
<td>${item.IMITEMSPEC}</td>
|
|
|
|
<td>${item.IMMATERIAL}</td>
|
|
<td>${item.IMUNIT}</td>
|
|
<td>${item.OIORDERQTY}</td>
|
|
|
|
<td>${item.IMDELIVERY}</td>
|
|
<td>${item.IMMINORDERQTY}</td>
|
|
<td>${item.SOURCING}</td>
|
|
<td>${item.SAGUP}</td>
|
|
|
|
<td>${item.ABC}</td>
|
|
<td>${item.B_SUVNDNM}</td>
|
|
<td>${item.C_SUVNDNM}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p></p>
|
|
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap_center">
|
|
<c:if test="${(param.actionType ne 'view' and info.REG_USER_ID eq connectUserId) or 'regist' eq param.actionType or 'plm_admin' eq connectUserId}">
|
|
<input type="button" value="저장" id="btnSave" class="plm_btns">
|
|
</c:if>
|
|
<c:if test="${(param.actionType eq 'modify' and info.REG_USER_ID eq connectUserId) or 'plm_admin' eq connectUserId}">
|
|
<input type="button" value="삭제" id="btnDelete" class="plm_btns">
|
|
</c:if>
|
|
<input type="button" value="닫기" id="btnClose" class="plm_btns">
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</form>
|
|
</body>
|
|
</html> |