OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-11-22 a87c349a72f69104d7ded34274a2f610c8068738
src/main/webapp/scripts/components/utils/autoComplete.controller.js
@@ -31,10 +31,10 @@
                $scope.fn.getIssueList = getIssueList;  //  일감 목록 정보를 조회한다.
                $scope.fn.getWorkflowList = getWorkflowList;    //  워크플로우 목록 정보를 조회한다.
                $scope.fn.getUserDepartmentList = getUserDepartmentList;    //  부서 목록 정보를 조회한다.
                $scope.fn.getCompanyFieldList = getCompanyFieldList;    //  업체 목록 정보를 조회한다.
                $scope.fn.getIssueCompanyFieldList = getIssueCompanyFieldList;    //  업체 목록 정보를 조회한다.
                $scope.fn.getIssueDepartmentList = getIssueDepartmentList;    //  담당자 -> 담당부서 목록 정보를 조회한다.
                $scope.fn.getIspFieldList = getIspFieldList;    //  ISP 목록 정보를 조회한다.
                $scope.fn.getHostingFieldList = getHostingFieldList;    //  호스팅 목록 정보를 조회한다.
                $scope.fn.getIssueIspFieldList = getIssueIspFieldList;    //  ISP 목록 정보를 조회한다.
                $scope.fn.getIssueHostingFieldList = getIssueHostingFieldList;    //  호스팅 목록 정보를 조회한다.
                function getUserList(query, excludeList, page, callBack) {
                    var conditions = {
@@ -191,7 +191,6 @@
                function getUserDepartmentList(query, excludeList, page, callBack) {
                    var conditions = {
                        departmentName : query,
                        departmentId : $rootScope.department.id,
                        excludeIds : (function () { //excludeIds : 제외 할 리스트
                            var excludeIds = [];
                            angular.forEach(excludeList, function (exclude) {
@@ -219,7 +218,7 @@
                    return deferred.promise;
                }
                function getCompanyFieldList(query, excludeList, page, callBack) {
                function getIssueCompanyFieldList(query, excludeList, page, callBack) {
                    var conditions = {
                        companyName : query,
                        excludeIds : (function () {
@@ -258,6 +257,17 @@
                    var conditions = {
                        departmentName : query,
                        userId : $rootScope.user.id,
                        projectId : (function () {
                            var projectId = "";
                            if ($rootScope.isDefined($scope.vm.form)) {
                                angular.forEach($scope.vm.form.projects, function (project) {
                                    projectId = project.id;
                                });
                            }
                            return projectId;
                        })(),
                        excludeIds : (function () {
                            var excludeIds = [];
@@ -272,8 +282,8 @@
                    var deferred = $q.defer();
                    UserWorkspace.departmentFind($resourceProvider.getContent(         //  페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다.
                    //프로젝트에 속해있는 담당부서 찾기
                    UserWorkspace.findProjectDepartment($resourceProvider.getContent(         //  페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다.
                        conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) {
                        if (result.data.message.status === "success") {
                            if ($rootScope.isDefined(callBack)) {
@@ -290,7 +300,7 @@
                    return deferred.promise;
                }
                function getIspFieldList(query, excludeList, page, callBack) {
                function getIssueIspFieldList(query, excludeList, page, callBack) {
                    var conditions = {
                        ispName : query,
                        excludeIds : (function () {
@@ -325,7 +335,7 @@
                    return deferred.promise;
                }
                function getHostingFieldList(query, excludeList, page, callBack) {
                function getIssueHostingFieldList(query, excludeList, page, callBack) {
                    var conditions = {
                        hostingName : query,
                        excludeIds : (function () {