huiwon.seo пре 4 година
родитељ
комит
f56e687ff1

+ 0 - 1
src/main/java/com/lemon/lifecenter/controller/PatientController.java

@@ -252,7 +252,6 @@ public class PatientController extends LifeCenterController {
         dto.setPw( LifeCenterFunction.aesEncrypt( config.aesKey, config.IV, jumin.substring(2) ) );
         dto.setJumin( jumin );
         dto.setCenterCode( sesCenterCode );
-        dto.setState( "H" ); // H : 입소
         dto.setCreateBy( sesId );
         
         patientService.updatePatientCare( dto );  // 환지 기본정보 insert

+ 11 - 1
src/main/webapp/WEB-INF/jsp/patient/edit.jsp

@@ -320,12 +320,22 @@ $( function(){
                                                 </tr>
                                                 <tr>
                                                     <th>격리해제 예정일</th>
-                                                    <td colspan="3">
+                                                    <td>
                                                         <div class="form-group calendar-bar mb-xl-0">
                                                             <input class="form-control date" type="text" value="${patientData.disisolationDate}" name="disisolationDate">
                                                             <i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
                                                         </div>
                                                     </td>
+                                                    
+                                                    <th>상태</th>
+                                                    <td>
+                                                        <select class="custom-select" name="state">
+                                                            <option value="H" <c:if test="${patientData.state eq H}">selected="selected"</c:if>>입소</option>
+                                                            <option value="D" <c:if test="${patientData.state eq D}">selected="selected"</c:if>>퇴소</option>
+                                                            <option value="T" <c:if test="${patientData.state eq T}">selected="selected"</c:if>>지정병원 이송</option>
+                                                            <option value="E" <c:if test="${patientData.state eq E}">selected="selected"</c:if>>기타</option>
+                                                        </select>
+                                                    </td>
                                                 </tr>
                                                 <tr>
                                                     <th><span class="fix">*</span>최근약복용<br />(최근 24시간 이내)</th>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/patient/info.jsp

@@ -267,7 +267,7 @@ function nonFaceStart() {
                                         <div class="col-12">
                                             <div class="text-right">
                                                 <button type="button" class="btn btn-primary w100" onclick="location.href='./edit?patientIdx=${patientIdx}';">수정</button>
-                                                <button type="button" class="btn btn-primary w100" onclick="history.back();">확인</button>
+                                                <button type="button" class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
                                             </div>
                                         </div>
                                     </div>