void appMenuViewModel_RecordcountRecievedEvent(object sender, SimpleMvvmToolkit.NotificationEventArgs <Exception> e) { // AppMenuViewModel appMenuViewModel = (AppMenuViewModel)this.DataContext; AppMenuViewModel appMenuViewModel = (AppMenuViewModel)sender; SetRecordCountText(appMenuViewModel); }
void ShowError(SimpleMvvmToolkit.NotificationEventArgs <Exception> e) { if (e.Data.Message.Length > 0) { ChildWindow window = new ErrorWindow(e.Data); window.Show(); //return; } }
/// <summary> /// Filter String Recieved Event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void appMenuViewModel_FilterStringRecieved(object sender, SimpleMvvmToolkit.NotificationEventArgs <Exception> e) { AppMenuViewModel appMenuViewModel = (AppMenuViewModel)this.DataContext; if (appMenuViewModel.FilterString.Length > 0) { applicationViewModel.FilterString = appMenuViewModel.FilterString; //applicationViewModel.AdvancedDataFilterString = appMenuViewModel.FilterString; } }
// Core Current Entities Changed // theorticall don't need this cuz i am inheriting from core entities baseview model so changes should flow up to here internal void OnCurrentAsycudaDocumentChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <AsycudaDocument> e) { if (e.Data == null || e.Data.ASYCUDA_Id == null) { vloader.FilterExpression = null; } else { vloader.FilterExpression = string.Format("AsycudaDocumentId == {0}", e.Data.ASYCUDA_Id.ToString()); } SalesDatas.Refresh(); NotifyPropertyChanged(x => this.SalesDatas); }
internal void OnCurrentDocument_TypeChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <Document_Type> e) { if (e.Data == null || e.Data.Document_TypeId == null) { vloader.FilterExpression = null; } else { vloader.FilterExpression = string.Format("Document_TypeId == {0}", e.Data.Document_TypeId.ToString()); } AsycudaDocuments.Refresh(); NotifyPropertyChanged(x => this.AsycudaDocuments); }
private void appMenuViewModel_DatasourcesLoadedEvent(object sender, SimpleMvvmToolkit.NotificationEventArgs <Exception> e) { appMenuViewModel = (AppMenuViewModel)sender; applicationViewModel.EwavDatasources = appMenuViewModel.Datasources2; if (applicationViewModel.CanvasGUIDFromUrl.ToString() != "00000000-0000-0000-0000-000000000000") { canvasViewModel.GetCanvasSharedStatusWithGuid(applicationViewModel.CanvasGUIDFromUrl.ToString()); canvasViewModel.CanvasShareStatusDtoLoaded += new EventHandler <NotificationEventArgs <Exception> >(canvasViewModel_CanvasShareStatusDtoLoaded); } }
internal void OnCurrentContainerExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <ContainerEx> e) { if (ViewCurrentContainerEx == false) { return; } if (e.Data == null || e.Data.Container_Id == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("Container_Id == {0}", e.Data.Container_Id.ToString()); } ContainerEntryDatas.Refresh(); NotifyPropertyChanged(x => this.ContainerEntryDatas); // SendMessage(MessageToken.ContainerEntryDatasChanged, new NotificationEventArgs(MessageToken.ContainerEntryDatasChanged)); }
internal void OnCurrentAsycudaDocumentItemChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <PreviousDocumentItem> e) { if (ViewCurrentAsycudaDocumentItem == false) { return; } if (e.Data == null || e.Data.Item_Id == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("AsycudaDocumentItemId == {0}", e.Data.Item_Id.ToString()); } PreviousItemsExes.Refresh(); NotifyPropertyChanged(x => this.PreviousItemsExes); // SendMessage(MessageToken.PreviousItemsExesChanged, new NotificationEventArgs(MessageToken.PreviousItemsExesChanged)); }
internal void OnCurrentSalesDataChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <SalesData> e) { if (ViewCurrentSalesData == false) { return; } if (e.Data == null || e.Data.EntryDataId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("EntryDataId == \"{0}\"", e.Data.EntryDataId.ToString()); } SalesDataAllocations.Refresh(); NotifyPropertyChanged(x => this.SalesDataAllocations); // SendMessage(MessageToken.SalesDataAllocationsChanged, new NotificationEventArgs(MessageToken.SalesDataAllocationsChanged)); }
internal void OnCurrentInventoryItemsExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <InventoryItemsEx> e) { if (ViewCurrentInventoryItemsEx == false) { return; } if (e.Data == null || e.Data.ItemNumber == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("ItemNumber == \"{0}\"", e.Data.ItemNumber.ToString()); } EntryDataDetailsExes.Refresh(); NotifyPropertyChanged(x => this.EntryDataDetailsExes); // SendMessage(MessageToken.EntryDataDetailsExesChanged, new NotificationEventArgs(MessageToken.EntryDataDetailsExesChanged)); }
internal void OnCurrentEntryDataDetailsExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <EntryDataDetailsEx> e) { if (ViewCurrentEntryDataDetailsEx == false) { return; } if (e.Data == null || e.Data.EntryDataDetailsId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("EntryDataDetailsId == {0}", e.Data.EntryDataDetailsId.ToString()); } AsycudaDocumentSetEntryDataDetails.Refresh(); NotifyPropertyChanged(x => this.AsycudaDocumentSetEntryDataDetails); // SendMessage(MessageToken.AsycudaDocumentSetEntryDataDetailsChanged, new NotificationEventArgs(MessageToken.AsycudaDocumentSetEntryDataDetailsChanged)); }
internal void OnCurrentEXChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <OverShortAllocationsEX> e) { if (ViewCurrentEX == false) { return; } if (e.Data == null || e.Data.OverShortAllocationId == null) { vloader.FilterExpression = "None"; } else { } OverShortDetailAllocations.Refresh(); NotifyPropertyChanged(x => this.OverShortDetailAllocations); // SendMessage(MessageToken.OverShortDetailAllocationsChanged, new NotificationEventArgs(MessageToken.OverShortDetailAllocationsChanged)); BaseViewModel.Instance.CurrentOverShortDetailAllocation = null; }
internal void OnCurrentOversShortEXChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <OversShortEX> e) { if (ViewCurrentOversShortEX == false) { return; } if (e.Data == null || e.Data.OversShortsId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("OversShortsId == {0}", e.Data.OversShortsId.ToString()); } OverShortSuggestedDocuments.Refresh(); NotifyPropertyChanged(x => this.OverShortSuggestedDocuments); // SendMessage(MessageToken.OverShortSuggestedDocumentsChanged, new NotificationEventArgs(MessageToken.OverShortSuggestedDocumentsChanged)); BaseViewModel.Instance.CurrentOverShortSuggestedDocument = null; }
internal void OnCurrentInventoryItemChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <InventoryItem> e) { if (ViewCurrentInventoryItem == false) { return; } if (e.Data == null || e.Data.ItemNumber == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("ItemNumber == \"{0}\"", e.Data.ItemNumber.ToString()); } OverShortDetails.Refresh(); NotifyPropertyChanged(x => this.OverShortDetails); // SendMessage(MessageToken.OverShortDetailsChanged, new NotificationEventArgs(MessageToken.OverShortDetailsChanged)); BaseViewModel.Instance.CurrentOverShortDetailsEX = null; }
internal void OnCurrentAsycudaDocumentItemChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <AsycudaDocumentItem> e) { if (ViewCurrentAsycudaDocumentItem == false) { return; } if (e.Data == null || e.Data.Item_Id == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("Item_Id == {0}", e.Data.Item_Id.ToString()); } SubItems.Refresh(); NotifyPropertyChanged(x => this.SubItems); // SendMessage(MessageToken.SubItemsChanged, new NotificationEventArgs(MessageToken.SubItemsChanged)); BaseViewModel.Instance.CurrentSubItems = null; }
internal void OnCurrentTariffCategoryChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <TariffCategory> e) { if (ViewCurrentTariffCategory == false) { return; } if (e.Data == null || e.Data.TariffCategoryCode == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("TariffCategoryCode == \"{0}\"", e.Data.TariffCategoryCode.ToString()); } TariffSupUnitLkps.Refresh(); NotifyPropertyChanged(x => this.TariffSupUnitLkps); // SendMessage(MessageToken.TariffSupUnitLkpsChanged, new NotificationEventArgs(MessageToken.TariffSupUnitLkpsChanged)); BaseViewModel.Instance.CurrentTariffSupUnitLkps = null; }
internal void OnCurrentDocument_TypeChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <Document_Type> e) { if (ViewCurrentDocument_Type == false) { return; } if (e.Data == null || e.Data.Document_TypeId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("Document_TypeId == {0}", e.Data.Document_TypeId.ToString()); } Customs_Procedure.Refresh(); NotifyPropertyChanged(x => this.Customs_Procedure); // SendMessage(MessageToken.Customs_ProcedureChanged, new NotificationEventArgs(MessageToken.Customs_ProcedureChanged)); BaseViewModel.Instance.CurrentCustoms_Procedure = null; }
internal void OnCurrentAsycudaDocumentSetExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <AsycudaDocumentSetEx> e) { if (ViewCurrentAsycudaDocumentSetEx == false) { return; } if (e.Data == null || e.Data.AsycudaDocumentSetId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("AsycudaDocumentSetId == {0}", e.Data.AsycudaDocumentSetId.ToString()); } LicenceSummary.Refresh(); NotifyPropertyChanged(x => this.LicenceSummary); // SendMessage(MessageToken.LicenceSummaryChanged, new NotificationEventArgs(MessageToken.LicenceSummaryChanged)); BaseViewModel.Instance.CurrentLicenceSummary = null; }
internal void OnCurrentAsycudaDocumentSetEntryDataDetailsChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <AsycudaDocumentSetEntryDataDetails> e) { //CurrentAsycudaDocumentSetEntryDataDetails = e.Data; NotifyPropertyChanged(m => this.CurrentAsycudaDocumentSetEntryDataDetails); }
internal void OnCurrentSubItemsChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <SubItems> e) { //CurrentSubItems = e.Data; NotifyPropertyChanged(m => this.CurrentSubItems); }
internal void OnCurrentxcuda_Supplementary_unitChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <xcuda_Supplementary_unit> e) { //Currentxcuda_Supplementary_unit = e.Data; NotifyPropertyChanged(m => this.Currentxcuda_Supplementary_unit); }
internal void OnCurrentTariffSupUnitLkpsChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <TariffSupUnitLkps> e) { //CurrentTariffSupUnitLkps = e.Data; NotifyPropertyChanged(m => this.CurrentTariffSupUnitLkps); }
internal void OnCurrentTariffCategoryChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <TariffCategory> e) { //CurrentTariffCategory = e.Data; NotifyPropertyChanged(m => this.CurrentTariffCategory); }
internal void OnCurrentInventoryItemsExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <InventoryItemsEx> e) { //CurrentInventoryItemsEx = e.Data; NotifyPropertyChanged(m => this.CurrentInventoryItemsEx); }
internal void OnCurrentEntryDataDetailsExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <EntryDataDetailsEx> e) { //CurrentEntryDataDetailsEx = e.Data; NotifyPropertyChanged(m => this.CurrentEntryDataDetailsEx); }
internal void OnCurrentPreviousDocumentItemChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <PreviousDocumentItem> e) { //CurrentPreviousDocumentItem = e.Data; NotifyPropertyChanged(m => this.CurrentPreviousDocumentItem); }
internal void OnCurrentCounterPointSalesDetailsChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <CounterPointSalesDetails> e) { //CurrentCounterPointSalesDetails = e.Data; NotifyPropertyChanged(m => this.CurrentCounterPointSalesDetails); }
internal void OnCurrentSalesDataDetailChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <SalesDataDetail> e) { //CurrentSalesDataDetail = e.Data; NotifyPropertyChanged(m => this.CurrentSalesDataDetail); }
internal void OnCurrentAsycudaSalesAllocationsExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <AsycudaSalesAllocationsEx> e) { //CurrentAsycudaSalesAllocationsEx = e.Data; NotifyPropertyChanged(m => this.CurrentAsycudaSalesAllocationsEx); }
void appMenuViewModel_ErrorNotice(object sender, SimpleMvvmToolkit.NotificationEventArgs <Exception> e) { ShowError(e); }