
' + title + '
'; + html += '
Index: ssts-web/src/main/webapp/disinfectsystem/config/zsyy/realTimeDashboardsConfig.js =================================================================== diff -u --- ssts-web/src/main/webapp/disinfectsystem/config/zsyy/realTimeDashboardsConfig.js (revision 0) +++ ssts-web/src/main/webapp/disinfectsystem/config/zsyy/realTimeDashboardsConfig.js (revision 39172) @@ -0,0 +1,13 @@ +var realTimeDashboardsConfig = { + //中间显示的模块 + columnCenter: { + width: '50%', + items: [{ + dataSources: 'notificationOfPatientDischarge', + title: '病人出室通知', + height: '88%', + playVideo: true, + minuteInterval: 30 + }] + } +} \ No newline at end of file Index: ssts-web/src/main/webapp/disinfectsystem/config/zsyy/config.js =================================================================== diff -u -r39125 -r39172 --- ssts-web/src/main/webapp/disinfectsystem/config/zsyy/config.js (.../config.js) (revision 39125) +++ ssts-web/src/main/webapp/disinfectsystem/config/zsyy/config.js (.../config.js) (revision 39172) @@ -391,6 +391,8 @@ syncOperation_AllowSyncWhenAnyNoMatchingOperationName:true, //启用回收后生成实例的功能 enableAnInstanceIsGeneratedAfterRecycled:true, +//启用数据实时看板 +enableRealTimeDashboardsForDataFunction:true, //器械包信息的默认查询数据排序方式 defaultSortingMethodOfTousseInstanceManager:"packing" } \ No newline at end of file Index: ssts-web/src/main/webapp/disinfectsystem/realTimeDashboards/index.jsp =================================================================== diff -u -r38999 -r39172 --- ssts-web/src/main/webapp/disinfectsystem/realTimeDashboards/index.jsp (.../index.jsp) (revision 38999) +++ ssts-web/src/main/webapp/disinfectsystem/realTimeDashboards/index.jsp (.../index.jsp) (revision 39172) @@ -32,6 +32,7 @@ +
Index: ssts-web/src/main/webapp/disinfectsystem/config/zsyy/interfaces/mybatis/FindPatientSurgicalStatusMapper.xml =================================================================== diff -u -r39122 -r39172 --- ssts-web/src/main/webapp/disinfectsystem/config/zsyy/interfaces/mybatis/FindPatientSurgicalStatusMapper.xml (.../FindPatientSurgicalStatusMapper.xml) (revision 39122) +++ ssts-web/src/main/webapp/disinfectsystem/config/zsyy/interfaces/mybatis/FindPatientSurgicalStatusMapper.xml (.../FindPatientSurgicalStatusMapper.xml) (revision 39172) @@ -18,4 +18,26 @@ ]]> + + + + \ No newline at end of file Index: ssts-web/src/main/webapp/disinfectsystem/realTimeDashboards/js/index.js =================================================================== diff -u -r38872 -r39172 --- ssts-web/src/main/webapp/disinfectsystem/realTimeDashboards/js/index.js (.../index.js) (revision 38872) +++ ssts-web/src/main/webapp/disinfectsystem/realTimeDashboards/js/index.js (.../index.js) (revision 39172) @@ -1,3 +1,4 @@ +//是否显示模块 var showUrgentAmount = false; var showNowTime = false; var showOnlineUserAmount = false; @@ -9,8 +10,11 @@ var showUrgentGoodsSummary = false; var showUrgentGoodsDetails = false; var showForeignTousseSummarySpecifyPeriod = false; +var showNotificationOfPatientDischarge = false; +//图表类型 var tousseSummaryChartType = ''; var foreignTousseSummaryChartType = ''; +//刷新时间 var refreshRateByOnlineUserAmount = 0; var refreshRateByUrgentAmount = 0; var refreshRateByOperationReservationSummary = 0; @@ -21,7 +25,13 @@ var refreshRateByUrgentGoodsSummary = 0; var refreshRateByUrgentGoodsDetails = 0; var refreshRateByForeignTousseSummarySpecifyPeriod = 0; - +var refreshRateByNotificationOfPatientDischarge = 0; +//ZSYY-395:显示间隔(notificationOfPatientDischarge专属属性) +var minuteInterval = 30; +var speakMsgByPatientDischarge = ''; +var speakStatusByPatientDischarge = 0; +var speakMsgByUrgentGoodsSummary = ''; +var speakStatusByUrgentGoodsSummary = 0; //当前时间 var m = 0; function getTime() { @@ -42,6 +52,50 @@ m++; }; +var playTime = null; +var speaker = new Speaker(); + +function playEnabled(name) { + speaker.enable(true); + if (name == 'PatientDischarge') { + speakStatusByPatientDischarge = 1; + if (speakMsgByPatientDischarge !== '') { + speaker.speak(speakMsgByPatientDischarge); + } + } else if (name == 'UrgentGoodsSummar') { + speakStatusByUrgentGoodsSummary = 1; + if (speakMsgByUrgentGoodsSummary !== '') { + speaker.speak(speakMsgByUrgentGoodsSummary); + } + } + $('.playDisabledBy' + name).hide(); + $('.playEnabledBy' + name).show(); +} + +function playDisabled(name) { + speaker.enable(false); + if (name == 'PatientDischarge') { + speakStatusByPatientDischarge = 0; + } else if (name == 'UrgentGoodsSummar') { + speakStatusByUrgentGoodsSummary = 0; + } + $('.playDisabledBy' + name).show(); + $('.playEnabledBy' + name).hide(); +} + +function playVideoToTime() { + var time = 30 * 60 * 1000; + if (urgentBroadcastFrequency && urgentBroadcastFrequency > 0) { + time = urgentBroadcastFrequency * 60 * 1000; + } + if (urgentMessage !== '') { + speaker.speak(urgentMessage); + } + playTime = setTimeout(function () { + playVideoToTime(); + }, time); +} + //获取人员总数 在线人数。 function getFirstSupplyRoomConfigOnlineUserDate() { var url = WWWROOT + '/jasperreports/jasperreportsAction!getFirstSupplyRoomConfigOnlineUserDate.do'; @@ -375,6 +429,7 @@ if (result.success) { var data = result.message || []; var html = ''; + var speakMsg = '当前待发货加急物品'; html += '