| | |
| | | containsPartner : containsPartner, |
| | | getPartners : getPartners, |
| | | addRelationIssue : addRelationIssue, |
| | | getDepartments : getDepartments |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | |
| | | $scope.$watch("vm.form.issueTypeId", function (newValue, oldValue) { |
| | | $scope.vm.partnerVos = $scope.fn.getPartners(); |
| | | $scope.vm.form.departments = []; |
| | | getDepartments(Number(newValue)); |
| | | }); |
| | | |
| | | // 섬머노트 이미지 업로드 |
| | |
| | | |
| | | } |
| | | |
| | | function getDepartments(issueTypeId) { |
| | | if($rootScope.isDefined(issueTypeId) && $scope.vm.form.issueTypeId === ""){ |
| | | $scope.vm.form.issueTypeId = $rootScope.issueTypeMenu.id |
| | | } |
| | | var content = { |
| | | issueTypeId : $scope.vm.form.issueTypeId, |
| | | }; |
| | | Issue.findReadyDepartments($resourceProvider.getContent( |
| | | content, |
| | | $resourceProvider.getPageContent(0, 1))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | $scope.vm.form.departments = []; |
| | | angular.forEach(result.data.data, function (department) { |
| | | department.byName = department.departmentName; |
| | | $scope.vm.form.departments.push(department); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | // 최초 실행 |
| | | function startExecute() { |
| | | |
| | |
| | | getIssueTypes : $scope.fn.getIssueTypes(), |
| | | getPriorities : $scope.fn.getPriorities(), |
| | | getSeverities : $scope.fn.getSeverities(), |
| | | getPartners : $scope.fn.getPartners() |
| | | getPartners : $scope.fn.getPartners(), |
| | | //getDepartments : $scope.fn.getDepartments() |
| | | }; |
| | | $q.all(promises).then(function (results) { |
| | | // 현재 프로젝트 설정 |