Explorar o código

1. 건강정보기록 submit시 중복 제출 막기
2. 긴급 점검 공지사항 팝업

huiwon.seo %!s(int64=4) %!d(string=hai) anos
pai
achega
6a6225e359

+ 1 - 1
src/main/webapp/WEB-INF/jsp/include/header.jsp

@@ -18,4 +18,4 @@
 <link href="/resources/css/common/classic.css" rel="stylesheet">
 <script src="/resources/js/common/app.js"></script>
 <script src="/resources/js/common/common.js"></script>
-<script type="text/javascript" src="/resources/js/common/jquery.modal.min.js"></script>
+<script type="text/javascript" src="/resources/js/common/jquery.modal.min.js"></script>

+ 46 - 2
src/main/webapp/WEB-INF/jsp/include/sidebar.jsp

@@ -2,6 +2,48 @@
 <%@ page language="java" contentType="text/html; charset=UTF-8"
     pageEncoding="UTF-8"%>
 
+
+<script>
+$( function(){
+// localStorage.clear();
+    var lifeCenterNotice = localStorage.getItem( "notice" );
+    
+    if( lifeCenterNotice != "ok" ){
+        alertBox({ 
+            title : '<span class="" style="">공지<br/>(Notice)</span>', 
+            txt : '<div class="text-dark" style="line-height:30px;font-size:16px !important;color:#000;">' +
+                  '  <div>아래와 같이 서비스 중지가 예정되어 있으니 참고하시기 바랍니다.</div> (<span class="notice-en">Please note that the service is scheduled to be suspended as follows.</span>)' + 
+                  '  <div class="mt-4">1. 일자(<span class="notice-en">Date</span>) : <span style="color:blue !important;font-weight:600;">2020. 12. 17 (목/<span class="notice-en">Thursday</span>)</span></div>' +
+                  '  <div class="mt-2">2. 시간(<span class="notice-en">Time</span>) : <span style="color:blue !important;font-weight:600;">22:00 ~ 23:00 (1시간 예정/<span class="notice-en">1 hour schedule</span>)</span></div>' +
+                  '  <div class="mt-2">3. 목적(<span class="notice-en">Purpose</span>) : <span style="color:blue !important;font-weight:600;">생활치료센터 비대면진료서비스 시스템 인프라 증설 (<span class="notice-en">Residential treatment center Untact Treatment System infrastructure expansion</span>)</span></div>' +
+                  '  <div class="mt-4">예정된 시간 안으로 서비스 중지 시간을 최소화 하도록 하겠습니다.</div> (<span class="notice-en">We will minimize service downtime within the scheduled time.</span>)' +
+                  '</div>' +
+                  '<br/><label id="check-notice"><input type="checkbox" id="life-center-notice" /> 다시보지않기 (<span class="notice-en">Don\'t look again</span>)<label>', 
+            callBack : function( result ){
+//               alert( result );
+    console.log( $( "#life-center-notice" ).prop( "checked" ) );
+                if( $( "#life-center-notice" ).prop( "checked" ) == true ){
+                    localStorage.notice = "ok";
+                }
+            }
+        });
+    }
+});
+</script>
+<style type="text/css">
+#check-notice{    font-size: 14px;
+    margin-top: 20px;
+    position: absolute;
+    border: 1px solid #c9c9c9;
+    background: #FFFFFF;
+    height: 33px;
+    line-height: 33px;
+    bottom: 4px;
+    padding: 0 10px;}
+/* .notice-en{font-size:14px;color:#444;} */
+</style>
+
+
 <nav id="sidebar" class="sidebar">
     <div class="sidebar-content ">
         <a class="sidebar-brand" href="/"> 
@@ -36,11 +78,14 @@
                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "cooperation"}'>active</c:if>">
                             <a class="sidebar-link" href="/cooperation/list">협력병원 관리</a>
                         </li>
+                        
+<%--                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "push"}'>active</c:if>"> --%>
+<!--                             <a class="sidebar-link" href="/push/list">푸시 서비스 관리</a> -->
+<!--                         </li> -->
                     </c:if>
                 </ul>
             </li>
         </ul>
-
         <div class="sidebar-bottom d-none d-lg-block">
             <div class="media">
                 <div class="media-body">
@@ -52,6 +97,5 @@
                 </div>
             </div>
         </div>
-
     </div>
 </nav>

+ 1 - 0
src/main/webapp/WEB-INF/jsp/mobile/health/health1.jsp

@@ -44,6 +44,7 @@ $( function(){
                 $( "div.error-msg" ).empty().text( "체온을 입력해주세요 (Please enter your body temperature)" );
             } else {
                 $( "#phrValue" ).val( temperature );
+                $( "button[type='submit'].confirm" ).prop( "disabled", true ).css("background", "#DBDBDB");
                 form.submit();
             }
         }

+ 1 - 0
src/main/webapp/WEB-INF/jsp/mobile/health/health2.jsp

