123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <%@ 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>
- $(function() {
- // Select2
- $(".select2").each(function() {
- $(this).wrap("<div class=\"position-relative\"></div>").select2({
- placeholder : "Select value",
- dropdownParent : $(this).parent()
- });
- })
- // Daterangepicker
- $("input[name=\"daterange\"]").daterangepicker({
- opens : "left"
- });
- $("input[name=\"datetimes\"]").daterangepicker({
- timePicker : true,
- opens : "left",
- startDate : moment().startOf("hour"),
- endDate : moment().startOf("hour").add(32, "hour"),
- locale : {
- format : "M/DD hh:mm A"
- }
- });
- $("input[name=\"startDate\"]").daterangepicker({
- singleDatePicker : true,
- showDropdowns : true,
- locale : {
- //format : "M/DD hh:mm A"
- format : "YYYY-MM-DD"
- }
- });
- $("input[name=\"endDate\"]").daterangepicker({
- singleDatePicker : true,
- showDropdowns : true,
- locale : {
- //format : "M/DD hh:mm A"
- format : "YYYY-MM-DD"
- }
- });
- // Datetimepicker
- $('#datetimepicker-minimum').datetimepicker();
- $('#datetimepicker-view-mode').datetimepicker({
- viewMode : 'years'
- });
- $('#datetimepicker-time').datetimepicker({
- format : 'LT'
- });
- $('#datetimepicker-date').datetimepicker({
- format : 'L'
- });
- var start = moment().subtract(29, "days");
- var end = moment();
- function cb(start, end) {
- $("#reportrange span").html(
- start.format("MMMM D, YYYY") + " - "
- + end.format("MMMM D, YYYY"));
- }
- $("#reportrange").daterangepicker(
- {
- startDate : start,
- endDate : end,
- ranges : {
- "Today" : [ moment(), moment() ],
- "Yesterday" : [ moment().subtract(1, "days"),
- moment().subtract(1, "days") ],
- "Last 7 Days" : [ moment().subtract(6, "days"),
- moment() ],
- "Last 30 Days" : [ moment().subtract(29, "days"),
- moment() ],
- "This Month" : [ moment().startOf("month"),
- moment().endOf("month") ],
- "Last Month" : [
- moment().subtract(1, "month").startOf("month"),
- moment().subtract(1, "month").endOf("month") ]
- }
- }, cb);
- cb(start, end);
- });
- </script>
- <script>
- $(function() {
- // Datatables basic
- $("#datatables-basic").DataTable({
- responsive : true
- });
- // Datatables with Buttons
- var datatablesButtons = $("#datatables-buttons").DataTable({
- responsive : true,
- lengthChange : !1,
- buttons : [ "copy", "print" ]
- });
- datatablesButtons.buttons().container().appendTo(
- "#datatables-buttons_wrapper .col-md-6:eq(0)");
- // Datatables with Multiselect
- var datatablesMulti = $("#datatables-multi").DataTable({
- responsive : true,
- select : {
- style : "multi"
- }
- });
- });
- </script>
- </head>
- <body>
- <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">
- <!-- 환지관리 START -->
- <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 active">환자관리</li>
- </ol>
- </nav>
- </div>
- </div>
- <div class="row">
- <div class="col-12">
- <div class="card">
- <form action="?" method="get">
- <div class="card-body">
- <table class="table mobile-table">
- <colgroup>
- <col style="width: 10%">
- <col style="width: 40%">
- <col style="width: 10%">
- <col style="width: 40%">
- </colgroup>
- <tr>
- <th>환자상태</th>
- <td>
- <select class="custom-select form-control" id="inputState" name="inputState">
- <option value="ALL">전체</option>
- <option value="Y" <c:if test="${inputState eq 'Y'}"> selected="selected"</c:if>>입소</option>
- <option value="N" <c:if test="${inputState eq 'N'}"> selected="selected"</c:if>>퇴소</option>
- </select></td>
- <th>환자명</th>
- <td>
- <input type="text" class="form-control" id="inputPassword4" name="patientName" placeholder="환자명" value="<c:out value="${patientName}" />">
- </td>
- </tr>
- <tr>
- <th>진료일</th>
- <td>
- <div class="row">
- <div class="col-5">
- <div class="form-group mb-xl-0">
- <input class="form-control" type="text" name="startDate" value="">
- </div>
- </div>
- <div
- class="col-2 text-center">
- ~</div>
- <div class="col-5">
- <div class="form-group mb-xl-0">
- <input class="form-control" type="text" name="endDate">
- </div>
- </div>
- </div>
- </td>
- <td colspan="2">
- <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">
- <div class="col-6">전체 :
- <fmt:formatNumber value="${total}" pattern="#,###" />
- </div>
- <div class="col-6 text-right">
- <button class="btn btn-primary" onclick="location.href='./new';">신규환자등록</button>
- </div>
- </div>
- <div class="table-responsive">
- <table class="table table-striped text-center">
- <colgroup>
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- <col style=" width: 11.1%; ">
- </colgroup>
- <thead>
- <tr>
- <th>번호</th>
- <th>환자명</th>
- <th>성별</th>
- <th>나이</th>
- <th>병동번호</th>
- <th>최종진료일시</th>
- <th>입소일자</th>
- <th>격지해제 예정일</th>
- <th>상태</th>
- </tr>
- </thead>
- <tbody>
- <c:choose>
- <c:when test="${total > 0}">
- <c:forEach var="l" items="${item}">
- <tr>
- <td><c:out value="${l.num}" /></td>
- <td><a
- href="./edit"><c:out value="${l.patientName}" /></a>
- </td>
- <td><c:out value="${l.gender}" /></td>
- <td><c:out value="${l.age}" /></td>
- <td><c:out value="${l.wardNumber}${l.roomNumber}" /></td>
- <td><c:out value="${l.finamClinicDate}" /></td>
- <td><c:out value="${l.hospitalizationDate}" /></td>
- <td>
- <c:if test="${l.disisolationDate eq null or l.disisolationDate eq ''}">
- -
- </c:if>
- <c:if test="${l.disisolationDate ne ''}">
- <c:out value="${l.disisolationDate}" />
- </c:if>
- </td>
- <td><c:out value="${l.state}" /></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan="9">등록된 환자가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- <div class="row mt-5">
- <div class="col-12 col-lg-6 mb-2">
- <!-- <select
- class="custom-select form-control col-md-2"
- id="inputState"
- name="inputState">
- <option value="success"
- selected="">전체</option>
- <option value="info">입소</option>
- <option value="warning">퇴소</option>
- </select> -->
- </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>
- <!-- 환자관리 END -->
- </div>
- </main>
- <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
- </div>
- </div>
- </body>
- </html>
|