| | |
| | | $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 = { |
| | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | function getCompanyFieldList(query, excludeList, page, callBack) { |
| | | function getIssueCompanyFieldList(query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | companyName : query, |
| | | excludeIds : (function () { |
| | |
| | | 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 = []; |
| | | |
| | |
| | | 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)) { |
| | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | function getIspFieldList(query, excludeList, page, callBack) { |
| | | function getIssueIspFieldList(query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | ispName : query, |
| | | excludeIds : (function () { |
| | |
| | | return deferred.promise; |
| | | } |
| | | |
| | | function getHostingFieldList(query, excludeList, page, callBack) { |
| | | function getIssueHostingFieldList(query, excludeList, page, callBack) { |
| | | var conditions = { |
| | | hostingName : query, |
| | | excludeIds : (function () { |