160 lines
7.3 KiB
Plaintext
160 lines
7.3 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ page import="java.util.*" %>
|
|
<%@include file= "/init.jsp" %>
|
|
<c:set var="now" value="<%=new java.util.Date() %>"/>
|
|
<c:set var="sysYear"><fmt:formatDate value="${now}" pattern="yyyy" /></c:set>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title><%=Constants.SYSTEM_NAME%></title>
|
|
</head>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
|
|
fnc_changePaginationAndTotalCountArea();
|
|
$('.select2').select2();
|
|
fnc_datepick();
|
|
|
|
$("#customer_cd").change(function(){
|
|
//fnc_productUPGNEWList(this.value,"","upg_no", "");
|
|
fn_projectNameList(this.value, "project_name", "");
|
|
});
|
|
fn_projectNameList(this.value, "project_name", "");
|
|
|
|
$("#project_name").change(function(){
|
|
fn_UnitCodeList(this.value, "unit_code", "");
|
|
});
|
|
if("${param.customer_cd}"!=""){
|
|
fn_projectNameList("${param.customer_cd}", "project_name","");
|
|
$("#project_name").val("${param.project_name}");
|
|
}
|
|
//조회
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
|
|
fn_search();
|
|
});
|
|
var columns = [
|
|
{title:'OBJID', field:'OBJID' ,visible: false},
|
|
{title:'SBR_OBJID', field:'SBR_OBJID' ,visible: false},
|
|
{title:"프로젝트정보", headerHozAlign:'center', //고객정보
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '100', title : '프로젝트번호', field : 'PROJECT_NO' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '요청납기', field : 'REQ_DEL_DATE' },
|
|
//{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '계약납기', field : 'CONTRACT_DEL_DATE' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '수주회사', field : 'CONTRACT_COMPANY_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '제작공장', field : 'MANUFACTURE_PLANT_NAME' },
|
|
/* {headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '수주일', field : 'CONTRACT_DATE' },
|
|
{headerHozAlign : 'center', hozAlign : 'left', width : '150', title : 'PO계약 No', field : 'PO_NO' } */
|
|
],
|
|
},
|
|
{title:"구매BOM", headerHozAlign:'center', //고객정보
|
|
columns:[
|
|
{headerHozAlign : 'center', hozAlign : 'left', /* width : '90', */ title : '유닛명', field : 'UNIT_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : 'E-BOM', field : 'BOM_CNT',
|
|
formatter:fnc_subInfoValueFormatter,
|
|
cellClick:function(e, cell){
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
fn_StructurePopupLeft(objid);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '배포일', field : 'DEPLOY_DATE' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '설계담당자', field : 'WRITER1_NAME' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '구매BOM', field : 'SALES_PART_CNT',
|
|
formatter:fnc_subInfoValueFormatter,
|
|
cellClick:function(e, cell){
|
|
var objid = fnc_checkNull(cell.getData().OBJID);
|
|
var salesMngReportObjId = fnc_checkNull(cell.getData().SBR_OBJID);
|
|
fn_salesBomReportFormPopup(objid, salesMngReportObjId);
|
|
}
|
|
},
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '작성일', field : 'REGDATE2' },
|
|
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '구매담당자', field : 'WRITER2_NAME' },
|
|
],
|
|
}
|
|
];
|
|
|
|
//var grid;
|
|
function fn_search(){
|
|
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/salesMng/salesBomReportGridList.do", columns, true);
|
|
}
|
|
|
|
function fn_StructurePopupLeft(objId){
|
|
var popup_width = 1800;
|
|
var popup_height = 800;
|
|
var objId = objId;
|
|
var params = "?readonly=readonly&objId="+objId;
|
|
var url = "/partMng/structurePopupLeft.do"+params;
|
|
fn_centerPopup(popup_width, popup_height, url);
|
|
|
|
}
|
|
|
|
function fn_salesBomReportFormPopup(objId,salesMngReportObjId){
|
|
var popup_width = 1900;
|
|
var popup_height = 900;
|
|
var objId = objId;
|
|
var salesMngReportObjId = salesMngReportObjId;
|
|
var url = "/salesMng/salesBomReportFormPopup.do?objId="+salesMngReportObjId+"&parent_objId="+objId;
|
|
fn_centerPopup(popup_width, popup_height, url, 'salesMngReport');
|
|
|
|
}
|
|
</script>
|
|
<body>
|
|
<form name="hiddenForm" id="hiddenForm" method="post">
|
|
<input type="hidden" name="objId" id="objId">
|
|
<input type="hidden" name="actionType" id="actionType">
|
|
<input type="hidden" name="objIds" id="objIds">
|
|
</form>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<div class="plm_menu_name_gdnsi">
|
|
<h2>
|
|
<span>구매관리_구매BOM관리</span>
|
|
</h2>
|
|
<div class="btnArea">
|
|
<input type="button" class="plm_btns" value="조회" id="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="">고객사</label></td>
|
|
<td><select name="customer_cd" id="customer_cd" class="select2" autocomplete="off"><option value="">선택</option>${code_map.customer_cd}</select></td>
|
|
|
|
<td><label for="">프로젝트번호</label></td>
|
|
<td><select name="project_name" id="project_name" class="select2" style="" autocomplete="off"></td>
|
|
|
|
<td><label for="">유닛명</label></td>
|
|
<td><select name="unit_code" id="unit_code" class="select2" style="" autocomplete="off"></td>
|
|
|
|
<td class="label"><label for="">공통유닛명</label></td>
|
|
<td><input type="text" name="SEARCH_UNIT_NAME" id="SEARCH_UNIT_NAME"></td>
|
|
|
|
<td><label for="">구매담당자</label></td>
|
|
<td><select name="writer2_id" id="writer2_id" class="select2" autocomplete="off"><option value="">선택</option>${code_map.writer2_id}</select></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |