Bladeren bron

Merge branch 'databank' of http://wcollector.idatabank.com:5230/dbs289/LifeCenter into sudden

huiwonseo 4 jaren geleden
bovenliggende
commit
f6fac35f48
2 gewijzigde bestanden met toevoegingen van 11 en 4 verwijderingen
  1. 2 4
      src/main/webapp/WEB-INF/jsp/mobile/menu/menu.jsp
  2. 9 0
      src/main/webapp/WEB-INF/jsp/patient/new.jsp

+ 2 - 4
src/main/webapp/WEB-INF/jsp/mobile/menu/menu.jsp

@@ -73,8 +73,7 @@ function emCall(t){
 </head>
 <body>
     <div id="main">
-        <c:if test="${centerCode eq '1'}">
-          <div class="locale-box">
+        <div class="locale-box">
             <select id="localeSelectBox"> 
                 <option value="ko" <c:if test="${data._LOCALE_CODE eq 'ko'}">selected</c:if>>한국어</option>
                 <option value="en" <c:if test="${data._LOCALE_CODE eq 'en'}">selected</c:if>>English</option><!-- 영어 -->
@@ -84,8 +83,7 @@ function emCall(t){
                 <option value="fr" <c:if test="${data._LOCALE_CODE eq 'fr'}">selected</c:if>>français</option><!-- 프랑스어어 -->
                 <option value="th" <c:if test="${data._LOCALE_CODE eq 'th'}">selected</c:if>>ไทย</option><!-- 태국어 -->
             </select>
-          </div>
-        </c:if>
+        </div>
         
         <div class="container">
             <div class="nav">

+ 9 - 0
src/main/webapp/WEB-INF/jsp/patient/new.jsp

@@ -102,8 +102,17 @@ function setEventHandler(){
 //         wrap.find( "input.error-box" ).val( dateYear  + "-" + dateMonth  + "-" + dateDay );
 //     });
     
+    // 퇴소예정일 기본 +10일 오늘날짜기준
     var expectedDischargeDate = moment().add(10, 'days').format("YYYY-MM-DD");
     $( "input[name='expectedDischargeDate']" ).val( expectedDischargeDate );
+    
+    // *확진일 변경시 + 10일 퇴소예정일 변경
+    $("input[name='confirmationDate']").on( "change", function(){
+        var ten = moment( $(this).val() ).add(10, 'days').format("YYYY-MM-DD");
+        $("input[name='expectedDischargeDate']").val( ten );
+    })
+
+    
 
     
     $( "input.date" ).daterangepicker({