ABP框架下添加DevExpress框架生成報表,記錄一下學習過程
方式1,原始方式大概思路,打開Controller的方法CreateInRecordReport創建一個本地臨時文件,返回文件名,再通過window.open傳進文件名下載文件
控制器地址: var _reportModal = new app.ModalManager({
viewUrl: abp.appPath + 'App/DevRoport/CreateInRecordReport',
//scriptUrl: abp.appPath + 'view-resources/Areas/App/Views/VehicleLists/_CreateOrEditModal.js',
modalClass: 'CreateInRecordReport'
});
導出時:_reportModal.open(app.createInquireinputFilter("AdvacedAuditFiltersArea", "InRecordLogsTableFilter"), function (data) {
//app.downloadTempFile(result);
//alert(data.result);
window.open("DevRoport/DownloadInRecordReport?file&#