| | |
| | | fileTableConfigs : [], // 파일 업로드 정보 테이블 |
| | | }; |
| | | |
| | | // 연관 일감 관련 |
| | | $scope.vm.relationIssueTypes = |
| | | [ |
| | | { id: 0, name: $filter("translate")("issue.relationIssueType1") }, |
| | | { id: 1, name: $filter("translate")("issue.relationIssueType2") }, |
| | | { id: 2, name: $filter("translate")("issue.relationIssueType3") }, |
| | | { id: 3, name: $filter("translate")("issue.relationIssueType4") }, |
| | | { id: 4, name: $filter("translate")("issue.relationIssueType5") }, |
| | | { id: 5, name: $filter("translate")("issue.relationIssueType6") } |
| | | ]; |
| | | $scope.vm.relationIssueType = $scope.vm.relationIssueTypes[0]; |
| | | |
| | | angular.extend(this, $controller('autoCompleteController', {$scope : $scope, $injector : $injector})); |
| | | |
| | | function getStartProjectListCallback(result){ |
| | |
| | | }).then(function (result) { |
| | | |
| | | if (result.data.message.status === "success") { |
| | | $scope.fn.addRelationIssue(); |
| | | $scope.fn.addRelationIssue(result.data.data); |
| | | |
| | | $scope.fn.cancel(); |
| | | |
| | |
| | | } |
| | | |
| | | // 연관 이슈 추가 |
| | | function addRelationIssue() { |
| | | function addRelationIssue(relId) { |
| | | /*if ($scope.vm.issueName.length == 0 || $scope.vm.form.issues.length == 0 |
| | | || $scope.vm.issueName != $scope.vm.form.issues[0].title) { |
| | | SweetAlert.error($filter("translate")("issue.errorSelectRelationIssue"), ""); |
| | |
| | | }*/ |
| | | |
| | | var contents = { |
| | | relationIssueType : $scope.vm.form.issueTypeId, |
| | | //relationIssueType : $scope.vm.form.relationIssueTypeId, |
| | | relationIssueType : $scope.vm.relationIssueType.id, |
| | | // issueId : $rootScope.currentDetailIssueId, |
| | | issueId : parameter.id, |
| | | relationIssueId : $scope.vm.form.issues[0].id, |
| | | relationIssueId : relId, |
| | | priorityName : $scope.vm.priorityName |
| | | }; |
| | | |