void InventoryAdjustmentsReport_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = DataContext as ListIANViewModel;
     _vm.Id = "";
     string _current = NavigationService.Source.OriginalString.ParseQueryString("current");
     
     _current = PresentationUtility.ParseIdFromUrl(NavigationService.CurrentSource).ToString();
     if (!string.IsNullOrEmpty(_current))
     {
         _vm.Id = _current;
     }
     _vm.RunLoadIANs();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Provides a deterministic way to delete the ListIANViewModel property.
 /// </summary>
 public static void ClearListIANViewModel()
 {
     _ListIANViewModel.Cleanup();
     _ListIANViewModel = null;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Provides a deterministic way to create the ListIANViewModel property.
 /// </summary>
 public static void CreateListIANViewModel()
 {
     if (_ListIANViewModel == null)
     {
         _ListIANViewModel = new ListIANViewModel();
     }
 }
Exemplo n.º 4
0
 void StockTakeReport_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = this.DataContext as ListIANViewModel;
     _vm.LoadStockTakeReport();
 }