User profile editing and password
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
(function () {
|
||||
window.app.factory('reportSvc',
|
||||
(function() {
|
||||
window.app.factory("reportSvc",
|
||||
[
|
||||
"$http",
|
||||
function($http) {
|
||||
var distributionData = [];
|
||||
var distributionQuery = {};
|
||||
@@ -18,7 +20,7 @@
|
||||
return svc;
|
||||
|
||||
function loadDistributionReport(query) {
|
||||
return $http.post('/Report/Distribution', query)
|
||||
return $http.post("/Report/Distribution", query)
|
||||
.success(function(data) {
|
||||
distributionQuery = angular.copy(query, distributionQuery);
|
||||
angular.copy(data, distributionData);
|
||||
@@ -26,18 +28,19 @@
|
||||
}
|
||||
|
||||
function exportDistributionReport(query) {
|
||||
return $http.post('/Report/DistributionExcel', query, { responseType: 'arraybuffer' });
|
||||
return $http.post("/Report/DistributionExcel", query, { responseType: "arraybuffer" });
|
||||
}
|
||||
|
||||
function loadMovementData(query) {
|
||||
return $http.post('/Report/Movement', query)
|
||||
return $http.post("/Report/Movement", query)
|
||||
.success(function(data) {
|
||||
angular.copy(data, movementData);
|
||||
});
|
||||
}
|
||||
|
||||
function exportMovementData(query) {
|
||||
return $http.post('/Report/MovementExcel', query, { responseType: 'arraybuffer' });
|
||||
return $http.post("/Report/MovementExcel", query, { responseType: "arraybuffer" });
|
||||
}
|
||||
});
|
||||
}
|
||||
]);
|
||||
})();
|
||||
Reference in New Issue
Block a user