ERP-node/WebContent/WEB-INF/view/project/projectMgmtTotalList_back3.jsp

374 lines
17 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" %>
<%
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="connector" value="<%=connector %>" />
<script>
$(document).ready(function(){
$('.select2').select2();
$("#btnSearch").click(function(){
$("#page").val("1");
fn_search();
});
//SR자료등록 팝업
$(".File").click(function(){
var popup_width = 800;
var popup_height = 250;
var objId = $(this).attr("data-OBJID");
var docType =$(this).attr("data-docType");
var docTypeName = $(this).attr("data-docTypeName");
var params = "?targetObjId="+objId+"&docType="+docType+"&docTypeName="+docTypeName;
var url = "/projectConcept/FileRegistPopup.do"+params;
fn_centerPopup(popup_width, popup_height, url);
});
//엔터 조회
$("input").keyup(function(e){
if(e.keyCode == 13){
$("#page").val("1");
fn_search();
}
});
fn_search();
});
var columns = [
{headerHozAlign : 'center', hozAlign : 'left', width : '100', title : '프로젝트번호', field : 'PROJECT_NO' ,frozen:true,
formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var objid = fnc_checkNull(cell.getData().OBJID);
openProjectFormPopUp(objid);
}
},
{title:"프로젝트정보", headerHozAlign:'center', //고객정보
columns:[
{headerHozAlign : 'center', hozAlign : 'center', width : '80', title : '계약구분', field : 'CATEGORY_NAME' },
{headerHozAlign : 'center', hozAlign : 'center', width : '80', title : '차수', field : 'OVERHAUL_ORDER' },
{headerHozAlign : 'center', hozAlign : 'left', width : '120', title : '고객사', field : 'CUSTOMER_NAME' },
{headerHozAlign : 'center', hozAlign : 'left', width : '90', title : '제품구분', field : 'PRODUCT_NAME' },
{headerHozAlign : 'center', hozAlign : 'left', width : '90', title : '기계형식', field : 'MECHANICAL_TYPE' },
{headerHozAlign : 'center', hozAlign : 'left', width : '200', title : '고객사프로젝트명', field : 'CUSTOMER_PROJECT_NAME' },
{headerHozAlign : 'center', hozAlign : 'left', width : '150', title : '당사프로젝트명', field : 'PROJECT_NAME' },
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '고객납기일', field : 'REQ_DEL_DATE' },
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '셋업지', field : 'SETUP' },
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '설비방향', field : 'FACILITY_NAME' },
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '설비타입', field : 'FACILITY_TYPE' },
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '설비길이', field : 'FACILITY_DEPTH' },
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : 'PM', field : 'PM_USER_NAME' },
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '제작공장', field : 'MANUFACTURE_PLANT_NAME' },
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '예상납기일', field : 'CONTRACT_DEL_DATE' }
],
},
{
title:'일정계획', headerHozAlign:'center',
columns:[
{
title:"종합", headerHozAlign:'center',
columns:[
{
title: '(G-Chart)',
field: 'TOTAL_RATE',
headerHozAlign: 'center', hozAlign: 'center', width:"6%",
formatter:fnc_subInfoValueFormatter,
cellClick:function(e, cell){
var objid = fnc_checkNull(cell.getData().OBJID);
wbs_popup(objid);
}
}
]
},
{
title:"설계", headerHozAlign:'center',
columns:[
{title: '계획시작일', field: 'DESIGN_PLAN_START',headerHozAlign: 'center', hozAlign: 'center', width:"6%",
/* formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
},
{title: '계획완료일', field: 'DESIGN_PLAN_END', headerHozAlign: 'center', hozAlign: 'center', width:"6%",
/* formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
}
]
},
{
title:"구매/입고", headerHozAlign:'center',
columns:[
{title: '계획시작일', field: 'PURCHASE_PLAN_START',headerHozAlign: 'center', hozAlign: 'center', width:"6%",
/* formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
},
{title: '계획완료일', field: 'PURCHASE_PLAN_END', headerHozAlign: 'center', hozAlign: 'center', width:"6%",
/* formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
}
]
},
{
title:"조립", headerHozAlign:'center',
columns:[
{title: '계획시작일', field: 'PRODUCE_PLAN_START',headerHozAlign: 'center', hozAlign: 'center', width:"6%",
/* formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
},
{title: '계획완료일', field: 'PRODUCE_PLAN_END', headerHozAlign: 'center', hozAlign: 'center', width:"6%",
/* formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
}
]
},
{
title:"검사", headerHozAlign:'center',
columns:[
{title: '계획시작일', field: 'MOLD_SUM_PAYMENT_PRICE',headerHozAlign: 'center', hozAlign: 'right', width:"6%",
/* formatter:fnc_createGridAnchorTag,
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
},
{title: '계획완료일', field: 'JIG_SUM_PAYMENT_PRICE', headerHozAlign: 'center', hozAlign: 'right', width:"6%",
/* formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false,},
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
}
]
},
{
title:"출고", headerHozAlign:'center',
columns:[
{title: '계획시작일', field: 'MOLD_SUM_PAYMENT_PRICE',headerHozAlign: 'center', hozAlign: 'right', width:"6%",
/* formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false,},
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
},
{title: '계획완료일', field: 'JIG_SUM_PAYMENT_PRICE', headerHozAlign: 'center', hozAlign: 'right', width:"6%",
/* formatter:"money", formatterParams:{thousand:",", symbolAfter:"p", precision:false,},
cellClick:function(e, cell){
var projectObjId = fnc_checkNull(cell.getData().OBJID);
var productObjId = fnc_checkNull(cell.getData().PROD_REL_OBJID);
var milestoneObjId = fnc_checkNull(cell.getData().MILESTONE_OBJID);
fn_openInvestmentCostPricePopUp(projectObjId,productObjId,milestoneObjId);
} */
}
]
}
]
}
];
//var grid;
function fn_search(){
_tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/project/projectMgmtTotalGridList.do", columns, false);
}
function wbs_popup(objId){
var popup_width = 1800;
var popup_height = 800;
var objId = objId;
var params = "?OBJID="+objId;
//var url = "/project/wbsTaskProductGanttFormPopUp.do"+params;
var url = "/project/wbsTaskProductGantt.do"+params;
fn_centerPopup(popup_width, popup_height, url);
}
//프로젝트의 form,detail 팝업을 보여준다.
function openProjectFormPopUp(objId){
var popup_width = 420;
var popup_height = 350;
var objId = objId;
var params = "?OBJID="+objId;
var url = "/project/projectmodifyPopUp.do"+params;
fn_centerPopup(popup_width, popup_height, url);
}
</script>
</head>
<body class="<%--bodyNoScrollX--%>">
<form name="form1" id="form1" action="" method="post">
<input type="hidden" name="actionType" value="" />
<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="project_no">프로젝트번호</label></td>
<td>
<select name="project_no" id="project_no" style="" class="select2" autocomplete="off">
<option value="">선택</option>
${code_map.project_no}
</select>
</td>
<td><label for="category_cd">계약구분</label></td>
<td>
<select name="category_cd" id="category_cd" style="" class="select2" autocomplete="off">
<option value="">선택</option>
${code_map.category_cd}
</select>
</td>
<td><label for="customer_objid">고객사</label></td>
<td>
<select name="customer_objid" id="customer_objid" style="" class="select2" autocomplete="off">
<option value="">선택</option>
${code_map.customer_cd}
</select>
</td>
<td><label for="product">제품구분</label></td>
<td>
<select name="product" id="product" style="" class="select2" autocomplete="off">
<option value="">선택</option>
${code_map.product_cd}
</select>
</td>
<td class="align_r">
<label>예상납기일</label>
</td>
<td>
<input type="text" name="contract_start_date" id="contract_start_date" style="width:90px;" autocomplete="off" value="${param.contract_start_date}" class="date_icon">~
<input type="text" name="contract_end_date" id="contract_end_date" style="width:90px;" autocomplete="off" value="${param.contract_end_date}" class="date_icon">
</td>
<td class="align_r">
<label>입고지</label>
</td>
<td>
<input type="text" name="location" id="location" style="width:150px;" autocomplete="off" value="${param.location}">
</td>
</tr>
<tr>
<td class="align_r">
<label>셋업지</label>
</td>
<td>
<input type="text" name="setup" id="setup" style="width:150px;" autocomplete="off" value="${param.setup}">
</td>
<td><label for="pm_user_id">PM</label></td>
<td>
<select name="pm_user_id" id="pm_user_id" style="" class="select2" autocomplete="off">
<option value="">선택</option>
${code_map.pm_user_id}
</select>
</td>
</tr>
</table>
</div>
<%@include file= "/WEB-INF/view/common/common_gridArea.jsp" %>
</div>
</div>
</form>
</body>
</html>