User profile editing and password

This commit is contained in:
2016-09-26 11:13:59 -04:00
parent 6789c1b3b5
commit 75b7c02979
54 changed files with 373 additions and 209 deletions
+10 -7
View File
@@ -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" });
}
});
}
]);
})();