Example #1
0
 /// <summary>
 /// Get Tariff Rate Base Data
 /// </summary>
 /// <returns></returns>
 public TariffRateBaseResponse GetBaseData()
 {
     return(new TariffRateBaseResponse
     {
         Companies = companyRepository.GetAll(),
         Departments = departmentRepository.GetAll(),
         Operations = operationRepository.GetAll(),
         HireGroups = hireGroupRepository.GetAll(),
         VehicleModels = vehicleModelRepository.GetAll(),
         VehicleMakes = vehicleMakeRepository.GetAll(),
         VehicleCategories = vehicleCategoryRepository.GetAll(),
         TariffTypes = tariffTypeRepository.GetAll(),
     });
 }
Example #2
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(),
     });
 }
Example #3
0
        /// <summary>
        /// Load Hire Group Base data
        /// </summary>
        /// <returns></returns>
        public HireGroupBaseResponse LoadBaseData()
        {
            IEnumerable <Company>         companies         = companyRepository.GetAll();
            IEnumerable <HireGroup>       parentHireGroups  = hireGroupRepository.GetParentHireGroups();
            IEnumerable <VehicleCategory> vehicleCategories = vehicleCategoryRepository.GetAll();
            IEnumerable <VehicleMake>     vehicleMakes      = vehicleMakeRepository.GetAll();
            IEnumerable <VehicleModel>    vehicleModels     = vehicleModelRepository.GetAll();
            //exlude parent hire group
            IEnumerable <HireGroup> hireGroups = hireGroupRepository.GetHireGroupList();

            return(new HireGroupBaseResponse
            {
                Companies = companies,
                ParentHireGroups = parentHireGroups,
                VehicleCategories = vehicleCategories,
                VehicleMakes = vehicleMakes,
                VehicleModels = vehicleModels,
                HireGroups = hireGroups
            });
        }
Example #4
0
 /// <summary>
 /// Get Base Data
 /// </summary>
 /// <returns></returns>
 public VehicleBaseDataResponse GetBaseData()
 {
     return(new VehicleBaseDataResponse
     {
         Operations = operationRepository.GetAll(),
         FleetPools = fleetPoolRepository.GetAll(),
         Companies = companyRepository.GetAll(),
         Regions = regionRepository.GetAll(),
         FuelTypes = fuelTypeRepository.GetAll(),
         VehicleModels = vehicleModelRepository.GetAll(),
         VehicleStatuses = vehicleStatusRepository.GetAll(),
         Departments = departmentRepository.GetAll(),
         VehicleCategories = vehicleCategoryRepository.GetAll(),
         TransmissionTypes = transmissionTypeResposirory.GetAll(),
         VehicleMakes = vehicleMakeRepository.GetAll(),
         BusinessPartners = businessPartnerRepository.GetAll(),
         InsuranceType = insuranceTypeRepository.GetAll(),
         MaintenanceTypes = maintenanceTypeRepository.GetAll(),
         VehicleCheckList = vehicleCheckListRepository.GetAll(),
         Locations = operationsWorkPlaceRepository.GetSalesOperationsWorkPlace()
     });
 }
Example #5
0
 /// <summary>
 /// Load all Vehicle Categories
 /// </summary>
 public IEnumerable <VehicleCategory> LoadAll()
 {
     return(vehicleCategoryRepository.GetAll());
 }