@@ -116,6 +116,7 @@ $( function(){
             }
             
             if( flag ){
+                $( "button[type='submit'].confirm" ).prop( "disabled", true ).css("background", "#DBDBDB");
                 form.submit();
             }
             

+ 1 - 1
src/main/webapp/WEB-INF/jsp/mobile/health/health3.jsp

@@ -39,7 +39,7 @@ $( function(){
                 $( "div.error-msg" ).text( "산소포화도 % 를 입력하세요 (Please enter your oxygen saturation)" );
             } else {
                 $( "#phrValue" ).val( oxygenSaturation );
-                
+                $( "button[type='submit'].confirm" ).prop( "disabled", true ).css("background", "#DBDBDB");
                 form.submit();
             }
         }

+ 1 - 0
src/main/webapp/WEB-INF/jsp/mobile/health/health4.jsp

@@ -39,6 +39,7 @@ $( function(){
                 $( "div.error-msg" ).text( "혈당을 입력해주세요 (Please enter your blood sugar)" );
             } else {
                 $( "#phrValue" ).val( bloodSugar );
+                $( "button[type='submit'].confirm" ).prop( "disabled", true ).css("background", "#DBDBDB");
                 form.submit();
             }
         }

+ 2 - 1
src/main/webapp/WEB-INF/jsp/mobile/health/health5.jsp

@@ -10,6 +10,7 @@ $( function(){
             if( $( "#healthForm" ).find( "input[type='checkbox']:checked" ).length == 0 ) {
                 $( "div.error-msg" ).text( "한 개 이상의 증상을 입력하셔야 합니다. (Please enter at least one symptom)" );
             } else {
+                $( "button[type='submit'].confirm" ).prop( "disabled", true ).css("background", "#DBDBDB");
                 form.submit();
             }
         }
@@ -17,7 +18,7 @@ $( function(){
     
     $( "#etcCheck" ).on( "click", function(){
         $( "#etcContent" ).prop( "readonly", $( this ).is( ":checked" ) === false );
-    })
+    });
 })
 </script>
 </head>

+ 41 - 0
src/main/webapp/WEB-INF/jsp/mobile/menu/menu.jsp

@@ -9,6 +9,47 @@ $(function(){
     //$("div.version").val(localStorage.getItem("version"));
 });
 </script>
+
+<script>
+$( function(){
+// localStorage.clear();
+    var lifeCenterNotice = localStorage.getItem( "noticeMobile" );
+    
+    if( lifeCenterNotice != "ok" ){
+        alertBox({ 
+            title : '<span class="" style="">공지<br/>(Notice)</span>', 
+            txt : '<div class="text-dark" style="line-height:30px;font-size:16px !important;color:#000;">' +
+                  '  <div>아래와 같이 서비스 중지가 예정되어 있으니 참고하시기 바랍니다.</div> (<span class="notice-en">Please note that the service is scheduled to be suspended as follows.</span>)' + 
+                  '  <div class="mt-4">1. 일자(<span class="notice-en">Date</span>) : <span style="color:blue !important;">2020. 12. 17 (목/<span class="notice-en">Thursday</span>)</span></div>' +
+                  '  <div class="mt-2">2. 시간(<span class="notice-en">Time</span>) : <span style="color:blue !important;">22:00 ~ 23:00 (1시간 예정/<span class="notice-en">1 hour schedule</span>)</span></div>' +
+                  '  <div class="mt-2">3. 목적(<span class="notice-en">Purpose</span>) : <span style="color:blue !important;">생활치료센터 비대면진료서비스 시스템 인프라 증설 (<span class="notice-en">Residential treatment center Untact Treatment System infrastructure expansion</span>)</span></div>' +
+                  '  <div class="mt-4">예정된 시간 안으로 서비스 중지 시간을 최소화 하도록 하겠습니다.</div> (<span class="notice-en">We will minimize service downtime within the scheduled time.</span>)' +
+                  '</div>' +
+                  '<br/><label id="check-notice"><input type="checkbox" id="life-center-notice" /> 다시보지않기 (<span class="notice-en">Don\'t look again</span>)<label>', 
+            callBack : function( result ){
+//               alert( result );
+    console.log( $( "#life-center-notice" ).prop( "checked" ) );
+                if( $( "#life-center-notice" ).prop( "checked" ) == true ){
+                    localStorage.noticeMobile = "ok";
+                }
+            }
+        });
+    }
+});
+</script>
+<style type="text/css">
+#check-notice{    font-size: 14px;
+    margin-top: 20px;
+    position: absolute;
+    border: 1px solid #c9c9c9;
+    background: #FFFFFF;
+    height: 33px;
+    line-height: 33px;
+    bottom: 11px;
+    padding: 0 10px;}
+/* .notice-en{font-size:14px;color:#444;} */
+</style>
+
 </head>
 <body>
     <div id="main">

+ 9 - 1
src/main/webapp/resources/css/common/classic.css

@@ -171,4 +171,12 @@ table#symptomDataTable tbody th { font-weight: normal; white-space: nowrap; }
 .mt8{margin-top:8px;}
 .error-box{outline:none;width:0;height:0;margin:0;border:0;}
 .text-link{cursor:pointer;}
-.text-link:hover{text-decoration:underline;}
+.text-link:hover{text-decoration:underline;}
+
+div.daterangepicker table.table-condensed th,
+div.daterangepicker table.table-condensed td{font-size:13px !important;}
+div.daterangepicker div.calendar-time{margin-top:10px !important;margin:10px !important;}
+div.daterangepicker div.calendar-time>select{height:30px !important;font-size:14px !important;width:28% !important;min-width:50px;}
+div.daterangepicker select.monthselect,
+div.daterangepicker select.yearselect{height:30px !important;font-size:14px !important;border:1px solid #d0d0d0 !important;}
+div.daterangepicker select.ampmselect{float:left;margin:0 10px 0 0 !important;}

+ 1 - 3
src/main/webapp/resources/js/common/common.js

@@ -180,9 +180,7 @@ function alertBox( obj ) {
         text: txt,
         callback: function(result){
             if( type == "confirm" ) {
-                if( result ) {
-                    callBack( result );
-                }
+                callBack( result );
             } else {
                 callBack();
             }