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