list.jsp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. $(function() {
  9. // Select2
  10. $(".select2").each(function() {
  11. $(this).wrap("<div class=\"position-relative\"></div>").select2({
  12. placeholder : "Select value",
  13. dropdownParent : $(this).parent()
  14. });
  15. })
  16. // Daterangepicker
  17. $("input[name=\"daterange\"]").daterangepicker({
  18. opens : "left"
  19. });
  20. $("input[name=\"datetimes\"]").daterangepicker({
  21. timePicker : true,
  22. opens : "left",
  23. startDate : moment().startOf("hour"),
  24. endDate : moment().startOf("hour").add(32, "hour"),
  25. locale : {
  26. format : "M/DD hh:mm A"
  27. }
  28. });
  29. $("input[name=\"startDate\"]").daterangepicker({
  30. singleDatePicker : true,
  31. showDropdowns : true,
  32. locale : {
  33. //format : "M/DD hh:mm A"
  34. format : "YYYY-MM-DD"
  35. }
  36. });
  37. $("input[name=\"endDate\"]").daterangepicker({
  38. singleDatePicker : true,
  39. showDropdowns : true,
  40. locale : {
  41. //format : "M/DD hh:mm A"
  42. format : "YYYY-MM-DD"
  43. }
  44. });
  45. // Datetimepicker
  46. $('#datetimepicker-minimum').datetimepicker();
  47. $('#datetimepicker-view-mode').datetimepicker({
  48. viewMode : 'years'
  49. });
  50. $('#datetimepicker-time').datetimepicker({
  51. format : 'LT'
  52. });
  53. $('#datetimepicker-date').datetimepicker({
  54. format : 'L'
  55. });
  56. var start = moment().subtract(29, "days");
  57. var end = moment();
  58. function cb(start, end) {
  59. $("#reportrange span").html(
  60. start.format("MMMM D, YYYY") + " - "
  61. + end.format("MMMM D, YYYY"));
  62. }
  63. $("#reportrange").daterangepicker(
  64. {
  65. startDate : start,
  66. endDate : end,
  67. ranges : {
  68. "Today" : [ moment(), moment() ],
  69. "Yesterday" : [ moment().subtract(1, "days"),
  70. moment().subtract(1, "days") ],
  71. "Last 7 Days" : [ moment().subtract(6, "days"),
  72. moment() ],
  73. "Last 30 Days" : [ moment().subtract(29, "days"),
  74. moment() ],
  75. "This Month" : [ moment().startOf("month"),
  76. moment().endOf("month") ],
  77. "Last Month" : [
  78. moment().subtract(1, "month").startOf("month"),
  79. moment().subtract(1, "month").endOf("month") ]
  80. }
  81. }, cb);
  82. cb(start, end);
  83. });
  84. </script>
  85. <script>
  86. $(function() {
  87. // Datatables basic
  88. $("#datatables-basic").DataTable({
  89. responsive : true
  90. });
  91. // Datatables with Buttons
  92. var datatablesButtons = $("#datatables-buttons").DataTable({
  93. responsive : true,
  94. lengthChange : !1,
  95. buttons : [ "copy", "print" ]
  96. });
  97. datatablesButtons.buttons().container().appendTo(
  98. "#datatables-buttons_wrapper .col-md-6:eq(0)");
  99. // Datatables with Multiselect
  100. var datatablesMulti = $("#datatables-multi").DataTable({
  101. responsive : true,
  102. select : {
  103. style : "multi"
  104. }
  105. });
  106. });
  107. </script>
  108. </head>
  109. <body>
  110. <div class="wrapper">
  111. <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
  112. <div class="main">
  113. <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
  114. <main class="content">
  115. <div class="container-fluid p-0">
  116. <!-- 환지관리 START -->
  117. <div class="row">
  118. <div class="col-12 col-lg-6">
  119. <h1 class="h3 mb-3">환자관리</h1>
  120. </div>
  121. <div class="col-12 col-lg-6 text-right">
  122. <nav aria-label="breadcrumb">
  123. <ol class="breadcrumb">
  124. <li class="breadcrumb-item"><a
  125. href="javscript:;">Home</a></li>
  126. <li class="breadcrumb-item active">환자관리</li>
  127. </ol>
  128. </nav>
  129. </div>
  130. </div>
  131. <div class="row">
  132. <div class="col-12">
  133. <div class="card">
  134. <form action="?" method="get">
  135. <div class="card-body">
  136. <table class="table mobile-table">
  137. <colgroup>
  138. <col style="width: 10%">
  139. <col style="width: 40%">
  140. <col style="width: 10%">
  141. <col style="width: 40%">
  142. </colgroup>
  143. <tr>
  144. <th>환자상태</th>
  145. <td>
  146. <select class="custom-select form-control" id="inputState" name="inputState">
  147. <option value="ALL">전체</option>
  148. <option value="Y" <c:if test="${inputState eq 'Y'}"> selected="selected"</c:if>>입소</option>
  149. <option value="N" <c:if test="${inputState eq 'N'}"> selected="selected"</c:if>>퇴소</option>
  150. </select></td>
  151. <th>환자명</th>
  152. <td>
  153. <input type="text" class="form-control" id="inputPassword4" name="patientName" placeholder="환자명" value="<c:out value="${patientName}" />">
  154. </td>
  155. </tr>
  156. <tr>
  157. <th>진료일</th>
  158. <td>
  159. <div class="row">
  160. <div class="col-5">
  161. <div class="form-group mb-xl-0">
  162. <input class="form-control" type="text" name="startDate" value="">
  163. </div>
  164. </div>
  165. <div
  166. class="col-2 text-center">
  167. ~</div>
  168. <div class="col-5">
  169. <div class="form-group mb-xl-0">
  170. <input class="form-control" type="text" name="endDate">
  171. </div>
  172. </div>
  173. </div>
  174. </td>
  175. <td colspan="2">
  176. <button
  177. class="btn btn-primary">검색</button>
  178. </td>
  179. </tr>
  180. </table>
  181. </div>
  182. </form>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="row">
  187. <div class="col-12">
  188. <div class="card">
  189. <div class="card-body">
  190. <div class="row">
  191. <div class="col-6">전체 :
  192. <fmt:formatNumber value="${total}" pattern="#,###" />
  193. </div>
  194. <div class="col-6 text-right">
  195. <button class="btn btn-primary" onclick="location.href='./new';">신규환자등록</button>
  196. </div>
  197. </div>
  198. <div class="table-responsive">
  199. <table class="table table-striped text-center">
  200. <colgroup>
  201. <col style=" width: 11.1%; ">
  202. <col style=" width: 11.1%; ">
  203. <col style=" width: 11.1%; ">
  204. <col style=" width: 11.1%; ">
  205. <col style=" width: 11.1%; ">
  206. <col style=" width: 11.1%; ">
  207. <col style=" width: 11.1%; ">
  208. <col style=" width: 11.1%; ">
  209. <col style=" width: 11.1%; ">
  210. </colgroup>
  211. <thead>
  212. <tr>
  213. <th>번호</th>
  214. <th>환자명</th>
  215. <th>성별</th>
  216. <th>나이</th>
  217. <th>병동번호</th>
  218. <th>최종진료일시</th>
  219. <th>입소일자</th>
  220. <th>격지해제 예정일</th>
  221. <th>상태</th>
  222. </tr>
  223. </thead>
  224. <tbody>
  225. <c:choose>
  226. <c:when test="${total > 0}">
  227. <c:forEach var="l" items="${item}">
  228. <tr>
  229. <td><c:out value="${l.num}" /></td>
  230. <td><a
  231. href="./edit"><c:out value="${l.patientName}" /></a>
  232. </td>
  233. <td><c:out value="${l.gender}" /></td>
  234. <td><c:out value="${l.age}" /></td>
  235. <td><c:out value="${l.wardNumber}${l.roomNumber}" /></td>
  236. <td><c:out value="${l.finamClinicDate}" /></td>
  237. <td><c:out value="${l.hospitalizationDate}" /></td>
  238. <td>
  239. <c:if test="${l.disisolationDate eq null or l.disisolationDate eq ''}">
  240. -
  241. </c:if>
  242. <c:if test="${l.disisolationDate ne ''}">
  243. <c:out value="${l.disisolationDate}" />
  244. </c:if>
  245. </td>
  246. <td><c:out value="${l.state}" /></td>
  247. </tr>
  248. </c:forEach>
  249. </c:when>
  250. <c:otherwise>
  251. <tr>
  252. <td colspan="9">등록된 환자가 없습니다.</td>
  253. </tr>
  254. </c:otherwise>
  255. </c:choose>
  256. </tbody>
  257. </table>
  258. </div>
  259. <div class="row mt-5">
  260. <div class="col-12 col-lg-6 mb-2">
  261. <!-- <select
  262. class="custom-select form-control col-md-2"
  263. id="inputState"
  264. name="inputState">
  265. <option value="success"
  266. selected="">전체</option>
  267. <option value="info">입소</option>
  268. <option value="warning">퇴소</option>
  269. </select> -->
  270. </div>
  271. <div class="col-12 col-lg-6 mb-2">
  272. <jsp:include page="${data._INCLUDE}/paging.jsp" flush="true">
  273. <jsp:param name="firstPageNo" value="${paging.firstPageNo}" />
  274. <jsp:param name="prevPageNo" value="${paging.prevPageNo}" />
  275. <jsp:param name="startPageNo" value="${paging.startPageNo}" />
  276. <jsp:param name="pageNo" value="${paging.pageNo}" />
  277. <jsp:param name="endPageNo" value="${paging.endPageNo}" />
  278. <jsp:param name="nextPageNo" value="${paging.nextPageNo}" />
  279. <jsp:param name="finalPageNo" value="${paging.finalPageNo}" />
  280. <jsp:param name="preFix" value="${paging.preFix}" />
  281. <jsp:param name="url" value="${paging.url}" />
  282. <jsp:param name="total" value="${paging.totalCount}" />
  283. </jsp:include>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. <!-- 환자관리 END -->
  291. </div>
  292. </main>
  293. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  294. </div>
  295. </div>
  296. </body>
  297. </html>