123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <%@ 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(){
- $( "#editForm" ).validate({
- rules: {
- staff1: {
- number:true,
- digits:true
- },
- staff2: {
- number:true,
- digits:true
- },
- staff3: {
- number:true,
- digits:true
- },
- staff4: {
- number:true,
- digits:true
- },
- staff5: {
- number:true,
- digits:true
- },
- staff6: {
- number:true,
- digits:true
- },
- staff7: {
- number:true,
- digits:true
- },
- staff8: {
- number:true,
- digits:true
- },
- staff9: {
- number:true,
- digits:true
- },
- staff10: {
- number:true,
- digits:true
- },
- staff11: {
- number:true,
- digits:true
- }
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- ,staff12: {
- number:true,
- digits:true
- }
- ,staff13: {
- number:true,
- digits:true
- }
- ,staff14: {
- number:true,
- digits:true
- }
- ,staff15: {
- number:true,
- digits:true
- }
- </c:when>
- </c:choose>
- },
- onkeyup: function( element, event ) {
- $( element ).valid();
- },
- onfocusout: function (element) {
- $( element ).val( $.trim( $( element ).val() ) );
- $( element ).valid();
- },
- submitHandler: function(form) {
- form.submit();
- }
- });
- })
- </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>
- <form id="editForm" action="./staffupdate" method="post">
- <input type="hidden" name="registDay" value="<c:out value="${list.registDay}" />">
- <input type="hidden" name="gubun" value="<c:out value="${list.gubun}" />">
- <input type="hidden" name="statusFlag" value="<c:out value="${list.statusFlag}" />">
- <main class="content">
- <div class="container-fluid p-0">
- <div class="row">
- <div class="col-12 col-lg-6">
- <h1 class="h3 mb-3">생활치료센터 <c:if test="${list.gubun eq 'm'}">의료</c:if><c:if test="${list.gubun eq 'g'}">행정</c:if>인력 관리 ( ${list.registDay}<c:if test="${list.registDay eq null || list.registDay eq ''}">${nowYmd}</c:if> )</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"><c:if test="${list.gubun eq 'm'}">의료</c:if><c:if test="${list.gubun eq 'g'}">행정</c:if>인력 관리</li>
- </ol>
- </nav>
- </div>
- </div>
- <c:if test="${list.gubun eq 'm'}">
- <div class="row">
- <div class="col-12">
- <div class="card">
- <div class="card-body">
- <h5 class="text-info mb-3">정원 현황</h5>
- <div class="table-responsive">
- <table class="table table-striped text-center">
- <colgroup>
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- </colgroup>
- <thead>
- <tr>
- <th>구분</th>
- <th>생활치료센터 정원</th>
- <th>사용불가 인원</th>
- <th>사용불가 사유</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>정원</td>
- <td><input type="text" name="staffCapacity" class="form-control text-center" value="<c:out value="${list.staffCapacity}" />"></td>
- <td><input type="text" name="unavailableTotal" class="form-control text-center" value="<c:out value="${list.unavailableTotal}" />" placeholder="0"></td>
- <td><input type="text" name="unavailableNote" class="form-control text-left" placeholder="40자 까지 입력가능" maxlength="40" value="<c:out value="${list.unavailableNote}" />"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </c:if>
- <div class="row">
- <div class="col-12">
- <div class="card">
- <div class="card-body">
- <h5 class="text-info mb-3"><c:if test="${list.gubun eq 'm'}">협력병원</c:if><c:if test="${list.gubun eq 'g'}">행정</c:if> 인력 현황</h5>
- <div class="table-responsive">
- <table class="table table-striped text-center">
- <colgroup>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <col style=" width: 16%; ">
- <col style=" width: 16%; ">
- <col style=" width: 16%; ">
- <col style=" width: 16%; ">
- <col style=" width: 16%; ">
- <col style=" width: 16%; ">
- </c:when>
- </c:choose>
- </colgroup>
- <thead>
- <tr>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <th>구분</th>
- <th>의사</th>
- <th>간호사</th>
- <th>간호조무사</th>
- <th>임상병리사</th>
- <th>방사선사</th>
- <th>행정인력</th>
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <th>구분</th>
- <th>복지부</th>
- <th>지자체</th>
- <th>환경부</th>
- <th>소방청</th>
- <th>기타</th>
- </c:when>
- </c:choose>
- </tr>
- </thead>
- <tbody>
- <tr>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <td>인원</td>
- <td><input type="text" name="staff1" class="form-control text-center" value="<c:out value="${list.staff1}" />"></td>
- <td><input type="text" name="staff2" class="form-control text-center" value="<c:out value="${list.staff2}" />"></td>
- <td><input type="text" name="staff3" class="form-control text-center" value="<c:out value="${list.staff3}" />"></td>
- <td><input type="text" name="staff4" class="form-control text-center" value="<c:out value="${list.staff4}" />"></td>
- <td><input type="text" name="staff5" class="form-control text-center" value="<c:out value="${list.staff5}" />"></td>
- <td><input type="text" name="staff6" class="form-control text-center" value="<c:out value="${list.staff6}" />"></td>
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <td>인원</td>
- <td><input type="text" name="staff1" class="form-control text-center" value="<c:out value="${list.staff1}" />"></td>
- <td><input type="text" name="staff2" class="form-control text-center" value="<c:out value="${list.staff2}" />"></td>
- <td><input type="text" name="staff3" class="form-control text-center" value="<c:out value="${list.staff3}" />"></td>
- <td><input type="text" name="staff4" class="form-control text-center" value="<c:out value="${list.staff4}" />"></td>
- <td><input type="text" name="staff5" class="form-control text-center" value="<c:out value="${list.staff5}" />"></td>
- </c:when>
- </c:choose>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-12">
- <div class="card">
- <div class="card-body">
- <h5 class="text-info mb-3">공공 인력 현황</h5>
- <div class="table-responsive">
- <table class="table table-striped text-center">
- <colgroup>
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- </colgroup>
- <thead>
- <tr>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <th>구분</th>
- <th>공보의</th>
- <th>군의관</th>
- <th>간호사관생도</th>
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <th>구분</th>
- <th>국방부</th>
- <th>경찰청</th>
- <th>소방청</th>
- </c:when>
- </c:choose>
- </tr>
- </thead>
- <tbody>
- <tr>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <td>인원</td>
- <td><input type="text" name="staff7" class="form-control text-center" value="<c:out value="${list.staff7}" />"></td>
- <td><input type="text" name="staff8" class="form-control text-center" value="<c:out value="${list.staff8}" />"></td>
- <td><input type="text" name="staff9" class="form-control text-center" value="<c:out value="${list.staff9}" />"></td>
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <td>인원</td>
- <td><input type="text" name="staff6" class="form-control text-center" value="<c:out value="${list.staff6}" />"></td>
- <td><input type="text" name="staff7" class="form-control text-center" value="<c:out value="${list.staff7}" />"></td>
- <td><input type="text" name="staff8" class="form-control text-center" value="<c:out value="${list.staff8}" />"></td>
- </c:when>
- </c:choose>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-12">
- <div class="card">
- <div class="card-body">
- <h5 class="text-info mb-3">민간 인력 현황</h5>
- <div class="table-responsive">
- <table class="table table-striped text-center">
- <colgroup>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- <col style=" width: 14%; ">
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- <col style=" width: 25%; ">
- </c:when>
- </c:choose>
- </colgroup>
- <thead>
- <tr>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <th>구분</th>
- <th>민간모집의사</th>
- <th>민간모집간호사</th>
- <th>민간모집간호조무사</th>
- <th>민간모집임상병리사</th>
- <th>민간모집방사선사</th>
- <th>민간모집기타인력</th>
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <th>구분</th>
- <th>방역</th>
- <th>청소</th>
- <th>기타</th>
- </c:when>
- </c:choose>
- </tr>
- </thead>
- <tbody>
- <tr>
- <c:choose>
- <c:when test="${list.gubun eq 'm'}">
- <td>인원</td>
- <td><input type="text" name="staff10" class="form-control text-center" value="<c:out value="${list.staff10}" />"></td>
- <td><input type="text" name="staff11" class="form-control text-center" value="<c:out value="${list.staff11}" />"></td>
- <td><input type="text" name="staff12" class="form-control text-center" value="<c:out value="${list.staff12}" />"></td>
- <td><input type="text" name="staff13" class="form-control text-center" value="<c:out value="${list.staff13}" />"></td>
- <td><input type="text" name="staff14" class="form-control text-center" value="<c:out value="${list.staff14}" />"></td>
- <td><input type="text" name="staff15" class="form-control text-center" value="<c:out value="${list.staff15}" />"></td>
- </c:when>
- <c:when test="${list.gubun eq 'g'}">
- <td>인원</td>
- <td><input type="text" name="staff9" class="form-control text-center" value="<c:out value="${list.staff9}" />"></td>
- <td><input type="text" name="staff10" class="form-control text-center" value="<c:out value="${list.staff10}" />"></td>
- <td><input type="text" name="staff11" class="form-control text-center" value="<c:out value="${list.staff11}" />"></td>
- </c:when>
- </c:choose>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row mt-3">
- <div class="col-12">
- <div class="text-right">
- <button type="submit" class="btn btn-primary w100">저장</button>
- </div>
- </div>
- </div>
- </div>
- </main>
- </form>
- <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
- </div>
- </div>
- </body>
- </html>
|