edit.jsp 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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. $( "#editForm" ).validate({
  10. rules: {
  11. staff1: {
  12. number:true,
  13. digits:true
  14. },
  15. staff2: {
  16. number:true,
  17. digits:true
  18. },
  19. staff3: {
  20. number:true,
  21. digits:true
  22. },
  23. staff4: {
  24. number:true,
  25. digits:true
  26. },
  27. staff5: {
  28. number:true,
  29. digits:true
  30. },
  31. staff6: {
  32. number:true,
  33. digits:true
  34. },
  35. staff7: {
  36. number:true,
  37. digits:true
  38. },
  39. staff8: {
  40. number:true,
  41. digits:true
  42. },
  43. staff9: {
  44. number:true,
  45. digits:true
  46. },
  47. staff10: {
  48. number:true,
  49. digits:true
  50. },
  51. staff11: {
  52. number:true,
  53. digits:true
  54. }
  55. <c:choose>
  56. <c:when test="${list.gubun eq 'm'}">
  57. ,staff12: {
  58. number:true,
  59. digits:true
  60. }
  61. ,staff13: {
  62. number:true,
  63. digits:true
  64. }
  65. ,staff14: {
  66. number:true,
  67. digits:true
  68. }
  69. ,staff15: {
  70. number:true,
  71. digits:true
  72. }
  73. </c:when>
  74. </c:choose>
  75. },
  76. onkeyup: function( element, event ) {
  77. $( element ).valid();
  78. },
  79. onfocusout: function (element) {
  80. $( element ).val( $.trim( $( element ).val() ) );
  81. $( element ).valid();
  82. },
  83. submitHandler: function(form) {
  84. form.submit();
  85. }
  86. });
  87. })
  88. </script>
  89. </head>
  90. <body>
  91. <div class="wrapper">
  92. <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
  93. <div class="main">
  94. <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
  95. <form id="editForm" action="./staffupdate" method="post">
  96. <input type="hidden" name="registDay" value="<c:out value="${list.registDay}" />">
  97. <input type="hidden" name="gubun" value="<c:out value="${list.gubun}" />">
  98. <input type="hidden" name="statusFlag" value="<c:out value="${list.statusFlag}" />">
  99. <main class="content">
  100. <div class="container-fluid p-0">
  101. <div class="row">
  102. <div class="col-12 col-lg-6">
  103. <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>
  104. </div>
  105. <div class="col-12 col-lg-6 text-right">
  106. <nav aria-label="breadcrumb">
  107. <ol class="breadcrumb">
  108. <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
  109. <li class="breadcrumb-item"><c:if test="${list.gubun eq 'm'}">의료</c:if><c:if test="${list.gubun eq 'g'}">행정</c:if>인력 관리</li>
  110. </ol>
  111. </nav>
  112. </div>
  113. </div>
  114. <c:if test="${list.gubun eq 'm'}">
  115. <div class="row">
  116. <div class="col-12">
  117. <div class="card">
  118. <div class="card-body">
  119. <h5 class="text-info mb-3">정원 현황</h5>
  120. <div class="table-responsive">
  121. <table class="table table-striped text-center">
  122. <colgroup>
  123. <col style=" width: 25%; ">
  124. <col style=" width: 25%; ">
  125. <col style=" width: 25%; ">
  126. <col style=" width: 25%; ">
  127. </colgroup>
  128. <thead>
  129. <tr>
  130. <th>구분</th>
  131. <th>생활치료센터 정원</th>
  132. <th>사용불가 인원</th>
  133. <th>사용불가 사유</th>
  134. </tr>
  135. </thead>
  136. <tbody>
  137. <tr>
  138. <td>정원</td>
  139. <td><input type="text" name="staffCapacity" class="form-control text-center" value="<c:out value="${list.staffCapacity}" />"></td>
  140. <td><input type="text" name="unavailableTotal" class="form-control text-center" value="<c:out value="${list.unavailableTotal}" />" placeholder="0"></td>
  141. <td><input type="text" name="unavailableNote" class="form-control text-left" placeholder="40자 까지 입력가능" maxlength="40" value="<c:out value="${list.unavailableNote}" />"></td>
  142. </tr>
  143. </tbody>
  144. </table>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </c:if>
  151. <div class="row">
  152. <div class="col-12">
  153. <div class="card">
  154. <div class="card-body">
  155. <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>
  156. <div class="table-responsive">
  157. <table class="table table-striped text-center">
  158. <colgroup>
  159. <c:choose>
  160. <c:when test="${list.gubun eq 'm'}">
  161. <col style=" width: 14%; ">
  162. <col style=" width: 14%; ">
  163. <col style=" width: 14%; ">
  164. <col style=" width: 14%; ">
  165. <col style=" width: 14%; ">
  166. <col style=" width: 14%; ">
  167. <col style=" width: 14%; ">
  168. </c:when>
  169. <c:when test="${list.gubun eq 'g'}">
  170. <col style=" width: 16%; ">
  171. <col style=" width: 16%; ">
  172. <col style=" width: 16%; ">
  173. <col style=" width: 16%; ">
  174. <col style=" width: 16%; ">
  175. <col style=" width: 16%; ">
  176. </c:when>
  177. </c:choose>
  178. </colgroup>
  179. <thead>
  180. <tr>
  181. <c:choose>
  182. <c:when test="${list.gubun eq 'm'}">
  183. <th>구분</th>
  184. <th>의사</th>
  185. <th>간호사</th>
  186. <th>간호조무사</th>
  187. <th>임상병리사</th>
  188. <th>방사선사</th>
  189. <th>행정인력</th>
  190. </c:when>
  191. <c:when test="${list.gubun eq 'g'}">
  192. <th>구분</th>
  193. <th>복지부</th>
  194. <th>지자체</th>
  195. <th>환경부</th>
  196. <th>소방청</th>
  197. <th>기타</th>
  198. </c:when>
  199. </c:choose>
  200. </tr>
  201. </thead>
  202. <tbody>
  203. <tr>
  204. <c:choose>
  205. <c:when test="${list.gubun eq 'm'}">
  206. <td>인원</td>
  207. <td><input type="text" name="staff1" class="form-control text-center" value="<c:out value="${list.staff1}" />"></td>
  208. <td><input type="text" name="staff2" class="form-control text-center" value="<c:out value="${list.staff2}" />"></td>
  209. <td><input type="text" name="staff3" class="form-control text-center" value="<c:out value="${list.staff3}" />"></td>
  210. <td><input type="text" name="staff4" class="form-control text-center" value="<c:out value="${list.staff4}" />"></td>
  211. <td><input type="text" name="staff5" class="form-control text-center" value="<c:out value="${list.staff5}" />"></td>
  212. <td><input type="text" name="staff6" class="form-control text-center" value="<c:out value="${list.staff6}" />"></td>
  213. </c:when>
  214. <c:when test="${list.gubun eq 'g'}">
  215. <td>인원</td>
  216. <td><input type="text" name="staff1" class="form-control text-center" value="<c:out value="${list.staff1}" />"></td>
  217. <td><input type="text" name="staff2" class="form-control text-center" value="<c:out value="${list.staff2}" />"></td>
  218. <td><input type="text" name="staff3" class="form-control text-center" value="<c:out value="${list.staff3}" />"></td>
  219. <td><input type="text" name="staff4" class="form-control text-center" value="<c:out value="${list.staff4}" />"></td>
  220. <td><input type="text" name="staff5" class="form-control text-center" value="<c:out value="${list.staff5}" />"></td>
  221. </c:when>
  222. </c:choose>
  223. </tr>
  224. </tbody>
  225. </table>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. <div class="row">
  232. <div class="col-12">
  233. <div class="card">
  234. <div class="card-body">
  235. <h5 class="text-info mb-3">공공 인력 현황</h5>
  236. <div class="table-responsive">
  237. <table class="table table-striped text-center">
  238. <colgroup>
  239. <col style=" width: 25%; ">
  240. <col style=" width: 25%; ">
  241. <col style=" width: 25%; ">
  242. <col style=" width: 25%; ">
  243. </colgroup>
  244. <thead>
  245. <tr>
  246. <c:choose>
  247. <c:when test="${list.gubun eq 'm'}">
  248. <th>구분</th>
  249. <th>공보의</th>
  250. <th>군의관</th>
  251. <th>간호사관생도</th>
  252. </c:when>
  253. <c:when test="${list.gubun eq 'g'}">
  254. <th>구분</th>
  255. <th>국방부</th>
  256. <th>경찰청</th>
  257. <th>소방청</th>
  258. </c:when>
  259. </c:choose>
  260. </tr>
  261. </thead>
  262. <tbody>
  263. <tr>
  264. <c:choose>
  265. <c:when test="${list.gubun eq 'm'}">
  266. <td>인원</td>
  267. <td><input type="text" name="staff7" class="form-control text-center" value="<c:out value="${list.staff7}" />"></td>
  268. <td><input type="text" name="staff8" class="form-control text-center" value="<c:out value="${list.staff8}" />"></td>
  269. <td><input type="text" name="staff9" class="form-control text-center" value="<c:out value="${list.staff9}" />"></td>
  270. </c:when>
  271. <c:when test="${list.gubun eq 'g'}">
  272. <td>인원</td>
  273. <td><input type="text" name="staff6" class="form-control text-center" value="<c:out value="${list.staff6}" />"></td>
  274. <td><input type="text" name="staff7" class="form-control text-center" value="<c:out value="${list.staff7}" />"></td>
  275. <td><input type="text" name="staff8" class="form-control text-center" value="<c:out value="${list.staff8}" />"></td>
  276. </c:when>
  277. </c:choose>
  278. </tr>
  279. </tbody>
  280. </table>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. </div>
  286. <div class="row">
  287. <div class="col-12">
  288. <div class="card">
  289. <div class="card-body">
  290. <h5 class="text-info mb-3">민간 인력 현황</h5>
  291. <div class="table-responsive">
  292. <table class="table table-striped text-center">
  293. <colgroup>
  294. <c:choose>
  295. <c:when test="${list.gubun eq 'm'}">
  296. <col style=" width: 14%; ">
  297. <col style=" width: 14%; ">
  298. <col style=" width: 14%; ">
  299. <col style=" width: 14%; ">
  300. <col style=" width: 14%; ">
  301. <col style=" width: 14%; ">
  302. <col style=" width: 14%; ">
  303. </c:when>
  304. <c:when test="${list.gubun eq 'g'}">
  305. <col style=" width: 25%; ">
  306. <col style=" width: 25%; ">
  307. <col style=" width: 25%; ">
  308. <col style=" width: 25%; ">
  309. </c:when>
  310. </c:choose>
  311. </colgroup>
  312. <thead>
  313. <tr>
  314. <c:choose>
  315. <c:when test="${list.gubun eq 'm'}">
  316. <th>구분</th>
  317. <th>민간모집의사</th>
  318. <th>민간모집간호사</th>
  319. <th>민간모집간호조무사</th>
  320. <th>민간모집임상병리사</th>
  321. <th>민간모집방사선사</th>
  322. <th>민간모집기타인력</th>
  323. </c:when>
  324. <c:when test="${list.gubun eq 'g'}">
  325. <th>구분</th>
  326. <th>방역</th>
  327. <th>청소</th>
  328. <th>기타</th>
  329. </c:when>
  330. </c:choose>
  331. </tr>
  332. </thead>
  333. <tbody>
  334. <tr>
  335. <c:choose>
  336. <c:when test="${list.gubun eq 'm'}">
  337. <td>인원</td>
  338. <td><input type="text" name="staff10" class="form-control text-center" value="<c:out value="${list.staff10}" />"></td>
  339. <td><input type="text" name="staff11" class="form-control text-center" value="<c:out value="${list.staff11}" />"></td>
  340. <td><input type="text" name="staff12" class="form-control text-center" value="<c:out value="${list.staff12}" />"></td>
  341. <td><input type="text" name="staff13" class="form-control text-center" value="<c:out value="${list.staff13}" />"></td>
  342. <td><input type="text" name="staff14" class="form-control text-center" value="<c:out value="${list.staff14}" />"></td>
  343. <td><input type="text" name="staff15" class="form-control text-center" value="<c:out value="${list.staff15}" />"></td>
  344. </c:when>
  345. <c:when test="${list.gubun eq 'g'}">
  346. <td>인원</td>
  347. <td><input type="text" name="staff9" class="form-control text-center" value="<c:out value="${list.staff9}" />"></td>
  348. <td><input type="text" name="staff10" class="form-control text-center" value="<c:out value="${list.staff10}" />"></td>
  349. <td><input type="text" name="staff11" class="form-control text-center" value="<c:out value="${list.staff11}" />"></td>
  350. </c:when>
  351. </c:choose>
  352. </tr>
  353. </tbody>
  354. </table>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. <div class="row mt-3">
  361. <div class="col-12">
  362. <div class="text-right">
  363. <button type="submit" class="btn btn-primary w100">저장</button>
  364. </div>
  365. </div>
  366. </div>
  367. </div>
  368. </main>
  369. </form>
  370. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  371. </div>
  372. </div>
  373. </body>
  374. </html>