public void FilterData(StringBuilder res = null) { if (DisableBaseFilterData) { return; } if (res == null) { res = GetAutoPropertyFilterString(); } if (res.Length == 0 && vloader.NavigationExpression.Count != 0) { res.Append("&& All"); } if (res.Length > 0) { vloader.FilterExpression = res.ToString().Trim().Substring(2).Trim(); } else { if (vloader.FilterExpression != "All") { vloader.FilterExpression = null; } } AsycudaDocumentEntryData.Refresh(); NotifyPropertyChanged(x => this.AsycudaDocumentEntryData); }
// 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()); } AsycudaDocumentEntryData.Refresh(); NotifyPropertyChanged(x => this.AsycudaDocumentEntryData); }
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()); } AsycudaDocumentEntryData.Refresh(); NotifyPropertyChanged(x => this.AsycudaDocumentEntryData); // SendMessage(MessageToken.AsycudaDocumentEntryDataChanged, new NotificationEventArgs(MessageToken.AsycudaDocumentEntryDataChanged)); }