Export Distribution report

This commit is contained in:
2016-09-22 08:49:24 -04:00
parent 206a3f2def
commit 02555eba7e
11 changed files with 216 additions and 21 deletions
@@ -3,10 +3,15 @@
window.app.controller('DistributionReportController', DistributionReportController);
DistributionReportController.$inject = ['$scope', 'reportSvc'];
function DistributionReportController($scope, reportSvc) {
DistributionReportController.$inject = ['$scope', 'reportSvc', 'downloadSvc'];
function DistributionReportController($scope, reportSvc, downloadSvc) {
var vm = this;
vm.loadData = reportSvc.loadDistributionReport;
vm.query = reportSvc.distributionQuery;
vm.distributionData = reportSvc.distributionData;
vm.export = function (params) {
reportSvc.exportDistributionReport(params)
.success(downloadSvc.success);
}
}
})();