296 lines
8.9 KiB
Plaintext
296 lines
8.9 KiB
Plaintext
<%
|
|
/**
|
|
* 거래명세서 발행
|
|
* @since 2021.11.25
|
|
* @author min
|
|
* @version 1.0
|
|
*
|
|
* << 개정 이력 >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ---------------- --------------------- --------------------------------------------------------
|
|
* 2021.11.25 민상익 최초작성
|
|
**/
|
|
%>
|
|
<%@ 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="totalCount" value="${empty TOTAL_COUNT?0:TOTAL_COUNT}" />
|
|
<c:set var="maxPage" value="${empty MAX_PAGE_SIZE?1:MAX_PAGE_SIZE}" />
|
|
<c:set var="nPage" value="${empty param.page?1:param.page}" />
|
|
<c:set var="pageIndex" value="${(nPage-1)/10}" />
|
|
<c:set var="nextPage" value="${empty NEXT_PAGE?1:NEXT_PAGE}" />
|
|
<c:set var="prevPage" value="${empty PREV_PAGE?1:PREV_PAGE}" />
|
|
<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();
|
|
});
|
|
|
|
// 발행
|
|
$("#btnSave").click(function(){
|
|
fn_save();
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 검색
|
|
function fn_search(){
|
|
|
|
if ($.trim($('#condDivision').val()) === '' ){
|
|
Swal.fire('사업부를 선택 하세요');
|
|
$('#condDivision').focus();
|
|
return false;
|
|
}
|
|
|
|
if ($.trim($('#condSuVndCd').val()) === '' ){
|
|
Swal.fire('업체를 선택 하세요');
|
|
$('#condSuVndCd').focus();
|
|
return false;
|
|
}
|
|
document.form1.action = "/tradingStatement/pubTradingStatement.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
|
|
|
|
function fn_save(){
|
|
if ($.trim($('#condDivision').val()) === '' ){
|
|
Swal.fire('사업부를 선택 하세요');
|
|
$('#condDivision').focus();
|
|
return false;
|
|
}
|
|
|
|
if ($.trim($('#condSuVndCd').val()) === '' ){
|
|
Swal.fire('업체를 선택 하세요');
|
|
$('#condSuVndCd').focus();
|
|
return false;
|
|
}
|
|
|
|
if ($.trim($('#issueDt').val()) === '' ){
|
|
Swal.fire('발행일을 선택 하세요');
|
|
$('#issueDt').focus();
|
|
return false;
|
|
}
|
|
$.ajax({
|
|
url:"/tradingStatement/saveTradingStatement.do",
|
|
type:"POST",
|
|
data:$("#form1").serialize(),
|
|
dataType:"json",
|
|
success:function(data){
|
|
Swal.fire(data.RESULT.msg);
|
|
//fn_search();
|
|
|
|
},
|
|
error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
|
|
function chageLangSelect(){
|
|
document.form1.action = "/tradingStatement/deleteTemp1.do";
|
|
document.form1.submit();
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" id="form1" method="get" onsubmit="return false;">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>구매관리> 구매관리> 거래명세서 발행</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td class="align_r"><label for="" class="">사업부</label></td>
|
|
<td><select name="condDivision" id="condDivision" style="width: 120px;" class="select2" autocomplete="off" onchange="chageLangSelect()">
|
|
<option value="">전체</option>
|
|
<option value="41" ${param.condDivision eq '41' ? 'selected':'' }>크레인사업부</option>
|
|
<option value="42" ${param.condDivision eq '42' ? 'selected':'' }>실린더생산팀</option>
|
|
<option value="43" ${param.condDivision eq '43' ? 'selected':'' }>출고</option>
|
|
<option value="44" ${param.condDivision eq '44' ? 'selected':'' }>전장제작반</option>
|
|
<option value="50" ${param.condDivision eq '50' ? 'selected':'' }>특장사업부</option>
|
|
<option value="F0" ${param.condDivision eq 'F0' ? 'selected':'' }>정비사업부</option>
|
|
</select>
|
|
</td>
|
|
|
|
<td class="align_r"><label for="" class="">업체명</label></td>
|
|
<td><select name="condSuVndCd" id="condSuVndCd" style="width: 120px;" class="select2" autocomplete="off" onchange="chageLangSelect()">
|
|
<option value="">전체</option>
|
|
<c:forEach var="suVndCdList" items="${codeMap.suVndCdList}">
|
|
${suVndCdList}
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="" class="">발주일자</label></td>
|
|
<td colspan=""><input type="text" id="condFromOrderDate" name="condFromOrderDate" value="${condFromOrderDate}" class="date_icon"
|
|
style="width: 80px !important;" autocomplete="off">
|
|
~
|
|
<input type="text" id="condToOrderDate" name="condToOrderDate" value="${condToOrderDate}" class="date_icon"
|
|
style="width: 80px !important;" autocomplete="off"></td>
|
|
<td></td>
|
|
<td><label for="" class="">발행일</label></td>
|
|
<td colspan=""><input type="text" id=issueDt name="issueDt" class="date_icon" value="${param.issueDt}" style="width: 80px !important;" autocomplete="off"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<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="btnSave">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<div>
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="6%" />
|
|
<col width="5%" />
|
|
<col width="6%" />
|
|
|
|
<col width="8%" />
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
<col width="4%" />
|
|
<col width="6%" />
|
|
</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>
|
|
|
|
<td>불량수량</td>
|
|
<td>부족수량</td>
|
|
<td>납품수량</td>
|
|
|
|
<td>단가</td>
|
|
<td>금액</td>
|
|
</tr>
|
|
</thead>
|
|
<c:choose>
|
|
<c:when test="${empty LIST}">
|
|
<tr style="text-align:center;">
|
|
<td align="center" colspan="17">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:forEach var="item" items="${LIST}" varStatus="varStatus">
|
|
<tr>
|
|
<td>${item.ODORDERNO}</td>
|
|
<td>${item.PRODNM}</td>
|
|
<td>${item.IMITEMNO}</td>
|
|
|
|
<td>${item.IMITEMNM}</td>
|
|
<td>${item.IMITEMSPEC}</td>
|
|
<td>${item.IMMATERIAL}</td>
|
|
|
|
<td>${item.IMUNIT}</td>
|
|
<td>${item.RMDUEDT}</td>
|
|
<td>${item.RMORDERQTY}</td>
|
|
|
|
<td>${item.RMRCPTQTY}</td>
|
|
<td>${item.RMREMQTY}</td>
|
|
<td>${item.OIDELIVERYQTY}</td>
|
|
|
|
<td>${item.POORQTY}</td>
|
|
<td>${item.LACKQTY}</td>
|
|
<td>${item.ISQTY}</td>
|
|
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
</div><!--
|
|
<div class="pdm_page">
|
|
<div class="page_pro">
|
|
<table>
|
|
<tr>
|
|
<td><a href="javascript:fnc_goNext();">prev</a></td>
|
|
<td><a href="#" class="now_page">1</a></td>
|
|
<td><a href="javascript:fnc_goPage();">2</a></td>
|
|
<td><a href="javascript:fnc_goPage();">3</a></td>
|
|
<td><a href="javascript:fnc_goPage();">4</a></td>
|
|
<td><a href="javascript:fnc_goPage();">5</a></td>
|
|
<td><a href="javascript:fnc_goNext();">next</a></td>
|
|
</tr>
|
|
</table>
|
|
<p id="adminPageCount">총 10건</p>
|
|
</div>
|
|
</div>-->
|
|
|
|
|
|
|
|
|
|
<!--정보--></section>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |