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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Load Base data of Credit Limit
 /// </summary>
 public CreditLimitBaseDataResponse LoadCreditLimitBaseData()
 {
     return(new CreditLimitBaseDataResponse
     {
         BpRatingTypes = ratingTypeRepository.GetAll(),
         BusinessPartnerSubTypes = subTypeRepository.GetAll()
     });
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Load Seasonal Discount Base data
 /// </summary>
 public SeasonalDiscountBaseResponse GetBaseData()
 {
     return(new SeasonalDiscountBaseResponse
     {
         Companies = companyRepository.GetAll(),
         Departments = departmentRepository.GetAll(),
         Operations = operationRepository.GetAll(),
         TariffTypes = tariffTypeRepository.GetAll(),
         OperationsWorkPlaces = operationsWorkPlaceRepository.GetAll(),
         VehicleCategories = vehicleCategoryRepository.GetAll(),
         VehicleModels = vehicleModelRepository.GetAll(),
         VehicleMakes = vehicleMakeRepository.GetAll(),
         HireGroups = hireGroupRepository.GetAll(),
         BpRatingTypes = ratingTypeRepository.GetAll(),
     });
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Load all Rating Types
 /// </summary>
 public IEnumerable <BpRatingType> LoadAll()
 {
     return(bpRatingTypeRepository.GetAll());
 }