307 lines
12 KiB
Plaintext
307 lines
12 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;
|
|
} */
|
|
.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(){
|
|
|
|
$("._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);
|
|
}
|
|
});
|
|
|
|
fn_search(true);
|
|
});
|
|
|
|
var columns = [
|
|
{title:'OBJID', field:'OBJID' ,visible: false , frozen: true},
|
|
{title:'SBR_OBJID', field:'SBR_OBJID' ,visible: false , frozen: true},
|
|
{title:"프로젝트정보", headerHozAlign:'center', frozen:true, //고객정보
|
|
columns:[
|
|
/* {headerHozAlign : 'center', hozAlign : 'center', width : '60', title : '년도', field : 'CM_YEAR' }, */
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '110', title : '고객사', field : 'CUSTOMER_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '140', title : '프로젝트명', field : 'CUSTOMER_PROJECT_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '200', title : '유닛명', field : 'UNIT_PART_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '100', title : '프로젝트번호', field : 'PROJECT_NO' }
|
|
],
|
|
},
|
|
{title:"발주내역", headerHozAlign:'center', //고객정보
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '80', title : '구매BOM', field : 'TOTAL_BOM_PART_CNT',
|
|
formatter:fnc_subInfoValueFormatter,
|
|
cellClick:function(e, cell){
|
|
var objId = fnc_checkNull(cell.getData().SALES_OBJID);
|
|
var parent_objId = fnc_checkNull(cell.getData().BOM_REPORT_OBJID);
|
|
fn_salesBomReportFormPopup(objId, parent_objId);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '100', title : '전체품목수', field : 'TOTAL_BOM_PART_CNT' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '100', title : '발주품목수', field : 'TOTAL_PO_PART_CNT' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '90', title : '발주율(%)', field : 'PO_RATE',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '90', title : '미발주품수', field : 'NON_PO_PART_CNT' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '90', title : '총수량', field : 'TOTAL_BOM_PART_QTY_SUM' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
}
|
|
],
|
|
},
|
|
{title:"입고현황", headerHozAlign:'center',
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '95', title : '발주수량(신)', field : 'TOTAL_PO_NEW_QTY' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '95', title : '발주수량(재)', field : 'TOTAL_PO_RE_QTY' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '90', title : '입고수량', field : 'DELIVERY_QTY' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '90', title : '미입고수량', field : 'NON_DELIVERY_QTY' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
}
|
|
],
|
|
},
|
|
{title:"수입검사결과(불량현황)", headerHozAlign:'center', //고객정보
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '부적합수량', field : 'TOTAL_DEFECT_QTY',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '90', title : '불량률(%)', field : 'DELIVERY_RATE' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '80', title : '설계오류', field : 'DEFECT_QTY_1' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '80', title : '제작불량', field : 'DEFECT_QTY_2',
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '80', title : '구매오류', field : 'DEFECT_QTY_3' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '80', title : '오품반입', field : 'DEFECT_QTY_4' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'right', width : '80', title : '손실비용', field : 'TOTAL_DEFECT_PRICE' ,
|
|
formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false }
|
|
}
|
|
],
|
|
}
|
|
];
|
|
|
|
//var grid;
|
|
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/deliveryMngStatusGridList.do", columns, false, null, null, null, true);
|
|
}
|
|
|
|
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_old(){
|
|
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();
|
|
}
|
|
|
|
function fn_salesBomReportFormPopup(objId, parent_objId){
|
|
var popup_width = 1900;
|
|
var popup_height = 900;
|
|
var objId = objId;
|
|
var parent_objId = parent_objId;
|
|
var url = "/salesMng/salesBomReportFormPopup.do?objId="+objId+"&parent_objId="+parent_objId+"&actType=view";
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
|
|
}
|
|
|
|
</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>
|
|
|
|
<%-- <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>
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |