| | |
| | | $scope.fn.addDownIssueTableConfig = addDownIssueTableConfig; // 하위 이슈 목록 테이블 설정 |
| | | $scope.fn.getRelTableConfigs = getRelTableConfigs; |
| | | $scope.fn.getDownTableConfigs = getDownTableConfigs; |
| | | $scope.fn.containsPartner = containsPartner; |
| | | $scope.fn.onActivate = onActivate; |
| | | |
| | | // 이슈 목록 컨트롤러 vm, fn 상속 중 |
| | | $scope.vm.viewer = {}; |
| | |
| | | |
| | | $scope.vm.issueName = ""; // 선택된 연관 일감 이름 |
| | | $scope.vm.issueId = ""; // |
| | | $scope.vm.issueTypeId = ""; |
| | | $scope.vm.autoCompletePage = { |
| | | issue : { |
| | | page : 0, |
| | |
| | | |
| | | function changeDetailView(issue) { |
| | | // 이슈 번호를 저장한 후 이슈 목록으로 이동한다. |
| | | // $rootScope.$broadcast("makeIssueSearch", issue); |
| | | //$rootScope.$broadcast("makeIssueSearch",issue); |
| | | $scope.$parent.tableEvent.changeDetailView(issue.id); |
| | | $scope.fn.onActivate(); |
| | | } |
| | | |
| | | function onActivate() { |
| | | window.scroll(0,240); |
| | | } |
| | | |
| | | angular.extend(this, $controller('autoCompleteController', {$scope : $scope, $injector : $injector})); |
| | |
| | | .setDAlign("text-center") |
| | | .setDName("modifyDate")); |
| | | break; |
| | | // default :"ISSUE_RELATION_DELETE" // 연관 삭제 |
| | | // $scope.vm.relTableConfigs.push($tableProvider.config() |
| | | // .setHName("issue.downIssueTitle") |
| | | // .setDType("renderer") |
| | | // .setHWidth("bold" + issueTableConfig.width) |
| | | // .setHSort(false) |
| | | // .setDRenderer("ISSUE_RELATION_DELETE")); |
| | | // break; |
| | | } |
| | | |
| | | // 사용자 정의 필드 컬럼 |
| | |
| | | // 연관 이슈 상세 조회 |
| | | function getRelTableConfigs() { |
| | | var content = { |
| | | issueId : $scope.vm.viewer.id |
| | | issueId : $scope.vm.viewer.id, |
| | | issueTypeId : $rootScope.getCurrentIssueTypeId() |
| | | }; |
| | | |
| | | IssueTableConfig.relationDetail($resourceProvider.getContent( |
| | |
| | | // 하위 이슈 상세 조회 |
| | | function getDownTableConfigs() { |
| | | var content = { |
| | | issueId : $scope.vm.viewer.id |
| | | issueId : $scope.vm.viewer.id, |
| | | issueTypeId : $rootScope.getCurrentIssueTypeId() |
| | | }; |
| | | |
| | | IssueTableConfig.downDetail($resourceProvider.getContent( |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | // 연관 이슈 추가 |
| | | function addRelationIssue() { |
| | |
| | | $scope.vm.editor.issueStatus = false; |
| | | $scope.vm.issueForm.issueStatusList = []; |
| | | $scope.vm.issueForm.issueStatusId = ""; |
| | | if ($scope.$root.$$phase !== '$apply' && $scope.$root.$$phase !== '$digest') { |
| | | $scope.vm.issueTypeId = $rootScope.getCurrentIssueTypeId(); |
| | | /*if ($scope.$root.$$phase !== '$apply' && $scope.$root.$$phase !== '$digest') { |
| | | $scope.$apply(); |
| | | } |
| | | }*/ |
| | | } |
| | | |
| | | // 이슈 상태 변경 |
| | |
| | | parameter : function () { |
| | | return { |
| | | issueTypeId : $scope.vm.viewer.issueTypeVo.id |
| | | |
| | | }; |
| | | } |
| | | } |
| | |
| | | return { |
| | | issueTypeId : $scope.vm.viewer.issueTypeVo.id |
| | | }; |
| | | |
| | | } |
| | | } |
| | | }); |
| | |
| | | }); |
| | | } |
| | | |
| | | // 업체/ISP/호스팅 이름이 포함 여부 확인 |
| | | function containsPartner(name) { |
| | | var result = false; |
| | | |
| | | if ($scope.vm.viewer.usePartnerVos != null) { |
| | | $scope.vm.viewer.usePartnerVos.forEach(function (partnerVo) { |
| | | if (name === partnerVo.name) { |
| | | result = true; |
| | | } |
| | | }); |
| | | } |
| | | return result; |
| | | |
| | | } |
| | | |
| | | // 이슈 상세 정보 조회 |
| | | function getIssueDetail() { |
| | | // 초기화 해야할 할목을 지정하여 다른 이슈를 클릭할 때 초기화해준다. |
| | |
| | | $scope.fn.getDownTableConfigs(); |
| | | |
| | | Issue.detail($resourceProvider.getContent( |
| | | {id : $scope.vm.viewer.id, deep : "02"}, |
| | | {id : $scope.vm.viewer.id, deep : "02", customFields : $scope.vm.customFields}, |
| | | $resourceProvider.getPageContent(0, 1))).then(function (result) { |
| | | |
| | | if (result.data.message.status === "success") { |
| | |
| | | $scope.vm.form.issuesDown.push(result.data.data); |
| | | |
| | | // 연관 이슈 반복문 |
| | | angular.forEach(result.data.data.issueRelationVos, function (issueRelationVo){ |
| | | issueRelationVo.relationIssueTypeName = $scope.vm.relationIssueTypes[issueRelationVo.relationIssueType].name; |
| | | $scope.vm.form.issues.push(issueRelationVo.issueRelation); |
| | | }); |
| | | if (result.data.data.issueRelationVos !== null) { |
| | | angular.forEach(result.data.data.issueRelationVos, function (issueRelationVo){ |
| | | issueRelationVo.relationIssueTypeName = $scope.vm.relationIssueTypes[issueRelationVo.relationIssueType].name; |
| | | $scope.vm.form.issues.push(issueRelationVo.issueRelation); |
| | | }); |
| | | } |
| | | |
| | | // 하위 이슈 반목문 |
| | | angular.forEach(result.data.data.issueDownVos, function (issueDownVo){ |
| | | $scope.vm.form.issuesDown.push(issueDownVo.issue); |
| | | }); |
| | | |
| | | if (result.data.data.issueDownVos !== null){ |
| | | angular.forEach(result.data.data.issueDownVos, function (issueDownVo){ |
| | | $scope.vm.form.issuesDown.push(issueDownVo.issue); |
| | | }); |
| | | } |
| | | $scope.vm.viewer.issueRelationVos = result.data.data.issueRelationVos; |
| | | $scope.vm.viewer.issueDownVos = result.data.data.issueDownVos; |
| | | } |
| | |
| | | switch (issueTypeCustomField.customFieldVo.customFieldType) { |
| | | case "INPUT" : |
| | | case "SINGLE_SELECT" : |
| | | case "NUMBER" : |
| | | case "DATETIME" : |
| | | case "IP_ADDRESS" : |
| | | case "EMAIL" : |
| | | case "SITE" : |
| | | case "TEL" : |
| | | issueTypeCustomField.useValues = ""; |
| | | break; |
| | | |
| | |
| | | resolve : { |
| | | parameter : function () { |
| | | return { |
| | | departmentVos : [$scope.vm.form.issues[0].departmentVos], |
| | | issueCompanyFields : [$scope.vm.form.issues[0].issueCompanyVos], |
| | | issueIspFields : [$scope.vm.form.issues[0].issueIspVos], |
| | | issueHostingFields : [$scope.vm.form.issues[0].issueHostingVos], |
| | | issueId : issueId, |
| | | projectId : projectId |
| | | }; |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | } |
| | | ]); |
| | | } |