| | |
| | | removeDepartment : removeDepartment, // 담당부서 삭제 |
| | | setIssueTypeTemplate : setIssueTypeTemplate, // 이슈 유형 템플릿 적용하기 |
| | | startExecute : startExecute, // 컨트롤 로딩시 처음으로 시작되는 함수 |
| | | containsPartner : containsPartner |
| | | containsPartner : containsPartner, |
| | | getPartners : getPartners |
| | | }; |
| | | |
| | | $scope.vm = { |
| | |
| | | function containsPartner(name) { |
| | | var result = false; |
| | | |
| | | if ($scope.vm.viewer.usePartnerVo != null) { |
| | | $scope.vm.viewer.usePartnerVo.forEach(function (partnerVo) { |
| | | if ($scope.vm.partnerVos != null) { |
| | | $scope.vm.partnerVos.forEach(function (partnerVo) { |
| | | if (name === partnerVo.name) { |
| | | result = true; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | function getPartners() { |
| | | |
| | | HostingField.getPartnerList($resourceProvider.getContent( |
| | | {}, |
| | | $resourceProvider.getPageContent(0, 1))).then(function (result) { |
| | | if (result.data.message.status === "success") { |
| | | $scope.vm.partnerVos = result.data.content; |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | // 최초 실행 |
| | | function startExecute() { |
| | | |
| | |
| | | |
| | | var deferred = $q.defer(); |
| | | |
| | | HostingField.getCompanyList($resourceProvider.getContent( // 페이징 업데이트가 필요한 컴포넌트 일경우, page 업데이트가 있을 경우 기본 10개씩 가져오고 아닐경우 25개씩 가져온다. |
| | | HostingField.getPartnerList($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)) { |
| | |
| | | <js-autocomplete-multi data-input-name="departments" |
| | | selected-model="vm.form.companies" |
| | | search="vm.companyName" |
| | | source="fn.getCompanyList(vm.companyName, vm.form.companies)" |
| | | source="fn.getPartnerList(vm.companyName, vm.form.companies)" |
| | | input-disabled="false" |
| | | translation-texts="{ count : 'common.userNum', empty : 'common.emptyUser' }" |
| | | extra-settings="{ displayProp : 'byName' , idProp : 'id', imageable : false, maxlength : 100, autoResize : true }"></js-autocomplete-multi> |
| | |
| | | <js-autocomplete-multi data-input-name="departments" |
| | | selected-model="vm.form.companies" |
| | | search="vm.companyName" |
| | | source="fn.getCompanyList(vm.companyName, vm.form.companies)" |
| | | source="fn.getPartnerList(vm.companyName, vm.form.companies)" |
| | | input-disabled="false" |
| | | translation-texts="{ count : 'common.userNum', empty : 'common.emptyUser' }" |
| | | extra-settings="{ displayProp : 'byName' , idProp : 'id', imageable : false, maxlength : 100, autoResize : true }"></js-autocomplete-multi> |