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();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Provides a deterministic way to delete the ListIANViewModel property.
 /// </summary>
 public static void ClearListIANViewModel()
 {
     _ListIANViewModel.Cleanup();
     _ListIANViewModel = null;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Provides a deterministic way to create the ListIANViewModel property.
 /// </summary>
 public static void CreateListIANViewModel()
 {
     if (_ListIANViewModel == null)
     {
         _ListIANViewModel = new ListIANViewModel();
     }
 }
Ejemplo n.º 4
0
 void StockTakeReport_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = this.DataContext as ListIANViewModel;
     _vm.LoadStockTakeReport();
 }