From cd56d401c5233f24790a5be8ba4075a97ab80fe3 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 화, 28 12월 2021 19:20:08 +0900
Subject: [PATCH] 상위 프로젝트는 추가 못하도록 수정

---
 src/main/webapp/scripts/app/issue/issueAddRelationTableConfig.controller.js |   64 +++++++++++++++++++++-----------
 1 files changed, 42 insertions(+), 22 deletions(-)

diff --git a/src/main/webapp/scripts/app/issue/issueAddRelationTableConfig.controller.js b/src/main/webapp/scripts/app/issue/issueAddRelationTableConfig.controller.js
index 528f3a6..a4e5e62 100644
--- a/src/main/webapp/scripts/app/issue/issueAddRelationTableConfig.controller.js
+++ b/src/main/webapp/scripts/app/issue/issueAddRelationTableConfig.controller.js
@@ -8,8 +8,8 @@
         'angular'
     ],
     function (app, angular) {
-        app.controller('issueAddRelationTableConfigController', ['$scope', '$rootScope', '$log', '$resourceProvider', '$uibModalInstance', 'SweetAlert', '$timeout', 'IssueTableConfig', 'CustomField', '$q', '$filter',
-            function ($scope, $rootScope, $log, $resourceProvider, $uibModalInstance, SweetAlert, $timeout, IssueTableConfig, CustomField, $q, $filter) {
+        app.controller('issueAddRelationTableConfigController', ['$scope', '$rootScope', '$log', '$resourceProvider', '$uibModalInstance', 'SweetAlert', '$timeout', 'IssueTableConfig', 'CustomField', '$q', '$filter', 'parameter',
+            function ($scope, $rootScope, $log, $resourceProvider, $uibModalInstance, SweetAlert, $timeout, IssueTableConfig, CustomField, $q, $filter, parameter) {
 
 
                 //  �븿�닔 紐⑥쓬
@@ -23,43 +23,63 @@
 
                 //  蹂��닔 紐⑥쓬
                 $scope.vm = {
-                    issueId: "",
+                    issueTypeId: "",
                     issueRelTableConfigs : [{
+                        name : $filter("translate")("issue.relationIssueType"), // �뿰愿� �씠�뒋 援щ텇
+                        key : "RELATION_ISSUE_TYPE",
+                        width : "width-60-p",
+                        position : 0,
+                        display : true,
+                        checkboxShow : false
+                    }, {
+                        name : $filter("translate")("issue.relationIssueTitle"), // �뿰愿� �씠�뒋 �젣紐�
+                        key : "RELATION_ISSUE_TITLE",
+                        width : "width-60-p",
+                        position : 0,
+                        display : true,
+                        checkboxShow : false
+                    }, {
                         name : $filter("translate")("common.priority"), // �슦�꽑�닚�쐞
-                        key : "PRIORITY",
-                        width : "width-100-p",
+                        key : "RELATION_PRIORITY",
+                        width : "width-50-p",
                         position : 1,
-                        display : false
+                        display : false,
+                        checkboxShow : true
                     }, {
                         name : $filter("translate")("common.importance"), // 以묒슂�룄
-                        key : "SEVERITY",
-                        width : "width-100-p",
+                        key : "RELATION_SEVERITY",
+                        width : "width-50-p",
                         position : 2,
-                        display : false
+                        display : false,
+                        checkboxShow : true
                     }, {
                         name : $filter("translate")("common.assigneeTeam"), // �떞�떦遺��꽌
-                        key : "ASSIGNEE_TEAM",
+                        key : "RELATION_ASSIGNEE_TEAM",
                         width : "width-50-p",
                         position : 3,
-                        display : false
+                        display : false,
+                        checkboxShow : true
                     }, {
                         name : $filter("translate")("common.register"), // �벑濡앹옄
-                        key : "REGISTER",
+                        key : "RELATION_REGISTER",
                         width : "width-50-p",
                         position : 4,
-                        display : false
+                        display : false,
+                        checkboxShow : true
                     }, {
                         name : $filter("translate")("common.period"), // 湲곌컙
-                        key : "PERIOD",
+                        key : "RELATION_PERIOD",
                         width : "width-100-p",
                         position : 5,
-                        display : false
+                        display : false,
+                        checkboxShow : true
                     }, {
                         name : $filter("translate")("common.lastChangeDate"), // 理쒓렐 蹂�寃쎌씪
-                        key : "MODIFY_DATE",
+                        key : "RELATION_MODIFY_DATE",
                         width : "width-100-p",
                         position : 6,
-                        display : false
+                        display : false,
+                        checkboxShow : true
                     }, {
                     }]
                 };
@@ -79,7 +99,7 @@
                     $rootScope.spinner = true;
 
                     var content = {
-                        issueId : $rootScope.currentDetailIssueId,
+                        issueTypeId : $rootScope.getCurrentIssueTypeId(),
                         issueTableConfigs : JSON.stringify($scope.vm.issueRelTableConfigs)
                     };
 
@@ -96,8 +116,6 @@
                         else {
                             SweetAlert.error($filter("translate")("issue.failedToSaveIssueTableSetting"), result.data.message.message); // �씠�뒋 �뀒�씠釉� �꽕�젙 ���옣 �떎�뙣
                         }
-
-                        $rootScope.spinner = false;
                     });
                 }
 
@@ -133,7 +151,8 @@
 
                     var content = {
                         issueId : $rootScope.currentDetailIssueId,
-                        delValue : $scope.vm.issueRelTableConfigs.splice(6,1),
+                        issueTypeId : $rootScope.getCurrentIssueTypeId(),
+                        delValue : $scope.vm.issueRelTableConfigs.splice(8,1),
                         issueTableConfigs : JSON.stringify($scope.vm.issueRelTableConfigs)
                     };
 
@@ -151,13 +170,14 @@
 
                 //  �궗�슜�옄 �젙�쓽 �븘�뱶瑜� 議고쉶�븳 �썑 �몴�떆�븷 �씠�뒋 �뀒�씠釉� 而щ읆�쓣 以�鍮꾪븳�떎.
                 $scope.fn.getCustomFields().then(function (result) {
-                    var count = 6;
+                    var count = 8;
                     angular.forEach(result, function (customField) {
                         $scope.vm.issueRelTableConfigs.push({
                             name : customField.name,
                             key : "CUSTOM_FIELD_" + customField.id,
                             width : "width-100-p",
                             display : false,
+                            checkboxShow : true,
                             position : count
                         });
 

--
Gitblit v1.8.0