OWL ITS + 탐지시스템(인터넷 진흥원)
src/main/webapp/scripts/app/issue/issueList.controller.js
@@ -61,6 +61,7 @@
                        registerDateRange : "", //  등록일 기간 검색
                        startDateRange : "",    //  시작일 기간 검색
                        completeDateRange : "", //  완료일 기간 검색
                        dateRange : "", //  기간 검색
                        severityIds : [],   //  중요도 검색
                        priorityIds : [],   //  우선순위 검색
                        issueStatusIds : [],    //  이슈 상태 검색
@@ -95,7 +96,7 @@
                    issueTreeConfigs : [],  //  이슈 테이블 설정
                    parentIssueId : "",
                    hideCompleteIssue : false,
                    hideDownIssue : true,
                    hideDownIssue : "1", //이슈목록에서 전체이슈보기 :0 상위이슈만보기: 1 하위이슈만보기:1
                    listMode : 0, // 목록 모드 0:기본 리스트 1:트리구조 리스트
                    allIssue : false
                };
@@ -298,6 +299,10 @@
                            $scope.vm.treeConfigs.push($treeProvider.config()
                                .setDName("register"));
                            break;
                        case "REGISTER_DATE" : //  등록일
                            $scope.vm.treeConfigs.push($treeProvider.config()
                                .setDName("registerDate"));
                            break;
                        case "PERIOD" : //  기간
                            $scope.vm.treeConfigs.push($treeProvider.config()
                                .setDName("period"));
@@ -337,7 +342,7 @@
                        case "ISSUE_TITLE" :   //  이슈 제목
                            $scope.vm.tableConfigs.push($tableProvider.config()
                                .setHName("issue.issueTitle")
                                .setDName("issueTitle")
                                .setDName("title")
                                .setDType("renderer")
                                .setHWidth("bold " + issueTableConfig.width)
                                .setDAlign("text-center")
@@ -384,10 +389,15 @@
                            $scope.vm.tableConfigs.push($tableProvider.config()
                                .setHName("common.register")
                                .setDName("registerId")
                                .setDType("renderer")
                                .setHWidth("bold " + issueTableConfig.width)
                                .setDAlign("text-center")
                                .setDRenderer("REGISTER"));
                                .setDAlign("text-center"));
                            break;
                        case "REGISTER_DATE" :   //  등록일
                            $scope.vm.tableConfigs.push($tableProvider.config()
                                .setHName("common.registerDate")
                                .setDName("registerDate")
                                .setHWidth("bold " + issueTableConfig.width)
                                .setDAlign("text-center"));
                            break;
                        case "PERIOD" : //  기간
                            $scope.vm.tableConfigs.push($tableProvider.config()
@@ -453,7 +463,7 @@
                                $scope.vm.tableConfigs.push($tableProvider.config()
                                    .setHName(customField.name)
                                    .setDType("renderer")
                                    .setDName("useValue" + [count]) /* todo 체크*/
                                    .setDName("useValue"+count)
                                    .setHWidth("bold " + issueTableConfig.width)
                                    .setDAlign("text-center")
                                    .setColumnHint(customField)
@@ -495,17 +505,16 @@
                        endStartDate : "",
                        beginCompleteDate : "",
                        endCompleteDate : "",
                        dateRange: "",
                        hideCompleteIssue: $scope.vm.hideCompleteIssue,
                        hideDownIssue : $scope.vm.hideDownIssue,
                        isTree : $scope.vm.listMode === 1,
                        projectIds : (function () {
                            var projectIds = [];
                            if (!$scope.vm.allIssue) { //전체 키워드 검색이 아닐 경우에만 프로젝트ID push
                                angular.forEach($scope.vm.projects, function (project) {
                                    projectIds.push(project.id);
                                });
                            }
                            angular.forEach($scope.vm.projects, function (project) {
                                projectIds.push(project.id);
                            });
                            return projectIds;
                        })(),
@@ -618,6 +627,10 @@
                        conditions.beginCompleteDate = completeDateRange[0].trim();
                        conditions.endCompleteDate = completeDateRange[1].trim();
                    }
                    //  기간
                    if ($rootScope.isDefined($scope.vm.search.dateRange)) {
                        conditions.dateRange = $scope.vm.search.dateRange.trim();
                    }
                    return conditions;
@@ -649,9 +662,10 @@
                        $scope.vm.hideCompleteIssue = true;
                    }
                    if ($scope.vm.hideDownIssue) {
                        $scope.vm.hideDownIssue = true;
                    }
                    // if ($scope.vm.hideDownIssue) {
                    //     $scope.vm.hideDownIssue = true;
                    // }
                    //  현재 페이지 정보
                    var currentPage = 0;
@@ -666,7 +680,7 @@
                    // 검색 기본값 세팅
                    $scope.vm.search.issueTypeIds = [];
                    $scope.vm.projects = [];
                    if (!$scope.vm.allIssue && keyWord == null || keyWord === '') {
                    if (keyWord == null || keyWord === '') {
                        // 메뉴에서 선택된 이슈 유형을 기본으로 추가
                        if ($rootScope.issueTypeMenu != null) {
                            $scope.vm.pageTitle = $rootScope.issueTypeMenu.name;
@@ -842,7 +856,7 @@
                }
                //  이슈 수정 팝업 호출
                function modify(id) {
                function modify(id, downTotalCount) {
                    $uibModal.open({
                        templateUrl : 'views/issue/issueModify.html',
                        size : "lg",
@@ -852,14 +866,17 @@
                            parameter : function () {
                                return {
                                    id : id,
                                    issueTypeId : $scope.vm.viewer.issueTypeVo.id
                                    issueTypeId : $scope.vm.viewer.issueTypeVo.id,
                                    inheritPartners : $scope.vm.viewer.issueTypeVo.inheritPartners,
                                    usePartner : $scope.vm.viewer.usePartnerVos,
                                    downTotalCount : downTotalCount
                                };
                            }
                        }
                    });
                }
                function addRelationIssueForm(id, issueTypeId) {
                function addRelationIssueForm(id, project, issueTypeId) {
                    $uibModal.open({
                        templateUrl : 'views/issue/issueAddRelation.html',
                        size : "lg",
@@ -869,6 +886,7 @@
                            parameter : function () {
                                return {
                                    id : id,
                                    project : project,
                                    issueTypeId : issueTypeId
                                };
                            }
@@ -876,7 +894,7 @@
                    });
                }
                function addDownIssueForm(id, issueTypeId) {
                function addDownIssueForm(id, project, issueTypeId) {
                    $uibModal.open({
                        templateUrl : 'views/issue/issueAddDown.html',
                        size : "lg",
@@ -886,6 +904,7 @@
                            parameter : function () {
                                return {
                                    id : id,
                                    project : project,
                                    issueTypeId : issueTypeId
                                };
                            }
@@ -1362,7 +1381,7 @@
                                //  이슈 테이블 설정 정보를 저장 한다.
                                $scope.vm.issueTableConfigs = JSON.parse(issueTableConfigs);
                                $scope.vm.issueTableConfigs.sort(function (a, b) {
                                    return a.position < b.position ? -1 : a.position > b.position ? 1: 0;
                                    return parseInt(a.position) < parseInt(b.position) ? -1 : parseInt(a.position) > parseInt(b.position) ? 1 : 0;
                                });
                            }
                            else {