| | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | function getUserDepartmentList(query, excludeList, page, callBack) { //체크 필요 |
| | | function getUserDepartmentList(query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | departmentName : query, |
| | | excludeIds : (function () { //어떤 역할? 체크 필요 |
| | | excludeIds : (function () { //excludeIds : 제외 할 리스트 |
| | | var excludeIds = []; |
| | | angular.forEach(excludeList, function (exclude) { |
| | | excludeIds.push(exclude.id); |
| | |
| | | if ($rootScope.isDefined(callBack)) { |
| | | callBack(result); |
| | | } |
| | | |
| | | deferred.resolve(result.data.data); |
| | | deferred.resolve(result.data.data); //사용자가 속해져있는 부서 리스트를 불러옴 |
| | | } |
| | | else { |
| | | SweetAlert.swal($filter("translate")("managementWorkspace.failedToSelectWorkspaceFullDepartmentList"), result.data.message.message, "error"); // "부서 목록 조회 실패" |
| | | } |
| | | }); |
| | | |
| | | return deferred.promise; |
| | | } |
| | | |