| | |
| | | |
| | | |
| | | CompanyField.find($resourceProvider.getContent( // 페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다. |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) { |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 100 : 1000))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | if ($rootScope.isDefined(callBack)) { |
| | | callBack(result); |
| | |
| | | var deferred = $q.defer(); |
| | | |
| | | IspField.find($resourceProvider.getContent( // 페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다. |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) { |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 100 : 1000))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | if ($rootScope.isDefined(callBack)) { |
| | | callBack(result); |
| | |
| | | } |
| | | |
| | | CompanyFieldCategory.find($resourceProvider.getContent( // 페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다. |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) { |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 100 : 1000))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | if ($rootScope.isDefined(callBack)) { |
| | | callBack(result); |
| | |
| | | parentId : (function () { // 업종(대분류) |
| | | var parentId = ""; |
| | | if (parentSector != null && parentSector !== "") { |
| | | parentId = parentSector[0].id; |
| | | parentId = parentSector; |
| | | }else { |
| | | parentId = parentSectorId; |
| | | } |
| | |
| | | } |
| | | |
| | | CompanyFieldCategory.find($resourceProvider.getContent( // 페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다. |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 10 : 25))).then(function (result) { |
| | | conditions, $resourceProvider.getPageContent($rootScope.isDefined(page) ? page : 0, $rootScope.isDefined(page) ? 100 : 1000))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | if ($rootScope.isDefined(callBack)) { |
| | | callBack(result); |
| | |
| | | var deferred = $q.defer(); |
| | | |
| | | var partners = $scope.vm.partners.slice(); |
| | | if (excludeList != null && excludeList.length > 0) { |
| | | if (excludeList != null && excludeList.id.length > 0) { |
| | | var filterData = excludeList.id.filter(function(item, idx){ |
| | | return excludeList.id.findIndex(function(item2, idx2){ |
| | | return item === item2 |
| | | }) == idx; |
| | | }); |
| | | for (let i = partners.length - 1 ; i >= 0 ; i--) { |
| | | excludeList.forEach(function (exclude) { |
| | | if (partners[i].id === exclude.id) { |
| | | filterData.forEach(function (exclude) { |
| | | if (partners[i] !== null && partners[i].id === exclude) { |
| | | partners.splice(i, 1); |
| | | if (partners[i] == null) { |
| | | return false; |
| | | } |
| | | } |
| | | }); |
| | | } |