| | |
| | | |
| | | var deferred = $q.defer(); |
| | | |
| | | if ($rootScope.isDefined(page) && page > 0) { |
| | | $rootScope.spinner = true; |
| | | } |
| | | |
| | | Issue.find($resourceProvider.getContent( |
| | | conditions)).then(function (result) { |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | if ($rootScope.isDefined(callBack)) { |
| | | callBack(result); |
| | |
| | | else { |
| | | SweetAlert.swal($filter("translate")("common.failedToIssueListLookUp"), result.data.message.message, "error"); // "워크플로우 목록 조회 실패" |
| | | } |
| | | $rootScope.spinner = false; |
| | | }); |
| | | return deferred.promise; |
| | | } |
| | |
| | | }; |
| | | var deferred = $q.defer(); |
| | | |
| | | if ($rootScope.isDefined(page) && page > 0) { |
| | | $rootScope.spinner = true; |
| | | } |
| | | |
| | | Issue.find($resourceProvider.getContent( // 페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다. |
| | | conditions)).then(function (result) { |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | if ($rootScope.isDefined(callBack)) { |
| | | callBack(result); |
| | |
| | | else { |
| | | SweetAlert.swal($filter("translate")("common.failedToIssueListLookUp"), result.data.message.message, "error"); // "워크플로우 목록 조회 실패" |
| | | } |
| | | $rootScope.spinner = false; |
| | | }); |
| | | return deferred.promise; |
| | | } |
| | |
| | | |
| | | function getIssueCompanyFieldList(query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | companyName : query, |
| | | name : query, |
| | | excludeIds : (function () { |
| | | var excludeIds = []; |
| | | |
| | |
| | | function getIssueDepartmentList(issueTypeId, query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | //issueTypeId : $scope.vm.form.issueTypeId, |
| | | issueTypeId : issueTypeId, |
| | | issueTypeId : Number(issueTypeId), |
| | | departmentName : query, |
| | | userId : $rootScope.user.id, |
| | | projectId : (function () { |