Index: ssts-web/src/main/webapp/js/commonUtils.js =================================================================== diff -u -r40749 -r40908 --- ssts-web/src/main/webapp/js/commonUtils.js (.../commonUtils.js) (revision 40749) +++ ssts-web/src/main/webapp/js/commonUtils.js (.../commonUtils.js) (revision 40908) @@ -25,4 +25,46 @@ } }, time * 1000) } +} + +//FSEYEQ-26:获取pdf文件(清洗机和灭菌通用) +function getPDFFileUtil(params) { + var title = ''; + if (params.washAndDisinfectRecordId) { + title = '清洗参数'; + } else if (params.sterilizationRecordId) { + title = '灭菌炉运行参数'; + } + Ext.Ajax.request({ + url: WWWROOT + '/disinfectSystem/washData/washDataLineChartAction!getPDFFile.do', + params: params, + success: function (result) { + var resultStr = Ext.decode(result.responseText); + if (resultStr.success && resultStr.data) { + var url = 'data:application/pdf;base64,' + resultStr.data; + if (params.doc) { + params.doc.src = url; + } else { + var win = new top.Ext.Window({ + title: title, + width: 850, + height: 640, + autoScroll: false, + isTopContainer: true, + modal: true, + resizable: false, + buttonAlign: 'center', + items: [{ + xtype: "panel", + id: "index", + html: "" + }] + }) + win.show() + } + } else { + showResult('获取不到pdf文件!'); + } + } + }) } \ No newline at end of file