User profile editing and password
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
window.app.controller('DistributionReportController',
|
||||
window.app.controller("DistributionReportController",
|
||||
[
|
||||
"$scope", "reportSvc", "downloadSvc",
|
||||
function($scope, reportSvc, downloadSvc) {
|
||||
var vm = this;
|
||||
vm.loadData = reportSvc.loadDistributionReport;
|
||||
@@ -10,6 +12,7 @@
|
||||
vm.export = function(params) {
|
||||
reportSvc.exportDistributionReport(params)
|
||||
.success(downloadSvc.success);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
]);
|
||||
})();
|
||||
@@ -11,6 +11,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
controller.$inject = ['$scope'];
|
||||
function controller($scope) {
|
||||
var vm = this;
|
||||
vm.distributionData = $scope.distributionData;
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
window.app.controller('MovementReportController',
|
||||
window.app.controller("MovementReportController",
|
||||
[
|
||||
"$scope", "reportSvc", "downloadSvc",
|
||||
function($scope, reportSvc, downloadSvc) {
|
||||
var vm = this;
|
||||
vm.loadData = reportSvc.loadMovementData;
|
||||
@@ -9,6 +11,7 @@
|
||||
vm.export = function(month) {
|
||||
reportSvc.exportMovementData({ month: month })
|
||||
.success(downloadSvc.success);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
]);
|
||||
})();
|
||||
@@ -11,6 +11,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
controller.$inject = ['$scope', '$uibModal', 'inventorySvc'];
|
||||
function controller($scope, $uibModal, inventorySvc) {
|
||||
var vm = this;
|
||||
vm.movementData = $scope.movementData;
|
||||
|
||||
@@ -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