Distribution report
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
(function () {
|
||||
window.app.factory('reportSvc', reportSvc);
|
||||
|
||||
reportSvc.$inject = ['$http'];
|
||||
function reportSvc($http) {
|
||||
var distributionData = [];
|
||||
|
||||
var svc = {
|
||||
distributionData: distributionData,
|
||||
loadDistributionReport: loadDistributionReport
|
||||
};
|
||||
|
||||
//loadDistributionReport({ startDate: '2015-06-01', endDate: '2016-01-01' });
|
||||
return svc;
|
||||
|
||||
function loadDistributionReport(query) {
|
||||
return $http.post('/Report/Distribution', query)
|
||||
.success(function (data) {
|
||||
angular.copy(data, distributionData);
|
||||
});
|
||||
}
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user