Ejemplo n.º 1
0
        public SendLabelInputPageViewModel(INavigationService navigationService,
                                           IBarcodeReaderService barcodeReaderService,
                                           IStatusBarService statusBarService,
                                           INotificationService notificationService,
                                           IBillOfLadingService billOfLadingService,
                                           IWifiService wifiService,
                                           IPopupNavigation popupNavigation)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService = notificationService;
            _billOfLadingService = billOfLadingService;
            _wifiService         = wifiService;
            _popupNavigation     = popupNavigation;

            Model = new SendLabelInputModel();
            MenuAdtionalButtons = new Dictionary <string, DelegateCommand>();
        }
Ejemplo n.º 2
0
        private async void SendLabelCommandHandler()
        {
            if (Model.VehicleViewInfo != null)
            {
                var sendLabelInputModel = new SendLabelInputModel()
                {
                    Vehicle            = Model.CarNumber,
                    VehicleDescription = Model.VehicleDescription,
                    UnitDestination    = Model.VehicleViewInfo.UnitSendCode,
                    UnitDescription    = Model.VehicleViewInfo.UnitSendDescription,
                    Date            = Model.Date,
                    Line            = Model.Line,
                    TrafficSchedule = Model.TrafficSchedule
                };

                await NavigationService.NavigateAsync("SendLabelInputPage", new NavigationParameters()
                {
                    { "SendLabelInputModel", sendLabelInputModel }
                });
            }
        }