| | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | function getDepartmentList(query, excludeList, page, callBack) { |
| | | function getDepartmentList(query, excludeList, page, callBack) { //체크 필요 |
| | | var conditions = { |
| | | departmentName : query, |
| | | userId : (function () { |
| | | var userId = ""; |
| | | |
| | | if ($rootScope.isDefined($scope.vm.form)) { |
| | | angular.forEach($scope.vm.form.users, function (user) { |
| | | userId = user.id; |
| | | }); |
| | | } |
| | | return userId; |
| | | })(), |
| | | excludeIds : (function () { //어떤 역할? |
| | | excludeIds : (function () { //어떤 역할? 체크 필요 |
| | | var excludeIds = []; |
| | | |
| | | angular.forEach(excludeList, function (exclude) { |
| | | excludeIds.push(exclude.id); |
| | | }); |