Esempio n. 1
0
 public RoutePointOrderPickupModel(IMvxNavigationService navigationService, IRoutesService routesService, ICarrierOrdersService ordersService, IUserDialogs dialogsService)
 {
     this.navigationService = navigationService;
     this.routesService     = routesService;
     this.ordersService     = ordersService;
     this.dialogsService    = dialogsService;
 }
Esempio n. 2
0
 public RoutesPartHandler(IRoutesService routesService)
 {
     _routesService = routesService;
     OnActivated <RoutesPart>(SetupLazyFields);
     OnPublished <RoutesPart>((context, part) => PublishAliases(part));
     OnRemoved <RoutesPart>((ctx, part) => RemoveAliases(part));
     OnUnpublished <RoutesPart>((ctx, part) => RemoveAliases(part));
 }
Esempio n. 3
0
        public CarrierSideActiveRouteViewModel(IRoutesService routesService, ICarrierOrdersService ordersService, IMvxNavigationService navigationService, IUserDialogs dialogsService)
        {
            this.routesService     = routesService;
            this.navigationService = navigationService;
            this.ordersService     = ordersService;
            this.dialogsService    = dialogsService;

            this.routesService.ActiveRouteUpdated += UpdateActiveRoute;
        }
        public CarrierSideRouteEditViewModel(IRoutesService routesService, ICarrierOrdersService ordersService, IMvxNavigationService navigationService, IUserDialogs dialogsService)
        {
            this.routesService     = routesService;
            this.navigationService = navigationService;
            this.ordersService     = ordersService;
            this.dialogsService    = dialogsService;

            this.ordersService.AcceptedOrdersUpdated += UpdatePoints;
        }
Esempio n. 5
0
        public static IRoutesService GetRoutesService()
        {
            if (_routesService == null)
            {
                _routesService = new RoutesService(GetSettingService(), GetLoggerService());
            }

            return(_routesService);
        }
 public TransportWorkTicketsController(ITransportWorkTicketsService transportWorkTicketsService, ICarsService carsService, IUsersService usersService, IRoutesService routesService, UserManager <ApplicationUser> userManager, IRouteTransportWorkTicketsService routeTransportWorkTicketsService)
 {
     this.transportWorkTicketsService = transportWorkTicketsService;
     this.carsService   = carsService;
     this.usersService  = usersService;
     this.routesService = routesService;
     this.userManager   = userManager;
     this.routeTransportWorkTicketsService = routeTransportWorkTicketsService;
 }
        public CarrierSideViewViewModel(IRoutesService routesService, IMvxNavigationService navigationService)
        {
            this.routesService     = routesService;
            this.navigationService = navigationService;

            this.editRouteVM   = Mvx.IocConstruct <CarrierSideRouteEditViewModel>();
            this.activeRouteVM = Mvx.IocConstruct <CarrierSideActiveRouteViewModel>();

            this.routesService.ActiveRouteUpdated += onActiveRouteUpdated;
        }
Esempio n. 8
0
        public RoutesController(IRoutesService routesService, NotificationHub notificationHub)
        {
            _routesService = routesService;

            // Utilizar para consulta de listas filtradas.
            // http://www.sql-server-performance.com/2012/entity-framework-performance-optimization/
            var listRoute =_routesService.List().Where(x=>x.ID == 1);

            _notificationHub = notificationHub;
        }
Esempio n. 9
0
        public RoutesController(IRoutesService routesService, NotificationHub notificationHub)
        {
            _routesService = routesService;

            // Utilizar para consulta de listas filtradas.
            // http://www.sql-server-performance.com/2012/entity-framework-performance-optimization/
            var listRoute = _routesService.List().Where(x => x.ID == 1);

            _notificationHub = notificationHub;
        }
Esempio n. 10
0
        public RoutePointActiveListViewModel(IRoutesService routesService, ICarrierOrdersService ordersService, IMvxNavigationService navigationService, IUserDialogs dialogsService, IMvxPhoneCallTask phoneCallService)
        {
            this.routesService     = routesService;
            this.navigationService = navigationService;
            this.ordersService     = ordersService;
            this.phoneCallService  = phoneCallService;
            this.dialogsService    = dialogsService;

            this.passPointDialogConfig            = new ConfirmConfig();
            this.passPointDialogConfig.OkText     = "Tak";
            this.passPointDialogConfig.CancelText = "Nie";
            this.passPointDialogConfig.Title      = "Zakończ punkt";
            this.passPointDialogConfig.Message    = "Czy na pewno chcesz zakończyć ten punkt?";
            this.passPointDialogConfig.OnAction  += x => PassPoint(x);
        }
Esempio n. 11
0
 public RouteTransportWorkTisketsService(IDeletableEntityRepository <RouteTransportWorkTicket> routeTransportWorkTicketsRepository, IRoutesService routesService)
 {
     this.routeTransportWorkTicketsRepository = routeTransportWorkTicketsRepository;
     this.routesService = routesService;
 }
Esempio n. 12
0
 public CarrierPickupOrdersViewModel(IMvxNavigationService navigationService, IRoutesService routesService)
 {
     this.navigationService = navigationService;
     this.routesService     = routesService;
 }
Esempio n. 13
0
 public RoutesController(IAirportsProvider airportsProvider, IRoutesService routesService)
 {
     _airportsProvider = airportsProvider;
     _routesService    = routesService;
 }
Esempio n. 14
0
        public RobotService(ILocationService locationService, IRoutesService routesService)
        {
            _locationService = locationService;

            _routesService = routesService;
        }
        public CarrierFinishedRoutesViewModel(IMvxNavigationService navigationService, IRoutesService routesService)
        {
            this.navigationService = navigationService;
            this.routesService     = routesService;

            this.routesService.FinishedRoutesUpdated += (sender, e) =>
                                                        this.RaisePropertyChanged(() => this.Routes);
        }
Esempio n. 16
0
 public RoutesController(IRoutesService routesService)
 {
     this.routesService = routesService;
 }
        public CarrierMapViewModel(IDeviceProvider deviceProvider, IMvxNavigationService navigationService, ICarrierOrdersService ordersService, IRoutesService routesService, INotificationsProvider notificationsProvider)
        {
            this.deviceProvider        = deviceProvider;
            this.navigationService     = navigationService;
            this.ordersService         = ordersService;
            this.routesService         = routesService;
            this.notificationsProvider = notificationsProvider;

            this.notificationsProvider.SocketStatusUpdated += (sender, value) => RaisePropertyChanged(() => this.SignalrConnectionStatus);


            this.ordersService.PendingOrdersUpdated += this.PendingOrdersEventHandler;
            this.routesService.ActiveRouteUpdated   += this.ActiveRouteEventHandler;

            this.sideView = Mvx.IocConstruct <CarrierSideViewViewModel>();
            this.floatingOrdersViewModel = Mvx.IocConstruct <CarrierFloatingOrdersViewModel>();
        }
 public CarrierRouteDetailsViewModel(IMvxNavigationService navigationService, IRoutesService routesService)
 {
     this.navigationService = navigationService;
     this.routesService     = routesService;
 }
 /// <summary>
 ///     Root Controller constructor
 /// </summary>
 /// <param name="routesService">Service responsible for all the operations over the Routes</param>
 /// <param name="pointsService">Service responsible for all the operations over the Points</param>
 /// <param name="accountsService">Service responsible for all the operations over the accounts</param>
 public RoutesController(IRoutesService routesService, IPointsService pointsService, IAccountsService accountsService)
 {
     _accountsService = accountsService;
     _routesService   = routesService;
     _pointsService   = pointsService;
 }
Esempio n. 20
0
 public ProfileViewModel(IMvxNavigationService navigationService, ISessionProvider sessionProvider, IDeviceProvider deviceProvider,
                         ICarrierOrdersService carrierOrdersService, ISalepointOrdersService salepointOrdersService, IRoutesService routesService, INotificationsProvider notificationsProvider)
 {
     this.sessionProvider        = sessionProvider;
     this.navigationService      = navigationService;
     this.deviceProvider         = deviceProvider;
     this.carrierOrdersService   = carrierOrdersService;
     this.salepointOrdersService = salepointOrdersService;
     this.routesService          = routesService;
     this.notificationsProvider  = notificationsProvider;
 }