381 lines
12 KiB
Plaintext
381 lines
12 KiB
Plaintext
<%
|
|
/**
|
|
* 자재불출관리
|
|
* @since 2021.10.01
|
|
* @author kim
|
|
* @version 1.0
|
|
*
|
|
* << 개정 이력 >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ---------------- --------------------- --------------------------------------------------------
|
|
* 2021.10.01 김효일 최초작성
|
|
**/
|
|
%>
|
|
<%@ 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 connector = person.getUserId();
|
|
%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<!-- //JSTL 페이징 변수선언 -->
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
<c:set var="sysMonth"><fmt:formatDate value="${now}" pattern="MM" /></c:set>
|
|
<c:set var="connector" value="<%=connector %>" />
|
|
|
|
<link rel="stylesheet" href="/css/ions-basic.css">
|
|
<script type="text/javascript" src="/js/ions-common.js" ></script>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
$('.select2').select2();
|
|
|
|
fnc_makeDatepick();
|
|
|
|
// 자재입고 조회
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
|
|
// 자재입고 등록 팝업
|
|
$("#btnReg").click(function(){
|
|
window.open("/imItem/materialIrFormPopup.do?actionType=regist", "materialIrFormPopup", "width=1280, height=800", "menubars=no, scrollbars=yes, resizable=yes");
|
|
});
|
|
});
|
|
});
|
|
|
|
// 자재입고 등록 팝업
|
|
function openImItemFormPopup(imItemId, imItemNo){
|
|
var url = "/imItem/materialIrFormPopup.do";
|
|
|
|
var param = "";
|
|
param += "?actionType=modify";
|
|
param += "&imItemId=" + imItemId;
|
|
|
|
window.open(url + param, "materialIrFormPopup", "width=1280, height=800", "menubars=no, scrollbars=yes, resizable=yes");
|
|
}
|
|
|
|
// 검색
|
|
function fn_search() {
|
|
document.form1.action = "/imItem/materialirAll.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
// 품목 클릭
|
|
function itemClick(rcRcptNo) {
|
|
document.form1.rcRcptNo.value = rcRcptNo;
|
|
|
|
// 탭 검색
|
|
fn_search();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name_ieg">
|
|
<h2>
|
|
<span>구매관리> 자재관리> 자재불출</span>
|
|
</h2>
|
|
</div>
|
|
|
|
<form name="form1" id="form1" method="get" onsubmit="return false;">
|
|
<input type="hidden" name="rcRcptNo" id="rcRcptNo" value="${rcRcptNo}" /> <!-- 입고번호 -->
|
|
|
|
<!--// search -->
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td class=""><label for="label" class="">의뢰번호 </label></td>
|
|
<td>
|
|
<select name="condIrReqstNo" id="condIrReqstNo" style="width: 120px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
<option value="A41202112010001">A41202112010001</option>
|
|
</select>
|
|
</td>
|
|
<td style="padding-right:15px;"></td>
|
|
<td><label for="label" class="">의뢰일자</label></td>
|
|
<td>
|
|
<input type="text"
|
|
id="condIrDemandDt"
|
|
name="condIrDemandDt"
|
|
value="${param.condIrDemandDt}"
|
|
class="date_icon"
|
|
placeholder="날짜선택"
|
|
style="width: 80px !important;" autocomplete="off"
|
|
/>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class=""><label for="label" class="">입고번호별 </label></td>
|
|
<td>
|
|
<select name="condRcRcptNo" id="condRcRcptNo" style="width: 120px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
<option value="R41202112150001">R41202112150001</option>
|
|
</select>
|
|
</td>
|
|
<td style="padding-right:15px;"></td>
|
|
<td><label for="label" class="">입고일자</label></td>
|
|
<td>
|
|
<input type="text"
|
|
id="condRcArrvDt"
|
|
name="condRcArrvDt"
|
|
value="${param.condRcArrvDt}"
|
|
class="date_icon"
|
|
style="width: 120px !important;"
|
|
autocomplete="off"
|
|
/>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class=""><label for="label" class="">일반불출 </label></td>
|
|
<td><label for="" class="">사업부</label></td>
|
|
<td>
|
|
<select name="condAcntUnit" id="condAcntUnit" style="width: 120px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
<option value="41" ${param.condAcntUnit3 eq '41' ? 'selected':'' }>크레인사업부</option>
|
|
<option value="42" ${param.condAcntUnit3 eq '42' ? 'selected':'' }>실린더생산팀</option>
|
|
<option value="43" ${param.condAcntUnit3 eq '43' ? 'selected':'' }>출고</option>
|
|
<option value="44" ${param.condAcntUnit3 eq '44' ? 'selected':'' }>전장제작반</option>
|
|
<option value="50" ${param.condAcntUnit3 eq '50' ? 'selected':'' }>특장사업부</option>
|
|
<option value="F0" ${param.condAcntUnit3 eq 'F0' ? 'selected':'' }>정비사업부</option>
|
|
</select>
|
|
</td>
|
|
<td style="padding-right:15px;"></td>
|
|
<td><label for="" class="">불출일자</label></td>
|
|
<td>
|
|
<input type="text"
|
|
id="condSsIssueDt"
|
|
name="condSsIssueDt"
|
|
value="${param.condSsIssueDt}"
|
|
class="date_icon"
|
|
style="width: 120px !important;"
|
|
autocomplete="off"
|
|
/>
|
|
</td>
|
|
<td><input type="button" value="검색" class="gray_btns" id="btnSearch"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--// search -->
|
|
|
|
<!--// section -->
|
|
<section class="contents_page_basic_margin">
|
|
<h3 class="tit">자재불출 리스트</h3>
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch">
|
|
<input type="button" value="등록" class="plm_btns" id="btnReg">
|
|
</div>
|
|
</div>
|
|
|
|
<!--// 자재불출 리스트 -->
|
|
<div class="plm_table_wrap">
|
|
<div>
|
|
<table class="plm_table table-hover">
|
|
<colgroup>
|
|
<col width="10%" />
|
|
<col width="8%" />
|
|
<col width="8%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="14%" />
|
|
</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>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="10">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
|
|
<tr onclick="itemClick('${item.RCRCPTNO}');"
|
|
${rcRcptNo eq item.RCRCPTNO ? 'class=selected':''}
|
|
>
|
|
<td><a href="javascript:;" onclick="openImItemFormPopup('${item.RCRCPTNO}')">${item.RCRCPTNO}</a></td>
|
|
<td>${item.RCRCPTTPNM}</td>
|
|
<td>${item.SUVNDNM}</td>
|
|
<td>
|
|
<fmt:parseDate var="rcArrvDt" value="${item.RCARRVDT}" pattern="yyyyMMdd"/>
|
|
<fmt:formatDate value="${rcArrvDt}" pattern="yyyy-MM-dd" />
|
|
</td>
|
|
<td>${item.RCACCNONM}</td>
|
|
<td>${item.RCDOCNO}</td>
|
|
<td>${item.SSISSUENO}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!--// 자재불출 리스트 -->
|
|
|
|
<!--// pdm_page -->
|
|
<%@include file="../../common/paging.jsp" %>
|
|
<!--// pdm_page -->
|
|
|
|
<h3 class="tit">자재불출품목 정보</h3>
|
|
|
|
<div class="plm_table_wrap">
|
|
<div>
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td rowspan="2">일련번호</td>
|
|
<td rowspan="2">발주번호</td>
|
|
<td colspan="2">입고처리</td>
|
|
<td rowspan="2">기종(모델)명</td>
|
|
<td rowspan="2">품번</td>
|
|
<td rowspan="2">품명</td>
|
|
<td rowspan="2">규격</td>
|
|
<td rowspan="2">단위</td>
|
|
<td rowspan="2">발주수량</td>
|
|
<td rowspan="2">납품수량</td>
|
|
<td rowspan="2">불량수량</td>
|
|
<td rowspan="2">부족수량</td>
|
|
<td rowspan="2">입고수량</td>
|
|
<td rowspan="2">입고단가</td>
|
|
<td rowspan="2">금액</td>
|
|
<td rowspan="2">LocNo</td>
|
|
<td rowspan="2">납기일</td>
|
|
<td rowspan="2">기종코드</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div style="height:200px;overflow-y:scroll;margin-right:-10px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
<col width="5%" />
|
|
</colgroup>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${empty vendorList}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="18">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${vendorList}" varStatus="varStatus">
|
|
<tr>
|
|
<td>${item.RISEQNO}</td>
|
|
<td>${item.ODORDERNO}</td>
|
|
<td></td>
|
|
<td>${item.IMPRODNM}</td>
|
|
<td>${item.PART_NO}</td>
|
|
<td>${item.IMITEMNM}</td>
|
|
<td>${item.IMITEMSPEC}</td>
|
|
<td>${item.IMUNIT}</td>
|
|
<td>
|
|
<fmt:formatNumber value="${item.RMORDERQTY}" type="number" maxFractionDigits="3" />
|
|
</td>
|
|
<td>
|
|
<fmt:formatNumber value="${item.ISQTY}" type="number" maxFractionDigits="3" />
|
|
</td>
|
|
<td>
|
|
<fmt:formatNumber value="${item.RINOGOODQTY}" type="number" maxFractionDigits="3" />
|
|
</td>
|
|
<td>
|
|
<fmt:formatNumber value="${item.LACKQTY}" type="number" maxFractionDigits="3" />
|
|
</td>
|
|
<td>
|
|
<fmt:formatNumber value="${item.RIRCPTQTY}" type="number" maxFractionDigits="3" />
|
|
</td>
|
|
<td>
|
|
<fmt:formatNumber value="${item.RIPRICE}" type="number" maxFractionDigits="3" />
|
|
</td>
|
|
<td>
|
|
<fmt:formatNumber value="${item.RIRCPTAMT}" type="number" maxFractionDigits="3" />
|
|
</td>
|
|
<td></td>
|
|
<td>
|
|
<fmt:parseDate var="isDt" value="${item.ISDT}" pattern="yyyyMMdd"/>
|
|
<fmt:formatDate value="${isDt}" pattern="yyyy-MM-dd" />
|
|
</td>
|
|
<td>${item.IMPRODNO}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!--// section -->
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |