293 lines
9.4 KiB
Plaintext
293 lines
9.4 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/materialWareshousingFormPopup.do?actionType=regist", "materialWareshousingFormPopup", "width=1475, height=745", "menubars=no, scrollbars=yes, resizable=yes");
|
|
});
|
|
});
|
|
});
|
|
|
|
// 자재입고 등록 팝업
|
|
function openImItemFormPopup(rcRcptNo){
|
|
var url = "/imItem/materialWareshousingFormPopup.do";
|
|
|
|
var param = "";
|
|
param += "?actionType=modify";
|
|
param += "&rcRcptNo=" + rcRcptNo;
|
|
|
|
window.open(url + param, "materialWareshousingFormPopup", "width=1475, height=745", "menubars=no, scrollbars=yes, resizable=yes");
|
|
}
|
|
|
|
// 검색
|
|
function fn_search() {
|
|
document.form1.action = "/imItem/materialWarehousingAll.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="align_r"><label for="label" class="">발주</label></td>
|
|
<td class="align_r"><label for="label" class="">업체명</label></td>
|
|
<td>
|
|
<select name="condSuVndCd" id="condSuVndCd" style="width:120px;" class="select2" autocomplete="off">
|
|
<option value="">전체</option>
|
|
<c:forEach var="suVndCdList" items="${codeMap.suVndCdList}">
|
|
${suVndCdList}
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="label" class="align_r">일반입고 </label></td>
|
|
<td><label for="" class="">사업부</label></td>
|
|
<td colspan="">
|
|
<select name="condAcntUnit" id="condAcntUnit" style="width: 120px;" class="select2">
|
|
<option value="">선택</option>
|
|
<option value="41" ${param.condAcntUnit eq '41' ? 'selected':'' }>크레인사업부</option>
|
|
<option value="42" ${param.condAcntUnit eq '42' ? 'selected':'' }>실린더생산팀</option>
|
|
<option value="43" ${param.condAcntUnit eq '43' ? 'selected':'' }>출고</option>
|
|
<option value="44" ${param.condAcntUnit eq '44' ? 'selected':'' }>전장제작반</option>
|
|
<option value="50" ${param.condAcntUnit eq '50' ? 'selected':'' }>특장사업부</option>
|
|
<option value="F0" ${param.condAcntUnit eq 'F0' ? 'selected':'' }>정비사업부</option>
|
|
</select>
|
|
</td>
|
|
<td><label for="" class="">입고일자</label></td>
|
|
<td colspan="">
|
|
<input type="text" id="condRcArrvDt" name="condRcArrvDt" value="${condRcArrvDt}" class="date_icon" style="width: 80px !important;" autocomplete="off"></td>
|
|
<td colspan=""> </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="10%" />
|
|
<col width="*" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<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="6">조회된 데이터가 없습니다.</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>
|
|
</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="7%" />
|
|
<col width="8%" />
|
|
<col width="15%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<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>검수번호</td>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
<div style="height:350px;overflow-y:scroll;margin-right:-10px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="7%" />
|
|
<col width="8%" />
|
|
<col width="15%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
<col width="6%" />
|
|
<col width="6%" />
|
|
<col width="10%" />
|
|
<col width="10%" />
|
|
</colgroup>
|
|
<tbody id="productPart">
|
|
<c:choose>
|
|
<c:when test="${empty itemList}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="13">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${itemList }" varStatus="varStatus">
|
|
<input type="hidden" name="riSeqNo" id="riSeqNo" value="${item.RISEQNO}" />
|
|
<input type="hidden" name="imItemId" id="imItemId" value="${item.IMITEMID}" />
|
|
<tr id="${item.RISEQNO}">
|
|
<td>${item.RISEQNO}</td>
|
|
<td>${item.IMITEMNO}</td>
|
|
<td>${item.IMITEMNM}</td>
|
|
<td>${item.IMITEMSPEC}</td>
|
|
<td>${item.IMMATERIAL}</td>
|
|
<td>${item.IMUNIT}</td>
|
|
<td>${item.RINOGOODQTY}</td>
|
|
<td>${item.RIRCPTQTY}</td>
|
|
<td>${item.RIPRICE}</td>
|
|
<td>${item.RIRCPTAMT}</td>
|
|
<td>${item.IMINSPECTION eq 'Y' ? '검수':''}</td>
|
|
<td>${item.ININSPECTNO}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!--// section -->
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |