| | |
| | | formSubmit : formSubmit, // 폼 전송 |
| | | formCheck : formCheck, // 폼 체크 |
| | | getCustomFields : getCustomFields, // 사용자 정의 필드 목록을 가져온다. |
| | | getIssueTableConfigs : getIssueTableConfigs // 이슈 목록 테이블 설정 정보를 가져온다. |
| | | getDownIssueTableConfigs : getDownIssueTableConfigs // 이슈 목록 테이블 설정 정보를 가져온다. |
| | | }; |
| | | |
| | | // 변수 모음 |
| | | $scope.vm = { |
| | | issueId : "", |
| | | issueTableConfigs : [{ |
| | | name : $filter("translate")("issue.downIssueTitle"), // |
| | | key : "DOWN_ISSUE_TITLE", |
| | | width : "width-100-p", |
| | | position : 1, |
| | | display : true |
| | | }, { |
| | | issueDownTableConfigs : [{ |
| | | name : $filter("translate")("common.priority"), // 우선순위 |
| | | key : "PRIORITY", |
| | | width : "width-80-p", |
| | | position : 2, |
| | | display : true |
| | | position : 1, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.importance"), // 중요도 |
| | | key : "SEVERITY", |
| | | width : "width-80-p", |
| | | position : 3, |
| | | display : true |
| | | position : 2, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("issue.issueType"), // 이슈 타입 |
| | | key : "ISSUE_TYPE", |
| | | width : "width-140-p", |
| | | position : 4, |
| | | display : true |
| | | }, { |
| | | name : $filter("translate")("common.assignee"), // 담당자 |
| | | key : "ASSIGNEE", |
| | | name : $filter("translate")("common.assigneeTeam"), // 담당부서 |
| | | key : "ASSIGNEE_TEAM", |
| | | width : "width-100-p", |
| | | position : 5, |
| | | display : true |
| | | position : 3, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.register"), // 등록자 |
| | | key : "REGISTER", |
| | | width : "width-100-p", |
| | | position : 6, |
| | | position : 4, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.period"), // 기간 |
| | | key : "PERIOD", |
| | | width : "width-140-p", |
| | | position : 7, |
| | | position : 5, |
| | | display : false |
| | | }, { |
| | | name : $filter("translate")("common.lastChangeDate"), // 최근 변경일 |
| | | key : "MODIFY_DATE", |
| | | width : "width-100-p", |
| | | position : 8, |
| | | position : 6, |
| | | display : false |
| | | }, { |
| | | }] |
| | |
| | | |
| | | var content = { |
| | | issueId : $rootScope.currentDetailIssueId, |
| | | issueTableConfigs : JSON.stringify($scope.vm.issueTableConfigs) |
| | | issueTableConfigs : JSON.stringify($scope.vm.issueDownTableConfigs) |
| | | }; |
| | | |
| | | IssueTableConfig.downAdd($resourceProvider.getContent(content, |
| | |
| | | |
| | | if (result.data.message.status === "success") { |
| | | SweetAlert.success($filter("translate")("issue.completedSavingIssueTable"), $filter("translate")("issue.saveIssueTableSettingsInformation")); // "이슈 테이블 설정 저장 완료", "이슈 테이블 설정 정보가 저장되었습니다." |
| | | swal.close(); |
| | | $scope.fn.cancel(); |
| | | // 변경된 이슈 테이블 정보를 이슈 목록 테이블에 갱신한다. |
| | | $rootScope.$broadcast("getIssueTableConfigs", {}); |
| | | $rootScope.$broadcast("getIssueDetail", { id : $rootScope.currentDetailIssueId}); |
| | | |
| | | } |
| | | else { |
| | | SweetAlert.error($filter("translate")("issue.failedToSaveIssueTableSetting"), result.data.message.message); // 이슈 테이블 설정 저장 실패 |
| | |
| | | } |
| | | |
| | | // 이슈 목록 테이블 설정 정보를 가져온다. |
| | | function getIssueTableConfigs() { |
| | | function getDownIssueTableConfigs() { |
| | | var deferred = $q.defer(); |
| | | |
| | | var content = { |
| | | issueId : $rootScope.currentDetailIssueId, |
| | | delValue : $scope.vm.issueDownTableConfigs.splice(6,1), |
| | | issueTableConfigs : JSON.stringify($scope.vm.issueDownTableConfigs) |
| | | }; |
| | | |
| | | IssueTableConfig.downDetail($resourceProvider.getContent(content, |
| | | $resourceProvider.getPageContent(0, 1000))).then(function (result) { |
| | |
| | | |
| | | // 사용자 정의 필드를 조회한 후 표시할 이슈 테이블 컬럼을 준비한다. |
| | | $scope.fn.getCustomFields().then(function (result) { |
| | | var count = 8; |
| | | var count = 6; |
| | | angular.forEach(result, function (customField) { |
| | | $scope.vm.issueTableConfigs.push({ |
| | | $scope.vm.issueDownTableConfigs.push({ |
| | | name : customField.name, |
| | | key : "CUSTOM_FIELD_" + customField.id, |
| | | width : "width-100-p", |
| | |
| | | }); |
| | | |
| | | // 이슈 목록 테이블 설정 정보를 가져온다. |
| | | $scope.fn.getIssueTableConfigs().then(function (issueTableConfigs) { |
| | | $scope.fn.getDownIssueTableConfigs().then(function (issueTableConfigs) { |
| | | if ($rootScope.isDefined(issueTableConfigs)) { |
| | | $rootScope.spinner = true; |
| | | |
| | |
| | | |
| | | angular.forEach(saveTableConfigs, function (saveTableConfig) { |
| | | |
| | | for (var count in $scope.vm.issueTableConfigs) { |
| | | var issueTableConfig = $scope.vm.issueTableConfigs[count]; |
| | | for (var count in $scope.vm.issueDownTableConfigs) { |
| | | var issueTableConfig = $scope.vm.issueDownTableConfigs[count]; |
| | | |
| | | if (issueTableConfig.key === saveTableConfig.key) { |
| | | issueTableConfig.display = saveTableConfig.display; |