|
@@ -0,0 +1,283 @@
|
|
|
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
|
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
|
+<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
|
|
+<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
+ pageEncoding="UTF-8"%>
|
|
|
+<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
|
+<script>
|
|
|
+var registDay = "<c:out value='${registDay}'/>";
|
|
|
+
|
|
|
+$(function() {
|
|
|
+ $("input.date-no-req").daterangepicker({
|
|
|
+ singleDatePicker : true,
|
|
|
+ showDropdowns : true,
|
|
|
+ locale : {
|
|
|
+ format : "YYYY-MM-DD"
|
|
|
+ },
|
|
|
+ autoUpdateInput: false,
|
|
|
+ maxDate : new Date()
|
|
|
+ }).on('apply.daterangepicker', function(ev, picker) {
|
|
|
+ $(this).val(picker.startDate.format('YYYY-MM-DD'));
|
|
|
+
|
|
|
+ $(this).trigger( "change" );
|
|
|
+ }).on( "change", function(){
|
|
|
+ if( $( this ).val() > getNowYmd() ) {
|
|
|
+ $( this ).val( getNowYmd() );
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $("input.date-no-req").on( "change", function(){
|
|
|
+ console.log( $( this ).val() );
|
|
|
+
|
|
|
+ $("input[name='registDay']").daterangepicker({
|
|
|
+ singleDatePicker : true,
|
|
|
+ showDropdowns : true,
|
|
|
+ locale : {
|
|
|
+ format : "YYYY-MM-DD"
|
|
|
+ },
|
|
|
+ autoUpdateInput: false
|
|
|
+ }).on('apply.daterangepicker', function(ev, picker) {
|
|
|
+ $(this).val(picker.startDate.format('YYYY-MM-DD'));
|
|
|
+ $(this).trigger( "change" );
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ if( registDay != "" ){
|
|
|
+ $("input[name='registDay']").val( registDay );
|
|
|
+ }
|
|
|
+
|
|
|
+});
|
|
|
+
|
|
|
+function getExcel(){
|
|
|
+ if( $.trim( $( "#downMemo" ).val() ) == "" ){
|
|
|
+ alertBox({ txt : "사유를 입력해주세요" });
|
|
|
+ $( ".modal-header>.modal-title h3" ).remove();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var newForm = $( "#searchForm" ).clone();
|
|
|
+
|
|
|
+ newForm.attr( "id", "excelForm" );
|
|
|
+ newForm.attr( "method", "post" );
|
|
|
+ newForm.attr( "action", "./excel" );
|
|
|
+ newForm.attr( "target", "_blank" );
|
|
|
+ newForm.hide();
|
|
|
+
|
|
|
+ $( document.body ).append( newForm );
|
|
|
+ newForm.append( $("#downMemo").clone() );
|
|
|
+ newForm.submit();
|
|
|
+ $( "button.close" ).click();
|
|
|
+ $( "#downMemo" ).val( "" );
|
|
|
+ $( "#excelForm" ).remove();
|
|
|
+
|
|
|
+}
|
|
|
+</script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="modal fade" id="excelDownMemo" tabindex="-1" role="dialog" aria-hidden="true" data-memoid="">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">생활치료센터 현황 리스트 Excel 다운로드</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
|
|
+ aria-hidden="true">×</span> </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body m-3">
|
|
|
+ <table class="table mobile-table">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width: 20%">
|
|
|
+ <col style="width: 80%">
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th><span class="fix">*</span>다운로드 사유</th>
|
|
|
+ <td>
|
|
|
+ <div class="form-row">
|
|
|
+ <textarea id="downMemo" name="downMemo" class="form-control" cols="" rows="6" placeholder="" maxlength="200"></textarea>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="addMemoTools modal-footer">
|
|
|
+ <button type="button" class="btn btn-outline-primary" data-dismiss="modal">취소</button>
|
|
|
+ <button type="button" class="btn btn-primary" onclick="getExcel();">제출 후 다운로드</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="wrapper">
|
|
|
+ <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
|
|
|
+
|
|
|
+ <div class="main">
|
|
|
+ <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
|
|
|
+
|
|
|
+ <main class="content">
|
|
|
+ <div class="container-fluid p-0">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-12 col-lg-6">
|
|
|
+ <h1 class="h3 mb-3">생활치료센터 현황</h1>
|
|
|
+ </div>
|
|
|
+ <div class="col-12 col-lg-6 text-right">
|
|
|
+ <nav aria-label="breadcrumb">
|
|
|
+ <ol class="breadcrumb">
|
|
|
+ <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
|
|
|
+ <li class="breadcrumb-item">생활치료센터 현황</li>
|
|
|
+ </ol>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-12">
|
|
|
+ <div class="card">
|
|
|
+ <form action="?" method="get" id="searchForm">
|
|
|
+ <div class="card-body">
|
|
|
+ <table class="table mobile-table">
|
|
|
+ <colgroup>
|
|
|
+ <col style="width:10%">
|
|
|
+ <col style="width:20%">
|
|
|
+ <col style="width:10%">
|
|
|
+ <col style="width:50%">
|
|
|
+ <col style="width:10%">
|
|
|
+ </colgroup>
|
|
|
+ <tr>
|
|
|
+ <th>지역</th>
|
|
|
+ <td>
|
|
|
+ <select class="custom-select form-control" name="locationCode">
|
|
|
+ <option value="">전체</option>
|
|
|
+ <c:forEach var="i" items="${locationList}">
|
|
|
+ <option value="${i.locationCode}" <c:if test="${i.locationCode eq locationCode}"> selected="selected"</c:if>><c:out value="${i.locationName}"/></option>
|
|
|
+
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <th>생활치료센터명</th>
|
|
|
+ <td>
|
|
|
+ <input type="text" class="form-control" name="centerName" value="${centerName}" placeholder="검색어를 입력하세요.">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th>검색일자</th>
|
|
|
+ <td>
|
|
|
+ <div class="form-group mb-xl-0">
|
|
|
+ <input class="form-control date-no-req" type="text" name="registDay" value="" onKeyup="inputYMDNumber(this);" autocomplete="off" placeholder="검색 일자">
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ <button class="btn btn-primary">검색</button>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-12">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body">
|
|
|
+ <div class="row mb-3">
|
|
|
+ <div class="col-6">전체 :
|
|
|
+ <fmt:formatNumber value="${total}" pattern="#,###" />
|
|
|
+ </div>
|
|
|
+ <div class="col-6 text-right">
|
|
|
+ <button class="btn btn-success" data-toggle="modal" data-target="#excelDownMemo">Excel 다운로드</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table class="table table-striped text-center">
|
|
|
+ <colgroup>
|
|
|
+ <col style=" width: 4%; ">
|
|
|
+ <col style=" width: 6%; ">
|
|
|
+ <col style=" width: 6%; ">
|
|
|
+ <col style=" width: 4%; ">
|
|
|
+ <col style=" width: 4%; ">
|
|
|
+ <col style=" width: 4%; ">
|
|
|
+ <col style=" width: 4%; ">
|
|
|
+ </colgroup>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th rowspan="2">번호</th>
|
|
|
+ <th rowspan="2">소관</th>
|
|
|
+ <th rowspan="2">생활치료센터명</th>
|
|
|
+ <th rowspan="2">정원</th>
|
|
|
+ <th rowspan="2">현원</th>
|
|
|
+ <th rowspan="2">가동률</th>
|
|
|
+ <th rowspan="2">입실가능인원</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+
|
|
|
+ <tbody>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${total > 0}">
|
|
|
+ <c:forEach var="l" items="${list}" varStatus="lStatus">
|
|
|
+
|
|
|
+ <c:set var="pageNum" value="${ lStatus.index + ( (page - 1) * pageSize ) }" />
|
|
|
+ <tr <c:if test="${pageNum == 0}">style="background:#fbfd93;font-weight:600;text-align:center;"</c:if>>
|
|
|
+ <td><c:choose><c:when test="${pageNum == 0}">총계</c:when><c:otherwise>${pageNum}</c:otherwise></c:choose></td>
|
|
|
+ <td <c:if test="${pageNum != 0}">class="text-left"</c:if>>
|
|
|
+ <c:out value="${l.centerName}" />
|
|
|
+ </td>
|
|
|
+ <td><c:out value="${l.locationName}" /><c:if test="${l.locationName eq ''}">-</c:if>
|
|
|
+ <td><fmt:formatNumber value="${l.staffCapacity}" pattern="#,###" /></td>
|
|
|
+ <td><fmt:formatNumber value="${l.staffTotal}" pattern="#,###" /></td>
|
|
|
+ <td><c:out value="${l.rate}" />%</td>
|
|
|
+ <td><fmt:formatNumber value="${l.staff1}" pattern="#,###" /></td>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff4}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff5}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff6}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff7}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff8}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff9}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff10}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff11}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <c:if test="${gubun eq 'm'}"> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff12}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff13}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff14}" pattern="#,###" /></td> --%>
|
|
|
+<%-- <td><fmt:formatNumber value="${l.staff15}" pattern="#,###" /></td> --%>
|
|
|
+<%-- </c:if> --%>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <tr>
|
|
|
+ <td colspan="20">등록된 생활치료센터 현황이 없습니다.</td>
|
|
|
+ </tr>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div class="row mt-5">
|
|
|
+ <div class="col-12 col-lg-6 mb-2">
|
|
|
+ </div>
|
|
|
+ <div class="col-12 col-lg-6 mb-2">
|
|
|
+ <jsp:include page="${data._INCLUDE}/paging.jsp" flush="true">
|
|
|
+ <jsp:param name="firstPageNo" value="${paging.firstPageNo}" />
|
|
|
+ <jsp:param name="prevPageNo" value="${paging.prevPageNo}" />
|
|
|
+ <jsp:param name="startPageNo" value="${paging.startPageNo}" />
|
|
|
+ <jsp:param name="pageNo" value="${paging.pageNo}" />
|
|
|
+ <jsp:param name="endPageNo" value="${paging.endPageNo}" />
|
|
|
+ <jsp:param name="nextPageNo" value="${paging.nextPageNo}" />
|
|
|
+ <jsp:param name="finalPageNo" value="${paging.finalPageNo}" />
|
|
|
+ <jsp:param name="preFix" value="${paging.preFix}" />
|
|
|
+ <jsp:param name="url" value="${paging.url}" />
|
|
|
+ <jsp:param name="total" value="${paging.totalCount}" />
|
|
|
+ </jsp:include>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </main>
|
|
|
+
|
|
|
+ <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</body>
|
|
|
+</html>
|