list.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  2. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  3. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
  4. <%@ page language="java" contentType="text/html; charset=UTF-8"
  5. pageEncoding="UTF-8"%>
  6. <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
  7. <script>
  8. var startDate = "<c:out value='${startDate}'/>";
  9. var endDate = "<c:out value='${endDate}'/>";
  10. $(function() {
  11. $("input[name=\"startDate\"]").daterangepicker({
  12. singleDatePicker : true,
  13. showDropdowns : true,
  14. // startDate : "<c:out value='${startDate}'/>",
  15. locale : {
  16. //format : "M/DD hh:mm A"
  17. format : "YYYY-MM-DD"
  18. }
  19. });
  20. $("input[name=\"endDate\"]").daterangepicker({
  21. singleDatePicker : true,
  22. showDropdowns : true,
  23. // startDate : "<c:out value='${endDate}'/>",
  24. locale : {
  25. //format : "M/DD hh:mm A"
  26. format : "YYYY-MM-DD"
  27. }
  28. });
  29. $("input[name=\"startDate\"]").val( startDate );
  30. $("input[name=\"endDate\"]").val( endDate );
  31. });
  32. </script>
  33. </head>
  34. <body>
  35. <div class="wrapper">
  36. <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
  37. <div class="main">
  38. <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
  39. <main class="content">
  40. <div class="container-fluid p-0">
  41. <!-- 환지관리 START -->
  42. <div class="row">
  43. <div class="col-12 col-lg-6">
  44. <h1 class="h3 mb-3">생활치료센터 관리</h1>
  45. </div>
  46. <div class="col-12 col-lg-6 text-right">
  47. <nav aria-label="breadcrumb">
  48. <ol class="breadcrumb">
  49. <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
  50. <li class="breadcrumb-item active">생활치료센터 관리</li>
  51. </ol>
  52. </nav>
  53. </div>
  54. </div>
  55. <div class="row">
  56. <div class="col-12">
  57. <div class="card">
  58. <form action="?" method="get">
  59. <div class="card-body">
  60. <table class="table mobile-table">
  61. <colgroup>
  62. <col style="width:10%">
  63. <col style="width:40%">
  64. <col style="width:10%">
  65. <col style="width:40%">
  66. </colgroup>
  67. <tr>
  68. <th>지역</th>
  69. <td>
  70. <select class="custom-select form-control" name="locationCode">
  71. <option value="">전체</option>
  72. <c:forEach var="i" items="${locationList}">
  73. <option value="${i.locationCode}" <c:if test="${i.locationCode eq locationCode}"> selected="selected"</c:if>><c:out value="${i.locationName}"/></option>
  74. </c:forEach>
  75. <!-- <option value="info">서울특별시</option> -->
  76. <!-- <option value="warning">경기도</option> -->
  77. </select>
  78. </td>
  79. <th>생활치료센터명</th>
  80. <td>
  81. <input type="text" class="form-control" name="centerName" placeholder="생활치료센터명" value="<c:out value="${centerName}" />">
  82. </td>
  83. </tr>
  84. <tr>
  85. <th>등록일</th>
  86. <td colspan="3">
  87. <div class="row">
  88. <div class="col-lg-4 col-sm-5">
  89. <div class="form-group calendar-bar mb-xl-0">
  90. <input class="form-control" type="text" name="startDate" placeholder="검색 시작일자" autocomplete="off">
  91. <i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
  92. </div>
  93. </div>
  94. <div class="col-lg-2 col-sm-2 text-center">
  95. ~
  96. </div>
  97. <div class="col-lg-4 col-sm-5">
  98. <div class="form-group calendar-bar mb-xl-0">
  99. <input class="form-control" type="text" name="endDate" placeholder="검색 종료일자" autocomplete="off">
  100. <i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
  101. </div>
  102. </div>
  103. <div class="col-sm-12 col-lg-2">
  104. <button class="btn btn-primary">검색</button>
  105. </div>
  106. </div>
  107. </td>
  108. </tr>
  109. </table>
  110. </div>
  111. </form>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="row">
  116. <div class="col-12">
  117. <div class="card">
  118. <div class="card-body">
  119. <div class="row mb-3">
  120. <div class="col-6">전체 :
  121. <fmt:formatNumber value="${total}" pattern="#,###" />
  122. </div>
  123. <div class="col-6 text-right">
  124. <button class="btn btn-primary" onclick="location.href='./new';">생활치료센터 신규 등록</button>
  125. </div>
  126. </div>
  127. <div class="table-responsive">
  128. <table class="table table-striped text-center">
  129. <colgroup>
  130. <col style=" width: 5%; ">
  131. <col style=" width: 14%; ">
  132. <col style=" width: 6%; ">
  133. <col style=" width: 12%; ">
  134. <col style=" width: 8%; ">
  135. <col style=" width: 8%; ">
  136. <col style=" width: 5%; ">
  137. <col style=" width: 6%; ">
  138. <col style=" width: 5%; ">
  139. <col style=" width: 5%; ">
  140. <col style=" width: 6%; ">
  141. <col style=" width: 8%; ">
  142. </colgroup>
  143. <thead>
  144. <tr>
  145. <th rowspan="2">번호</th>
  146. <th rowspan="2">생활치료센터명</th>
  147. <th rowspan="2">지역</th>
  148. <th rowspan="2">협력병원</th>
  149. <th rowspan="2">담당자(ID)</th>
  150. <th rowspan="2">전화번호</th>
  151. <th colspan="5">인원 수 (단위 : 명)</th>
  152. <th rowspan="2">등록일시</th>
  153. </tr>
  154. <tr>
  155. <th>의료진</th>
  156. <th>총 수용인원</th>
  157. <th>입소</th>
  158. <th>퇴소</th>
  159. <th>지정병원이송</th>
  160. </tr>
  161. </thead>
  162. <tbody>
  163. <c:choose>
  164. <c:when test="${total > 0}">
  165. <c:forEach var="l" items="${item}" varStatus="lStatus">
  166. <c:set var="viewLink" value="./info?centerCode=${l.centerCode}" />
  167. <c:set var="pageNum" value="${ ( total - lStatus.index ) - ( (page - 1) * pageSize ) }" />
  168. <tr>
  169. <td><fmt:formatNumber value="${pageNum}" pattern="#,###" /></td>
  170. <td>
  171. <a href="${viewLink}"><c:out value="${l.centerName}" /></a>
  172. </td>
  173. <td><c:out value="${l.locationName}" /></td>
  174. <td><c:out value="${l.cooperativeName}" /></td>
  175. <td><c:out value="${l.staffName}"/><br/><c:out value="(${l.staffId})" /></td>
  176. <td><c:out value="${l.staffPhoneNumber}"/></td>
  177. <td><c:out value="${l.totalStaff}" /></td>
  178. <td><c:out value="${l.totalCapacity}" /></td>
  179. <td><c:out value="${l.totalPatientH}" /></td>
  180. <td><c:out value="${l.totalPatientD}" /></td>
  181. <td><c:out value="${l.totalPatientT}" /></td>
  182. <td><c:out value="${l.createDate}" /></td>
  183. </tr>
  184. </c:forEach>
  185. </c:when>
  186. <c:otherwise>
  187. <tr>
  188. <td colspan="9">등록된 생활치료센터가 없습니다.</td>
  189. </tr>
  190. </c:otherwise>
  191. </c:choose>
  192. </tbody>
  193. </table>
  194. </div>
  195. <div class="row mt-5">
  196. <div class="col-12 col-lg-6 mb-2">
  197. </div>
  198. <div class="col-12 col-lg-6 mb-2">
  199. <jsp:include page="${data._INCLUDE}/paging.jsp" flush="true">
  200. <jsp:param name="firstPageNo" value="${paging.firstPageNo}" />
  201. <jsp:param name="prevPageNo" value="${paging.prevPageNo}" />
  202. <jsp:param name="startPageNo" value="${paging.startPageNo}" />
  203. <jsp:param name="pageNo" value="${paging.pageNo}" />
  204. <jsp:param name="endPageNo" value="${paging.endPageNo}" />
  205. <jsp:param name="nextPageNo" value="${paging.nextPageNo}" />
  206. <jsp:param name="finalPageNo" value="${paging.finalPageNo}" />
  207. <jsp:param name="preFix" value="${paging.preFix}" />
  208. <jsp:param name="url" value="${paging.url}" />
  209. <jsp:param name="total" value="${paging.totalCount}" />
  210. </jsp:include>
  211. </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. <!-- 환자관리 END -->
  218. </div>
  219. </main>
  220. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  221. </div>
  222. </div>
  223. </body>
  224. </html>