Index: ssts-web/src/main/webapp/homepage/portalPage.jsp
===================================================================
diff -u -r34921 -r35029
--- ssts-web/src/main/webapp/homepage/portalPage.jsp (.../portalPage.jsp) (revision 34921)
+++ ssts-web/src/main/webapp/homepage/portalPage.jsp (.../portalPage.jsp) (revision 35029)
@@ -13,7 +13,9 @@
<%@ include file="/common/taglibs.jsp"%>
<%@page import="java.io.File" %>
<%@page import="com.forgon.disinfectsystem.entity.satisfactionsurvey.Satisfaction"%>
-
+
<%
PortalPageAction portalPageAction = (PortalPageAction)SpringBeanManger.getBean("portalPageAction");
SupplyRoomConfigManager supplyRoomConfigManager = (SupplyRoomConfigManager)SpringBeanManger.getBean("supplyRoomConfigManager");
@@ -361,6 +363,9 @@
*/
function initOnLoad(){
setInterval("detectCurrentUserPeriodically()", 30 * 1000);
+ if(sstsConfig.enableRealTimeDashboardsForDataFunction){
+ setInterval("dashboardsScreenSaver()", 30 * 1000);
+ }
if(hideLogo == 'true' || hideLogo == true){
document.getElementById('top_div').style.display = 'none';
}
@@ -370,6 +375,22 @@
}
+/**
+ * 30秒钟检测一下当前用户是否“闲置时将实时看板设为屏保”
+ */
+function dashboardsScreenSaver(){
+ Ext4.Ajax.request({
+ url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!dashboardsScreenSaver.do',
+ success : function(response, options) {
+ var result = Ext4.decode(response.responseText,true);
+ if(result.success){
+ var url = WWWROOT+'/disinfectsystem/config/'+profile+'/realTimeDashboards/index.jsp';
+ top.realTimeDashboardsWindow = openFullSizeWindowWithName(url,null,"realTimeDashboardsWindow");
+ }
+ }
+ });
+}
+
function onUnload(){
SpeechActiveX.deinit();