224 lines
7.9 KiB
Plaintext
224 lines
7.9 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"%>
|
|
<%
|
|
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 type="text/javascript">
|
|
$(document).ready(function(){
|
|
$("#Year").select2();
|
|
|
|
$("#btnSearch").click(function(){
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
});
|
|
|
|
function fn_search(){
|
|
document.form1.action = "/costMgmt/overheadCostMgmtList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
/* function fn_costDetail(projectNo, deptId){
|
|
window.open("/costMgmt/expenseList.do?projectMgmtObjid=&projectNo="+projectNo+"&busUsersDeptId="+deptId, "", "width=1800, height=800");
|
|
} */
|
|
//팝업에서 화면전환으로 수정
|
|
function fn_costDetail(projectNo, deptId){
|
|
document.form1.action = "/costMgmt/expenseList.do?projectMgmtObjid=&projectNo="+projectNo+"&busUsersDeptId="+deptId;
|
|
document.form1.submit();
|
|
}
|
|
|
|
//영업활동등록 상세
|
|
function fn_projectConceptDetail(objId){
|
|
window.open("/ordermgmt/ordermgmtUpdateFormPopup.do?objId="+objId, "", "width=650, height=930");
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="delKey" id="delKey">
|
|
<div>
|
|
<div class="plm_menu_name">
|
|
<h2>
|
|
<span>원가관리_경비관리</span>
|
|
</h2>
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td><label for="Year">연도</label></td>
|
|
<td>
|
|
<select name="Year" id="Year">
|
|
<option value="">선택</option>
|
|
<c:forEach begin="${sysYear-4}" end="${sysYear+1}" var="req_year">
|
|
<option value="${req_year}" ${param.Year eq req_year ? 'selected':'' }>${req_year}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<section class="contents_page_basic_margin">
|
|
<div class="btn_wrap">
|
|
<div class="plm_btn_wrap">
|
|
<input type="button" value="조회" class="plm_btns" id="btnSearch" name="btnSearch">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<div style="overflow-x: scroll;">
|
|
<div style="width: 100%;">
|
|
<div style="overflow-y: scroll; height: 500px;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="15px">
|
|
<col width="20px">
|
|
<col width="10px">
|
|
<col width="15px">
|
|
<col width="20px">
|
|
<col width="65px">
|
|
<col width="15px">
|
|
|
|
<col width="20px">
|
|
<col width="15px">
|
|
<col width="20px">
|
|
<col width="20px">
|
|
<col width="20px">
|
|
<col width="20px">
|
|
<col width="20px">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td colspan="9">Project</td>
|
|
<td colspan="7">팀별 경비(Sum)</td>
|
|
</tr>
|
|
<tr class="plm_sub_thead">
|
|
<td>구분</td>
|
|
<td>No.</td>
|
|
<td>상관번호</td>
|
|
<td>의미</td>
|
|
<td>지역</td>
|
|
<td>고객사</td>
|
|
<td>수주 Item</td>
|
|
<td>Name</td>
|
|
<td>납기일</td>
|
|
|
|
<td>계</td>
|
|
<td>목표</td>
|
|
<td>설계</td>
|
|
<td>전장</td>
|
|
<td>SE</td>
|
|
<td>구매</td>
|
|
<td>생산</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="info" items="${LIST}" varStatus="status">
|
|
<tr>
|
|
<td>${info.PROJECT_DIVISION_NAME}</td>
|
|
<td title="${info.PROJECT_NO}"><a href="#" onclick="javascript:fn_projectConceptDetail('${info.ORDER_MGMT_OBJID}')">${info.PROJECT_NO}</a></td>
|
|
<td title="${info.PROJECT_DERIVATION_NO}"><a href="#" onclick="javascript:fn_projectConceptDetail('${info.PROJECT_DERIVATION_NO}')">${info.PROJECT_DERIVATION_NO_NAME}</a></td>
|
|
<td>${info.PROJECT_MEAN_NAME}</td>
|
|
<td title="${info.REGION_NAME}">${info.REGION_NAME}</td>
|
|
<td title="${info.CUSTOMER_NAME}">${info.CUSTOMER_NAME}</td>
|
|
<td style="text-align:center; padding:0px 0px 0px 0px;">${info.ORDER_NAME}</td>
|
|
<td style="text-align:left; padding:0px 0px 0px 15px;">${info.ORDER_TITLE}</td>
|
|
<td>${info.DEL_DATE}</td>
|
|
|
|
<td>${info.COST_A}</td>
|
|
<td><fmt:formatNumber value="${info.GOAL_P}" pattern="0.0"/>%</td>
|
|
<td><a href="#" onclick="javascript:fn_costDetail('${info.PROJECT_NO}', 'DD'); return false;">${info.COST1}</a></td>
|
|
<td><a href="#" onclick="javascript:fn_costDetail('${info.PROJECT_NO}', 'EP'); return false;">${info.COST2}</a></td>
|
|
<td><a href="#" onclick="javascript:fn_costDetail('${info.PROJECT_NO}', 'SE'); return false;">${info.COST3}</a></td>
|
|
<td><a href="#" onclick="javascript:fn_costDetail('${info.PROJECT_NO}', 'PD'); return false;">${info.COST4}</a></td>
|
|
<td><a href="#" onclick="javascript:fn_costDetail('${info.PROJECT_NO}', 'ED'); return false;">${info.COST5}</a></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr><td colspan="13" align="center">조회된 데이터가 없습니다.</td></tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="pdm_page">
|
|
<input type="hidden" name="page" id="page" value="${nPage}">
|
|
<c:if test="${!empty LIST}">
|
|
<div class="page_pro">
|
|
<table style="text-align: center;">
|
|
<tr>
|
|
<c:choose>
|
|
<c:when test="${nPage > 1}">
|
|
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
|
|
<td> </td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">prev</td>
|
|
<td> </td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
<c:forEach var="v" begin="${nPage>5?nPage-5:1}" end="${nPage>5?nPage+4:10}" step="1" varStatus="status">
|
|
<c:if test="${status.index -1 < maxPage}">
|
|
<c:choose>
|
|
<c:when test="${status.index eq nPage}">
|
|
<td><a href="#" class="now_page">${nPage}</a></td>
|
|
<td> </td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></td>
|
|
<td> </td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:if>
|
|
</c:forEach>
|
|
<c:choose>
|
|
<c:when test="${nPage < maxPage}">
|
|
<td><a href="javascript:fnc_goNext('${nextPage}');">next</a></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">next</td>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</tr>
|
|
</table>
|
|
<c:if test="${!empty LIST}">
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</c:if>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
|
|
</section>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |