| | |
| | | function getIssueList(query, issueTypeId, excludeList, page, callBack) { |
| | | var conditions = { |
| | | name : query, |
| | | issueTypeIds : (function () { |
| | | /*issueTypeIds : (function () { |
| | | var ids = []; |
| | | |
| | | ids.push(issueTypeId); |
| | | |
| | | return ids; |
| | | })(), |
| | | })(),*/ |
| | | excludeIds : (function () { |
| | | var excludeIds = []; |
| | | |
| | |
| | | function getDownIssueList(query, issueTypeId, excludeList, page, callBack) { |
| | | var conditions = { |
| | | name : query, |
| | | // issueTypeIds : (function () { |
| | | // var ids = []; |
| | | // |
| | | // ids.push(issueTypeId); |
| | | // |
| | | // return ids; |
| | | // })(), |
| | | issueTypeIds : (function () { |
| | | var ids = []; |
| | | |
| | | ids.push(issueTypeId); |
| | | |
| | | return ids; |
| | | })(), |
| | | excludeIds : (function () { |
| | | var excludeIds = []; |
| | | |
| | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | function getIssueDepartmentList(query, excludeList, page, callBack) { |
| | | function getIssueDepartmentList(issueTypeId, query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | //issueTypeId : $scope.vm.form.issueTypeId, |
| | | issueTypeId : (function () { |
| | | var issueTypeId = ""; |
| | | if ($rootScope.currentDetailIssueId != null) { |
| | | issueTypeId = $rootScope.currentDetailIssueId; |
| | | } else { |
| | | issueTypeId = $scope.vm.form.issueTypeId; |
| | | } |
| | | return issueTypeId; |
| | | })(), |
| | | issueTypeId : issueTypeId, |
| | | departmentName : query, |
| | | userId : $rootScope.user.id, |
| | | projectId : (function () { |