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); }
/// <summary> /// Load City Base Data /// </summary> public CityBaseDataResponse LoadCityBaseData() { return(new CityBaseDataResponse { Countries = countryRepository.GetAll(), Regions = regionRepository.GetAll(), SubRegions = subRegionRepository.GetAll() }); }
public AddressBaseDataResponse LoadDataByCountry(int id) { AddressBaseDataResponse response = new AddressBaseDataResponse(); response.ResponseCountry = countryRepository.Find(id); response.ResponseRegions = regionRepository.GetRegionsByCountry(id); response.ResponseCities = cityRepository.GetCitiesByCountry(id); response.ResponseSubRegions = subRegionRepository.GetAll(); response.ResponseAreas = areaRepository.GetAll(); return(response); }
/// <summary> /// Load Work Location Base Data /// </summary> public WorkLocationBaseDataResponse LoadWorkLocationBaseData() { return(new WorkLocationBaseDataResponse { Companies = companyRepository.GetAll(), Countries = countryRepository.GetAll(), Regions = regionRepository.GetAll(), SubRegions = subRegionRepository.GetAll(), Cities = cityRepository.GetAll(), Areas = areaRepository.GetAll(), PhoneTypes = phoneTypeRepository.GetAll() }); }
/// <summary> /// Get Base Data /// </summary> /// <returns></returns> public EmployeeBaseResponse GetBaseData() { return(new EmployeeBaseResponse { EmpStatuses = empStatusRepository.GetAll(), Companies = companyRepository.GetAll(), JobTypes = jobTypeRepository.GetAll(), Departments = departmentRepository.GetAll(), DesigGrades = desigGradeRepository.GetAll(), WorkPlaces = workplaceRepository.GetAll(), Regions = regionRepository.GetAll(), Countries = countryRepository.GetAll(), SubRegions = subRegionRepository.GetAll(), Cities = cityRepository.GetAll(), Areas = areaRepository.GetAll(), PhoneTypes = phoneTypeRepository.GetAll(), LicenseTypes = licenseTypeRepository.GetAll(), Operations = operationRepository.GetAll(), OperationsWorkPlaces = operationsWorkPlaceRepository.GetAll(), Supervisors = employeeRepository.GetAll(), Designations = designationRepository.GetAll(), AddressTypes = addressTypeRepository.GetAll() }); }