list.jsp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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
  50. href="javscript:;">Home</a></li>
  51. <li class="breadcrumb-item active">환자관리</li>
  52. </ol>
  53. </nav>
  54. </div>
  55. </div>
  56. <div class="row">
  57. <div class="col-12">
  58. <div class="card">
  59. <form action="?" method="get">
  60. <div class="card-body">
  61. <table class="table mobile-table">
  62. <colgroup>
  63. <col style="width: 10%">
  64. <col style="width: 40%">
  65. <col style="width: 10%">
  66. <col style="width: 40%">
  67. </colgroup>
  68. <tr>
  69. <th>환자상태</th>
  70. <td>
  71. <select class="custom-select form-control" id="inputState" name="inputState">
  72. <option value="ALL">전체</option>
  73. <option value="H" <c:if test="${inputState eq 'H'}"> selected="selected"</c:if>>입소</option>
  74. <option value="D" <c:if test="${inputState eq 'D'}"> selected="selected"</c:if>>퇴소</option>
  75. <option value="T" <c:if test="${inputState eq 'T'}"> selected="selected"</c:if>>지정병원 이송</option>
  76. <option value="E" <c:if test="${inputState eq 'E'}"> selected="selected"</c:if>>기타</option>
  77. </select></td>
  78. <th>환자명</th>
  79. <td>
  80. <input type="text" class="form-control" id="inputPassword4" name="patientName" placeholder="환자명" value="<c:out value="${patientName}" />">
  81. </td>
  82. </tr>
  83. <tr>
  84. <th>입소일자</th>
  85. <td>
  86. <div class="row">
  87. <div class="col-5">
  88. <div class="form-group mb-xl-0">
  89. <input class="form-control" type="text" name="startDate" value="" autocomplete="off" placeholder="검색 시작일자">
  90. </div>
  91. </div>
  92. <div
  93. class="col-2 text-center">
  94. ~</div>
  95. <div class="col-5">
  96. <div class="form-group mb-xl-0">
  97. <input class="form-control" type="text" name="endDate" value="" autocomplete="off" placeholder="검색 종료일자">
  98. </div>
  99. </div>
  100. </div>
  101. </td>
  102. <td colspan="2">
  103. <button class="btn btn-primary">검색</button>
  104. </td>
  105. </tr>
  106. </table>
  107. </div>
  108. </form>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="row">
  113. <div class="col-12">
  114. <div class="card">
  115. <div class="card-body">
  116. <div class="row mb-3">
  117. <div class="col-6">전체 :
  118. <fmt:formatNumber value="${total}" pattern="#,###" />
  119. </div>
  120. <div class="col-6 text-right">
  121. <a class="btn btn-primary" target="_blank" href="/store/manual/survey">입소자 문진표 서식 다운로드</a>
  122. <c:if test="${sesGroupIdx ne '1'}">
  123. <button class="btn btn-primary" onclick="location.href='./new';">신규환자등록</button>
  124. </c:if>
  125. </div>
  126. </div>
  127. <div class="table-responsive">
  128. <table class="table table-striped text-center">
  129. <colgroup>
  130. <col style=" width: 11.1%; ">
  131. <c:if test="${sesGroupIdx eq '1'}">
  132. <col style=" width: 11.1%; ">
  133. </c:if>
  134. <col style=" width: 11.1%; ">
  135. <col style=" width: 11.1%; ">
  136. <col style=" width: 11.1%; ">
  137. <col style=" width: 11.1%; ">
  138. <col style=" width: 11.1%; ">
  139. <col style=" width: 11.1%; ">
  140. <col style=" width: 11.1%; ">
  141. </colgroup>
  142. <thead>
  143. <tr>
  144. <th>번호</th>
  145. <c:if test="${sesGroupIdx eq '1'}">
  146. <th>생활치료센터명</th>
  147. </c:if>
  148. <th>환자명</th>
  149. <th>성별</th>
  150. <th>나이</th>
  151. <th>호실</th>
  152. <th>입소일자</th>
  153. <th>격리해제 예정일</th>
  154. <th>상태</th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. <c:choose>
  159. <c:when test="${total > 0}">
  160. <c:forEach var="l" items="${item}" varStatus="lStatus">
  161. <c:set var="viewLink" value="./info?patientIdx=${l.patientIdx}" />
  162. <c:set var="pageNum" value="${ ( total - lStatus.index ) - ( (page - 1) * pageSize ) }" />
  163. <tr>
  164. <td><fmt:formatNumber value="${pageNum}" pattern="#,###" /></td>
  165. <c:if test="${sesGroupIdx eq '1'}">
  166. <td><c:out value="${l.centerName}" /></td>
  167. </c:if>
  168. <td>
  169. <a href="${viewLink}"><c:out value="${l.patientName}" /></a>
  170. </td>
  171. <td><c:out value="${l.gender}" /></td>
  172. <td><c:out value="${l.age}" /></td>
  173. <td>
  174. <c:if test="${l.wardNumber ne null and l.wardNumber ne ''}">
  175. <c:out value="${l.wardNumber}"/>동
  176. </c:if>
  177. <c:out value="${l.roomNumber}" />호
  178. </td>
  179. <td><c:out value="${l.hospitalizationDate}" /></td>
  180. <td>
  181. <c:if test="${l.disisolationDate eq null or l.disisolationDate eq ''}">
  182. -
  183. </c:if>
  184. <c:if test="${l.disisolationDate ne ''}">
  185. <fmt:parseDate var="dDate" value="${l.disisolationDate}" pattern="yyyy-MM-dd" />
  186. <c:set var="disisolationDate"><fmt:formatDate value="${dDate}" pattern="yyyy-MM-dd" /></c:set>
  187. <c:out value="${disisolationDate}" />
  188. </c:if>
  189. </td>
  190. <td><c:out value="${l.state}" /></td>
  191. </tr>
  192. </c:forEach>
  193. </c:when>
  194. <c:otherwise>
  195. <tr>
  196. <td colspan="9">등록된 환자가 없습니다.</td>
  197. </tr>
  198. </c:otherwise>
  199. </c:choose>
  200. </tbody>
  201. </table>
  202. </div>
  203. <div class="row mt-5">
  204. <div class="col-12 col-lg-6 mb-2">
  205. <!-- <select
  206. class="custom-select form-control col-md-2"
  207. id="inputState"
  208. name="inputState">
  209. <option value="success"
  210. selected="">전체</option>
  211. <option value="info">입소</option>
  212. <option value="warning">퇴소</option>
  213. </select> -->
  214. </div>
  215. <div class="col-12 col-lg-6 mb-2">
  216. <jsp:include page="${data._INCLUDE}/paging.jsp" flush="true">
  217. <jsp:param name="firstPageNo" value="${paging.firstPageNo}" />
  218. <jsp:param name="prevPageNo" value="${paging.prevPageNo}" />
  219. <jsp:param name="startPageNo" value="${paging.startPageNo}" />
  220. <jsp:param name="pageNo" value="${paging.pageNo}" />
  221. <jsp:param name="endPageNo" value="${paging.endPageNo}" />
  222. <jsp:param name="nextPageNo" value="${paging.nextPageNo}" />
  223. <jsp:param name="finalPageNo" value="${paging.finalPageNo}" />
  224. <jsp:param name="preFix" value="${paging.preFix}" />
  225. <jsp:param name="url" value="${paging.url}" />
  226. <jsp:param name="total" value="${paging.totalCount}" />
  227. </jsp:include>
  228. </div>
  229. </div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. <!-- 환자관리 END -->
  235. </div>
  236. </main>
  237. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  238. </div>
  239. </div>
  240. </body>
  241. </html>