public BillOfLadingInformationsPageViewModel(INavigationService navigationService,
                                                     IBarcodeReaderService barcodeReaderService,
                                                     IStatusBarService statusBarService,
                                                     INotificationService notificationService,
                                                     IPopupNavigation popupNavigation,
                                                     IBillOfLadingService billOfLadingService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService = notificationService;
            _popupNavigation     = popupNavigation;
            _billOfLadingService = billOfLadingService;

            Model = new BillOfLadingInformationsModel();
        }
示例#2
0
        public BillOfLading VObject(BillOfLading billoflading, IBillOfLadingService _billofladingService)
        {
            BillOfLading oldbilloflading = _billofladingService.GetObjectById(billoflading.Id);

            if (oldbilloflading == null)
            {
                billoflading.Errors.Add("Generic", "Invalid Data For Update");
            }
            else if (!VOffice(billoflading.OfficeId, oldbilloflading.OfficeId))
            {
                billoflading.Errors.Add("Generic", "Invalid Data For Update");
            }
            return(billoflading);
        }
示例#3
0
        public BillOfLading VBillOfLading(BillOfLading billoflading, IBillOfLadingService _billofladingservice)
        {
            BillOfLading countrylocation = _billofladingservice.GetObjectById(billoflading.Id);

            if (countrylocation == null)
            {
                billoflading.Errors.Add("Country", "Tidak boleh kosong");
            }
            else if (!VOffice(billoflading.OfficeId, countrylocation.OfficeId))
            {
                billoflading.Errors.Add("Country", "Invalid Country");
            }
            return(billoflading);
        }
示例#4
0
        public PacksDetailViewPageViewModel(INavigationService navigationService,
                                            IBarcodeReaderService barcodeReaderService,
                                            IStatusBarService statusBarService,
                                            INotificationService notificationService,
                                            IPopupNavigation popupNavigation,
                                            IBillOfLadingService billOfLadingService,
                                            IWifiService wifiService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService = notificationService;
            _popupNavigation     = popupNavigation;
            _billOfLadingService = billOfLadingService;
            _wifiService         = wifiService;

            Model = new PacksDetailViewModel();
        }
示例#5
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>();
        }
示例#6
0
 public BillOfLading VUpdateObject(BillOfLading billoflading, IBillOfLadingService _billofladingService)
 {
     return(billoflading);
 }