public BusinessPartnerBaseDataResponse LoadAll()
        {
            BusinessPartnerBaseDataResponse response = new BusinessPartnerBaseDataResponse();

            response.ResponseCompanies                        = companyRepository.GetAll();
            response.ResponsePaymentTerms                     = paymentTermRepository.GetAll();
            response.ResponseBusinessLegalStatuses            = businessLegalStatusRepository.GetAll();
            response.ResponseBPRatingTypes                    = bpRatingTypeRepository.GetAll();
            response.ResponseBusinessPartners                 = businessPartnerRepository.GetAll();
            response.ResponseDealingEmployees                 = employeeRepository.GetAll();
            response.ResponseOccupationTypes                  = occupationTypeRepository.GetAll();
            response.ResponseBusinessPartnerCompanies         = businessPartnerCompanyRepository.GetAll();
            response.ResponseCountries                        = countryRepository.GetAll();
            response.ResponseBusinessSegments                 = businessSegmentRepository.GetAll();
            response.ResponseBusinessPartnerSubTypes          = businessPartnerSubTypeRepository.GetAll();
            response.ResponsePhoneTypes                       = phoneTypeRepository.GetAll();
            response.ResponseAddressTypes                     = addressTypeRepository.GetAll();
            response.ResponseMarketingChannels                = marketingChannelRepository.GetAll();
            response.ResponseBusinessPartnerRelationshipTypes = businessPartnerRelationshipTypeRepository.GetAll();
            response.ResponseRegions    = regionRepository.GetAll();
            response.ResponseSubRegions = subRegionRepository.GetAll();
            response.ResponseCities     = cityRepository.GetAll();
            response.ResponseAreas      = areaRepository.GetAll();
            return(response);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Get RA Queue Base Data
 /// </summary>
 /// <returns></returns>
 public RaQueueBaseResponse GetBaseData()
 {
     return(new RaQueueBaseResponse
     {
         Operations = operationRepository.GetSalesOperation(),
         OperationWorkPlaces = operationsWorkPlaceRepository.GetSalesOperationsWorkPlace(),
         PaymentTerms = paymentTermRepository.GetAll(),
         RaStatuses = raStatusRepository.GetAll(),
     });
 }
Exemplo n.º 3
0
 /// <summary>
 /// Load All
 /// </summary>
 /// <returns></returns>
 public IEnumerable <PaymentTerm> LoadAll()
 {
     return(paymentTermRepository.GetAll());
 }