246 lines
7.7 KiB
Plaintext
246 lines
7.7 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%@ page import="com.pms.common.utils.*"%>
|
|
<%@ 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>
|
|
|
|
<!-- //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}" />
|
|
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(document).ready(function(){
|
|
fnc_datepick();
|
|
});
|
|
|
|
$(".searchInput").keyup(function(e){
|
|
var keyCode = e.keyCode;
|
|
if(keyCode == 13){
|
|
fn_search();
|
|
}
|
|
});
|
|
|
|
$("#btnSearch").click(function(){
|
|
fn_search();
|
|
});
|
|
|
|
$(".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=620 menubar=no status=no");
|
|
});
|
|
|
|
//결재 유형에 따른 대상구분명을 가져와 보여준다.
|
|
$("X.targetTypeA").each( function() {
|
|
var code = $(this).text();
|
|
var codeName = fnc_getApprovalTargetName(code);
|
|
$(this).text(codeName);
|
|
} );
|
|
});
|
|
|
|
function fn_search(){
|
|
document.form1.action = "/approval/approvalList.do";
|
|
document.form1.submit();
|
|
}
|
|
|
|
function openApprovalPop(){
|
|
window.open("/approval/approvalDetail.do","specDataPopUp","width=650 height=730 menubar=no status=no");
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body class="backcolor">
|
|
<form name="form1" action="" method="post">
|
|
<div class="min_approval_list">
|
|
|
|
<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">
|
|
</div>
|
|
|
|
</div>
|
|
<div id="plmSearchZon">
|
|
<table>
|
|
<tr>
|
|
<td class="">
|
|
<label for="" class="">제목</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_approvalTitle" id="search_approvalTitle" class="searchInput" value="${param.search_approvalTitle}" style="width:250px;"/>
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">상신일</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_fromDate" id="search_fromDate" value="${param.search_fromDate}" class="input_date_solo searchInput"> ~ <input type="text" name="search_toDate" id="search_toDate" value="${param.search_toDate}" class="input_date_solo searchInput">
|
|
</td>
|
|
<td class="">
|
|
<label for="" class="">상신자</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="search_writerUserName" id="search_writerUserName" value="${param.search_writerUserName}" class="searchInput">
|
|
</td>
|
|
<%-- <td class="">
|
|
<label for="" class="">상태</label>
|
|
</td>
|
|
<td>
|
|
<select name="search_approvalStatus" id="search_approvalStatus">
|
|
<option value="">전체</option>
|
|
<option value="inProcess" ${param.search_approvalStatus eq 'inProcess'?'selected':''}>결재중</option>
|
|
<option value="complete" ${param.search_approvalStatus eq 'complete'?'selected':''}>결재완료</option>
|
|
</select>
|
|
</td> --%>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="contents_page_basic_margin">
|
|
<div class="in_table_scroll_wrap _table1" style="height:26px;width:99.4%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="5%">
|
|
<col width="10%">
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="10%">
|
|
<col width="20%">
|
|
<col width="10%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr class="plm_thead">
|
|
<td>No</td>
|
|
<td>결재번호</td>
|
|
<td>대상구분</td>
|
|
<td>제목</td>
|
|
<td>상신일</td>
|
|
<td>상신자</td>
|
|
<td>상태</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="in_table_scroll_wrap _table2" style="height:auto;width:100%;">
|
|
<table class="plm_table">
|
|
<colgroup>
|
|
<col width="5%">
|
|
<col width="10%">
|
|
<col width="10%">
|
|
<col width="*">
|
|
<col width="10%">
|
|
<col width="20%">
|
|
<col width="10%">
|
|
</colgroup>
|
|
<c:choose>
|
|
<c:when test="${!empty LIST}">
|
|
<c:forEach var="item" items="${LIST}" varStatus="status">
|
|
<tr style="text-align:center;">
|
|
<td>${item.RNUM}</td>
|
|
<td>${item.ROUTE_NO}</td>
|
|
<td class="targetType">${item.TARGET_NAME}</td>
|
|
<td class="align_l4"><a href="#" class="btnApprovalDetail" data-APPROVAL_OBJID="${item.APPROVAL_OBJID}" data-ROUTE_OBJID="${item.ROUTE_OBJID}">${item.APPROVAL_TITLE}</a></td>
|
|
<td>${item.ROUTE_REGDATE}</td>
|
|
<td>${item.WRITER_DEPT_NAME} ${item.WRITER_USER_NAME}</td>
|
|
<td>
|
|
<c:choose>
|
|
<c:when test="${item.STATUS eq 'inProcess'}">
|
|
결재중
|
|
</c:when>
|
|
<c:when test="${item.STATUS eq 'reject'}">
|
|
반려
|
|
</c:when>
|
|
<c:when test="${item.STATUS eq 'complete'}">
|
|
결재완료
|
|
</c:when>
|
|
<c:when test="${item.STATUS eq 'cancel'}">
|
|
결재취소
|
|
</c:when>
|
|
<c:otherwise>
|
|
${item.STATUS}
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<tr style="text-align:center;">
|
|
<td colspan="7">조회된 정보가 없습니다.</td>
|
|
</tr>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="pdm_page">
|
|
|
|
<%--
|
|
nPage ${nPage}
|
|
prevPage ${prevPage}
|
|
maxPage ${maxPage}
|
|
nextPage ${nextPage}
|
|
totalCount ${totalCount}
|
|
--%>
|
|
|
|
<input type="hidden" name="page" id="page" value="${nPage}">
|
|
<c:if test="${!empty LIST}">
|
|
<div class="page_pro">
|
|
<table>
|
|
<tr>
|
|
<c:choose>
|
|
<c:when test="${nPage > 1}">
|
|
<td><a href="javascript:fnc_goPrev('${prevPage}');">prev</a></td>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td class="no_more_page">prev</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>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<td><a href="javascript:fnc_goPage('${status.index}');">${status.index}</a></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>
|
|
<p id="adminPageCount">총 ${totalCount}건</p>
|
|
</div>
|
|
</c:if>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |