218 lines
8.2 KiB
Plaintext
218 lines
8.2 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" %>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
<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>
|
|
<style>
|
|
.select2-selection__choice {
|
|
font-size: 11px;
|
|
background-color: #fff !important;
|
|
border: none !important;
|
|
margin-right: 0px !important;
|
|
}
|
|
.select2-selection__choice__remove {
|
|
display: contents !important;
|
|
}
|
|
.select2-container .select2-selection--multiple {
|
|
min-height: 20px !important;
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
margin-top: 3.5px !important;
|
|
}
|
|
.select2-selection__rendered {
|
|
height: 18px !important;
|
|
}
|
|
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
|
overflow: auto !important;
|
|
}
|
|
</style>
|
|
<script>
|
|
$(document).ready(function(){
|
|
_fnc_datepick();
|
|
$('.select2').select2();
|
|
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
$("input").keyup(function(e){
|
|
if(e.keyCode == 13){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
fn_search(true);
|
|
});
|
|
|
|
var columns = [
|
|
{title:'OBJID', field:'OBJID', visible:false, frozen:true},
|
|
{title:"프로젝트정보", headerHozAlign:'center', frozen:true,
|
|
columns:[
|
|
{headerHozAlign:'center', hozAlign:'left', width:'120', title:'프로젝트번호', field:'PROJECT_NO'},
|
|
{headerHozAlign:'center', hozAlign:'center', width:'90', title:'제품구분', field:'PRODUCT_NAME'},
|
|
{headerHozAlign:'center', hozAlign:'left', width:'150', title:'품번', field:'PART_NO'},
|
|
{headerHozAlign:'center', hozAlign:'left', width:'180', title:'품명', field:'PART_NAME'},
|
|
{headerHozAlign:'center', hozAlign:'left', /*width:'130',*/ title:'고객사', field:'CUSTOMER_NAME'}
|
|
]
|
|
},
|
|
{title:"전체(BOM기준)", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'전체품목수', field:'TOTAL_ITEM_CNT',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
},
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'전체수량', field:'TOTAL_QTY',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
}
|
|
]
|
|
},
|
|
{title:"발주현황", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'발주품목수', field:'PO_ITEM_CNT',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
},
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'발주수량', field:'PO_QTY',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
}
|
|
]
|
|
},
|
|
{title:"미발주현황", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'미발주품목수', field:'NON_PO_ITEM_CNT',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
},
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'미발주수량', field:'NON_PO_QTY',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
}
|
|
]
|
|
},
|
|
{title:"입고현황", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'입고품목수', field:'DLV_ITEM_CNT',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
},
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'입고수량', field:'DLV_QTY',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
}
|
|
]
|
|
},
|
|
{title:"미입고현황", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'미입고품목수', field:'NON_DLV_ITEM_CNT',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
},
|
|
{headerHozAlign:'center', hozAlign:'right', width:'100', title:'미입고수량', field:'NON_DLV_QTY',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false}
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
function fn_search(isFirst){
|
|
var selectedValues = $("#project_no").val();
|
|
$('<input>').attr({
|
|
type: 'hidden',
|
|
name: 'project_nos',
|
|
value: selectedValues
|
|
}).appendTo('#form1');
|
|
|
|
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/purchaseOrder/projectPurchaseDeliveryStatusGridList.do", columns, false, null, null, null, false);
|
|
}
|
|
|
|
function _fnc_datepick(){
|
|
var $dateinput = $("input.date_icon");
|
|
for(var i=0; i<$dateinput.length; i++){
|
|
$dateinput.eq(i).attr("size","10");
|
|
$dateinput.eq(i).datepicker({
|
|
changeMonth:true,
|
|
changeYear:true
|
|
});
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="actionType" value="" />
|
|
<div class="min_part_enroll">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name_gdnsi">
|
|
<h2>
|
|
<span>프로젝트별 발주/입고 현황</span>
|
|
</h2>
|
|
<div class="btnArea">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
|
|
</div>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="Year">년도</label></td>
|
|
<td>
|
|
<select name="Year" id="Year" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<c:forEach begin="${sysYear-4}" end="${sysYear}" var="req_year">
|
|
<option value="${req_year}"${param.Year eq req_year ? 'selected':'' }>${req_year}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="customer_objid">고객사</label></td>
|
|
<td>
|
|
<select name="customer_objid" id="customer_objid" style="width:180px" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.customer_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="project_no">프로젝트번호</label></td>
|
|
<td>
|
|
<select name="project_no" id="project_no" style="width:300px;" class="select2" autocomplete="off" multiple="multiple">
|
|
<option value="">선택</option>
|
|
${code_map.project_no}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="product">제품구분</label></td>
|
|
<td>
|
|
<select name="product" id="product" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.product_cd}
|
|
</select>
|
|
</td>
|
|
|
|
<td><label for="part_no">품번</label></td>
|
|
<td>
|
|
<input type="text" name="part_no" id="part_no" value="${param.part_no}" style="width:130px" />
|
|
</td>
|
|
|
|
<td><label for="part_name">품명</label></td>
|
|
<td>
|
|
<input type="text" name="part_name" id="part_name" value="${param.part_name}" style="width:200px" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |