Index: ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyView.js =================================================================== diff -u -r36563 -r36708 --- ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyView.js (.../departmentMonthlyView.js) (revision 36563) +++ ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyView.js (.../departmentMonthlyView.js) (revision 36708) @@ -738,6 +738,7 @@ tableHtml += getTableHtml(result.data, result.parametMap.titleInfoArr, result.parametMap.branchesOfHospitalInfo) setTimeout(function () { document.getElementById('thisIframe2').contentWindow.document.getElementById('table').innerHTML = tableHtml; + document.getElementById('thisIframe2').contentWindow.document.getElementById('ToolBar').style.display = 'block'; myMask.hide(); }, 1000); } else { @@ -787,20 +788,6 @@ name: 'total' }]; - var sign = true; - var dwrCallParams = null; - - var tbar = [{ - text: '导出Excel', - iconCls: 'btn_ext_refresh', - id: 'editTbar', - handler: function () { - var month = Ext.getCmp('monthSearch').getRawValue(); - var depart = document.getElementById("departSearch").value; - location.href = WWWROOT + "/disinfectsystem/reportforms/departmentMonthlyExport.jsp?depart=" + depart + "&month=" + month + "&reportType=科室月报明细"; - } - }]; - Ext.ux.ForgonPageGrid.prototype.getGridParameterMap = function () { }; @@ -1194,32 +1181,6 @@ autoScroll: true,//自动显示滚动条 collapsible: true,//允许展开和收缩 bodyPadding: 5, - tbar: [{ - text: '导出', - id: 'exportButton', - hidden:hiddenExportButton, - handler: function () { - var html = document.getElementById('thisIframe2').contentWindow.document.getElementById('table').innerHTML; - if (html !== '') { - var startTime = $Id('startTime').value; - var endTime = $Id('endTime').value; - var title = '核算月报(' + startTime + '至' + endTime + ')'; - var data = { - fileName: title - } - exportMask = new Ext.LoadMask(Ext.getBody(), { - msg: '正在导出文件,请稍候!', - removeMask: true - }); - exportMask.show(); - setTimeout(function () { - exportReportExcel(data, 'thisIframe2', is2Column, widthArr); - }, 1000); - } else { - showResult('暂无查询数据,无法导出!'); - } - } - }], html: '' }); Index: ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js =================================================================== diff -u -r36219 -r36708 --- ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js (.../departmentMonthlyDetailDSInvoiceItemView.js) (revision 36219) +++ ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js (.../departmentMonthlyDetailDSInvoiceItemView.js) (revision 36708) @@ -693,7 +693,6 @@ myMask.show(); document.getElementById('thisIframe').style.display = 'none'; document.getElementById('thisIframe2').style.display = 'block'; - Ext.getCmp('exportButton').show(); var url = WWWROOT + "/jasperreports/jasperreportsAction!queryDataSourceList.do"; var startTime = params.startTime.replace(new RegExp('-', 'g'), "/"); var endTime = params.endTime.replace(new RegExp('-', 'g'), "/"); @@ -703,6 +702,7 @@ myMask.hide(); return; } + Ext.Ajax.timeout = 2*60*1000; Ext.Ajax.request({ url: url, async: false, @@ -715,6 +715,7 @@ tableHtml += getTableHtml(result.data, dataAll) setTimeout(function () { document.getElementById('thisIframe2').contentWindow.document.getElementById('table').innerHTML = tableHtml; + document.getElementById('thisIframe2').contentWindow.document.getElementById('ToolBar').style.display = 'block'; myMask.hide(); }, 1000); } else { @@ -735,8 +736,8 @@ myMask.show(); document.getElementById('thisIframe').style.display = 'none'; document.getElementById('thisIframe2').style.display = 'block'; - Ext.getCmp('exportButton').show(); var url = WWWROOT + "/jasperreports/jasperreportsAction!queryDataSourceList.do"; + Ext.Ajax.timeout = 2*60*1000; Ext.Ajax.request({ url: url, async: false, @@ -749,6 +750,7 @@ tableHtml += getTableHtml2(result.data) setTimeout(function () { document.getElementById('thisIframe2').contentWindow.document.getElementById('table').innerHTML = tableHtml; + document.getElementById('thisIframe2').contentWindow.document.getElementById('ToolBar').style.display = 'block'; myMask.hide(); }, 1000); } else { @@ -765,7 +767,6 @@ var url = WWWROOT + "/jasperreports/jasperreportsAction!createReportFromJavaBeanSource.do"; document.getElementById('thisIframe').style.display = 'block'; document.getElementById('thisIframe2').style.display = 'none'; - Ext.getCmp('exportButton').hide(); searchReport(url, params); } } @@ -1632,34 +1633,6 @@ autoScroll: true,//自动显示滚动条 collapsible: true,//允许展开和收缩 bodyPadding: 5, - tbar: [{ - text: '导出', - id: 'exportButton', - handler: function () { - var html = document.getElementById('thisIframe2').contentWindow.document.getElementById('table').innerHTML; - if (html !== '') { - var startTime = $Id('startTime').value; - var endTime = $Id('endTime').value; - var title = '明细核算月报(' + startTime + '至' + endTime + ')'; - var data = { - fileName: title, - fileType: ".xls", - iframeName: 'thisIframe2', - html: html - } - exportMask = new Ext.LoadMask(Ext.getBody(), { - msg: '正在导出文件,请稍候!', - removeMask: true - }); - exportMask.show(); - setTimeout(function () { - exportReportExcel(data, 'thisIframe2', is2Column, widthArr); - }, 1000); - } else { - showResult('暂无查询数据,无法导出!'); - } - } - }], html: '' }); @@ -1684,8 +1657,6 @@ departSearch.setValue(orgUnitName); } - Ext.getCmp('exportButton').hide(); - //reloadReport(); if (dataForPatternOfReport.length < 1) { Index: ssts-web/src/main/webapp/homepage/exportMonitorData.jsp =================================================================== diff -u -r36289 -r36708 --- ssts-web/src/main/webapp/homepage/exportMonitorData.jsp (.../exportMonitorData.jsp) (revision 36289) +++ ssts-web/src/main/webapp/homepage/exportMonitorData.jsp (.../exportMonitorData.jsp) (revision 36708) @@ -82,21 +82,22 @@
+ + <%