324 lines
13 KiB
Plaintext
324 lines
13 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>
|
|
::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
</style>
|
|
<script>
|
|
$(document).ready(function(){
|
|
|
|
$("._table1").scroll(function () {
|
|
$("._table2").scrollLeft($("._table1").scrollLeft());
|
|
});
|
|
$("._table2").scroll(function () {
|
|
$("._table1").scrollLeft($("._table2").scrollLeft());
|
|
});
|
|
|
|
//날짜
|
|
_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();
|
|
}
|
|
});
|
|
|
|
//체크박스 전체선택/전체해제
|
|
$("#allCheck").click(function(){
|
|
if($("#allCheck").prop("checked")) {
|
|
$("input[type=checkbox]").prop("checked",true);
|
|
} else {
|
|
$("input[type=checkbox]").prop("checked",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
|
|
});
|
|
}
|
|
}
|
|
|
|
function fn_delete(){
|
|
if(0 < $("input[name=chk_objId]:checked").length){
|
|
if(confirm("선택한 정보를 삭제하시겠습니까?")){
|
|
var param = $("#form1").serialize();
|
|
$.ajax({
|
|
type : "POST",
|
|
url : "/contractMgmt/deleteContractMngInfo.do",
|
|
data: param,
|
|
dataType:"json",
|
|
success:function(data){
|
|
if(data.result == 'true'){
|
|
Swal.fire("삭제되었습니다.");
|
|
fn_search();
|
|
};
|
|
}
|
|
,error: function(jqxhr, status, error){
|
|
}
|
|
});
|
|
}
|
|
}else{
|
|
Swal.fire("선택한 항목이 없습니다.");
|
|
}
|
|
}
|
|
|
|
function fn_search(){
|
|
document.form1.action = "/purchaseOrder/deliveryMngStatus.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
//프로젝트의 form,detail 팝업을 보여준다.
|
|
function openProjectFormPopUp(objId){
|
|
window.open("","projectFormPopUp","width=1150, height=676");
|
|
var params = "?actionType=regist"
|
|
var url = "/project/projectFormPopUp.do"+params;
|
|
if("" != objId){
|
|
url = "/project/projectDetailPopUp.do";
|
|
}
|
|
var form = document.form1;
|
|
form.objId.value = objId;
|
|
form.action = url;
|
|
form.target = "projectFormPopUp";
|
|
form.submit();
|
|
}
|
|
|
|
</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="">프로젝트번호</label></td>
|
|
<td><select name="project_no" id="project_no" class="select2" autocomplete="off" style="width:190px;"><option value="">선택</option>${code_map.project_no}</select></td>
|
|
|
|
<%-- <td><label for="defect_reason">불량사유</label></td>
|
|
<td>
|
|
<select name="defect_reason" id="defect_reason" style="" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.defect_reason}
|
|
</select>
|
|
</td> --%>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
|
|
<div class="in_table_scroll_wrap _table1" style="height:53px;width:100%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="25px">
|
|
<col width="40px">
|
|
<col width="100px">
|
|
<col width="130px">
|
|
<col width="180px">
|
|
<col width="100px">
|
|
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
|
|
<col width="70px">
|
|
<col width="70px">
|
|
<col width="70px">
|
|
<col width="70px">
|
|
|
|
<col width="70px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="90px">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td rowspan="2"><input type="checkbox" id="allCheck"></td>
|
|
<td colspan="5">프로젝트정보</td>
|
|
<td colspan="6">발주내역</td>
|
|
<td colspan="4">입고현황</td>
|
|
<td colspan="7">수입검사결과(불량현황)</td>
|
|
</tr>
|
|
<tr class="plm_sub_thead">
|
|
<td>년도</td>
|
|
<td>고객사</td>
|
|
<td>프로젝트명</td>
|
|
<td>유닛명</td>
|
|
<td>프로젝트번호</td>
|
|
|
|
<td>구매BOM</td>
|
|
<td>전체품목수</td>
|
|
<td>발주품목수</td>
|
|
<td>발주율(%)</td>
|
|
<td>미발주품수</td>
|
|
<td><!-- 구매BOM -->총수량</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>
|
|
<div class="in_table_scroll_wrap _table2" style="height:630px;width:100%; border-bottom:none;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="25px">
|
|
<col width="40px">
|
|
<col width="100px">
|
|
<col width="130px">
|
|
<col width="180px">
|
|
<col width="100px">
|
|
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
|
|
<col width="70px">
|
|
<col width="70px">
|
|
<col width="70px">
|
|
<col width="70px">
|
|
|
|
<col width="70px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="60px">
|
|
<col width="90px">
|
|
</colgroup>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td><input style="width: 15px; height: 15px" type="checkbox" value="${info.OBJID}" name="chk_objId" id="chk_objId" data-objId="${info.OBJID}"></td>
|
|
<td style="text-align:center;" title="${info.CM_YEAR}">${info.CM_YEAR}</td>
|
|
<td style="text-align:center;" title="${info.CUSTOMER_NAME}">${info.CUSTOMER_NAME}</td>
|
|
<td style="text-align:center;" title="${info.CUSTOMER_PROJECT_NAME}">${info.CUSTOMER_PROJECT_NAME}</td>
|
|
<td style="text-align: left; padding-left: 3px;" title="${info.UNIT_PART_NAME}">${info.UNIT_PART_NAME}</td>
|
|
<td style="text-align:center;" title="${info.PROJECT_NO}">${info.PROJECT_NO}</td>
|
|
|
|
<!-- 발주내역 -->
|
|
<td style="text-align:center;" title="${info.BOM_REPORT_OBJID}">
|
|
<a href="#" class="File file_icon" onclick="javascript:fn_centerPopup(1800, 900, '/salesMng/salesBomReportFormPopup.do?objId=${info.SALES_OBJID}&parent_objId=${info.BOM_REPORT_OBJID}&actType=view', 'salesBomReportFormPopup');"></a>
|
|
</td>
|
|
<td style="text-align: right; padding-right: 10px;" title="${info.TOTAL_BOM_PART_CNT}">${info.TOTAL_BOM_PART_CNT}</td>
|
|
<td style="text-align: right; padding-right: 10px;" title="${info.TOTAL_PO_PART_CNT}">${info.TOTAL_PO_PART_CNT}</td>
|
|
<td style="text-align: right; padding-right: 10px;" title="${info.PO_RATE}">${info.PO_RATE}</td>
|
|
<td style="text-align: right; padding-right: 10px;" title="${info.NON_PO_PART_CNT}">${info.NON_PO_PART_CNT}</td>
|
|
<td style="text-align: right; padding-right: 10px;" title="${info.TOTAL_BOM_PART_QTY_SUM}"><fmt:formatNumber value="${info.TOTAL_BOM_PART_QTY_SUM}" pattern="#,###" /></td>
|
|
<!-- 입고현황 -->
|
|
<%--
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.TOTAL_PO_QTY}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" >${info.TOTAL_PO_QTY}/${info.TOTAL_PO_NEW_QTY}</td>
|
|
--%>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.TOTAL_PO_NEW_QTY}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.TOTAL_PO_RE_QTY}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.DELIVERY_QTY}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.NON_DELIVERY_QTY}" pattern="#,###" /></td>
|
|
|
|
<!-- 수입검사결과(불량현황) -->
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.TOTAL_DEFECT_QTY}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" >${info.DELIVERY_RATE}</td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.DEFECT_QTY_1}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.DEFECT_QTY_2}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.DEFECT_QTY_3}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.DEFECT_QTY_4}" pattern="#,###" /></td>
|
|
<td style="text-align: center; padding-right: 10px;" ><fmt:formatNumber value="${info.TOTAL_DEFECT_PRICE}" pattern="#,###" /></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr>
|
|
<td colspan="23" align="center">조회된 데이터가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
<div class="pdm_page">${PAGE_HTML}</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |