MBOList.controller.js 483 Bytes
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
'use strict';
angular.module('aps_manager').controller('MBOList', function($scope, $http, APSRest, $filter, $q) {

	$scope.mbolist = [];
	$scope.bu2_label = '';
	$scope.userdata = {};

	APSRest.UserData.query()
		.$promise.then(function(response) {
			$scope.userdata = response;

			APSRest.MBOList.query({ employeeid: response.employeeid })
			.$promise.then(function(response) {
				$scope.mbolist = response.mbolist;
				$scope.bu2_label = response.bu2_label;
			});

		});

});