320 lines
11 KiB
Plaintext
320 lines
11 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(){
|
|
$('.select2').select2();
|
|
/* $('#Year_ex' ).select2();
|
|
$('#Year' ).select2();
|
|
$('#expSortCd' ).select2();
|
|
$('#expStatusCd' ).select2();
|
|
$('#expCompanyCd' ).select2();
|
|
$('#expAreaCd' ).select2();
|
|
|
|
$('#projectNo' ).select2();
|
|
$('#busUsersDeptId').select2();
|
|
$('#regUserId' ).select2();
|
|
$('#vehicelUsed' ).select2(); */
|
|
|
|
$("#btnSearch").click(function(){
|
|
var expense_Year = $("#Year_ex").val();
|
|
|
|
$("#page").val("1");
|
|
fn_search();
|
|
});
|
|
$("#btnApply").click(function(){
|
|
fn_apply("","regist");
|
|
});
|
|
|
|
$(".btnApprovalDetail").click(function(){
|
|
var approvalObjId = $(this).attr("data-APPROVAL_OBJID");
|
|
var routeObjId = $(this).attr("data-ROUTE_OBJID");
|
|
//Swal.fire("approvalObjId : "+approvalObjId+", routeObjId : "+routeObjId);
|
|
var params = "?approvalObjId="+approvalObjId;
|
|
params += "&routeObjId="+routeObjId;
|
|
//Swal.fire("params : "+params);
|
|
window.open("/approval/approvalDetail.do"+params,"approvalDetailPopup","width=650 height=400 menubar=no status=no");
|
|
});
|
|
});
|
|
|
|
function fn_search(){
|
|
document.form1.action = "/costMgmt/expenseList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_expenseSearch(expense_Year){
|
|
document.form1.action = "/costMgmt/expenseList.do?Year="+expense_Year;
|
|
document.form1.submit();
|
|
}
|
|
|
|
function fn_apply(objId,val){
|
|
var param = "&" + $("#form1").serialize();
|
|
var url = "/costMgmt/expenseApply.do";
|
|
|
|
if(objId != ""){
|
|
url = "/costMgmt/expenseApplyDetail.do";
|
|
}
|
|
|
|
window.open(url+"?objId="+objId+"&insertVal="+val+param, "", "width=1200, height=850");
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<form name="form1" id="form1" action="" method="post">
|
|
<input type="hidden" name="delKey" id="delKey">
|
|
<div class="content-box">
|
|
<div class="content-box-s">
|
|
<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_ex" id="Year_ex" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
<c:forEach begin="${sysYear-4}" end="${sysYear+1}" var="req_year">
|
|
<%-- <option value="${req_year}">${req_year}</option> --%>
|
|
<option value="${req_year}" ${param.Year eq req_year ? 'selected':'' }>${req_year}</option>
|
|
</c:forEach>
|
|
</select>
|
|
</td>
|
|
<td><label for="expSortCd">구분</label></td>
|
|
<td>
|
|
<select name="expSortCd" id="expSortCd" required reqTitle="구분" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.expSortCd}
|
|
</select>
|
|
</td>
|
|
<td><label for="expSortCd">출장목적</label></td>
|
|
<td>
|
|
<select name="busContent" id="busContent" required reqTitle="출장목적" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.busContent}
|
|
</select>
|
|
</td>
|
|
<td><label for="projectNo">Project No.</label></td>
|
|
<td>
|
|
<select name="projectNo" id="projectNo" required reqTitle="Project No" type="select" style="width:200px;" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.projectNo}
|
|
</select>
|
|
</td>
|
|
<td><label for="busUsersDeptId">팀명</label></td>
|
|
<td>
|
|
<select name="busUsersDeptId" id="busUsersDeptId" required reqTitle="팀명" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.busUsersDeptId}
|
|
</select>
|
|
</td>
|
|
<td><label for="regUserId">작성자</label></td>
|
|
<td>
|
|
<select name="regUserId" id="regUserId" required reqTitle="작성자" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.regUserId}
|
|
</select>
|
|
</td>
|
|
<td><label for="expStatusCd">단계</label></td>
|
|
<td>
|
|
<select name="expStatusCd" id="expStatusCd" required reqTitle="단계" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.expStatusCd}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<td><label for="expCompanyCd">업체명</label></td>
|
|
<td>
|
|
<select name="expCompanyCd" id="expCompanyCd" required reqTitle="업체명" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.expCompanyCd}
|
|
</select>
|
|
</td>
|
|
<td><label for="expAreaCd">지역</label></td>
|
|
<td>
|
|
<select name="expAreaCd" id="expAreaCd" required reqTitle="지역" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.expAreaCd}
|
|
</select>
|
|
</td>
|
|
<td><label for="vehicelUsed">이용차량</label></td>
|
|
<td>
|
|
<select name="vehicelUsed" id="vehicelUsed" required reqTitle="이용차량" type="select" class="select2" autocomplete="off">
|
|
<option value="">선택</option>
|
|
${code_map.vehicelUsed}
|
|
</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">
|
|
<input type="button" value="경비신청" class="plm_btns" id="btnApply" name="btnApply">
|
|
</div>
|
|
</div>
|
|
<div class="plm_table_wrap">
|
|
<div>
|
|
<div style="width: 100%;">
|
|
<div>
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<!-- <col width="5px"> -->
|
|
<col width="15px">
|
|
<col width="10px">
|
|
<col width="15px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="15px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
<col width="10px">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<!-- <td>No.</td> -->
|
|
<td>신청번호</td>
|
|
<td>구분</td>
|
|
<td>Project No</td>
|
|
<td>단계</td>
|
|
<td>출장목적</td>
|
|
<td>업체명</td>
|
|
<td>출장지</td>
|
|
<td colspan="2">출장기간</td>
|
|
<td>정산금액</td>
|
|
<td>팀명</td>
|
|
<td>작성자</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.SEQ}</td> --%>
|
|
<td><a href="#" onclick="fn_apply('${info.EXPENSE_MASTER_OBJID}','');return false;">${info.EXPENSE_ID}</a></td>
|
|
<td>${info.EXP_SORT_NAME}</td>
|
|
<td>${info.PROJECT_NO}</td>
|
|
<td>${info.EXP_STATUS_NAME}</td>
|
|
<td>${info.BUS_CONTENT_NAME}</td>
|
|
<td>${info.EXP_COMPANY_NAME}</td>
|
|
<td>${info.EXP_AREA_NAME}</td>
|
|
<td>${info.BNS_START_DATE}</td>
|
|
<td>${info.BNS_END_DATE}</td>
|
|
<td style="text-align:right; padding:0px 8px 0px 0px;"><fmt:formatNumber value="${info.SETTLE_AMOUNT}"/></fmt></td>
|
|
<td>${info.BUS_USERS_DEPT_NAME}</td>
|
|
<td>${info.REG_USER_NAME}</td>
|
|
<td>${info.REG_DATE}</td>
|
|
<td>
|
|
<c:if test="${!empty info.APPR_STATUS}">
|
|
<a href="#" class="btnApprovalDetail" data-APPROVAL_OBJID="${info.APPROVAL_OBJID}" data-ROUTE_OBJID="${info.ROUTE_OBJID}">
|
|
${info.APPR_STATUS}</a>
|
|
</c:if>
|
|
|
|
<c:if test="${empty info.APPR_STATUS}">
|
|
작성중
|
|
</c:if>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr><td colspan="14" 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>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |