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(); }
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); }
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); }
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(); }
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>(); }
public BillOfLading VUpdateObject(BillOfLading billoflading, IBillOfLadingService _billofladingService) { return(billoflading); }