Beispiel #1
0
        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);
        }
Beispiel #2
0
        // 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);
        }
Beispiel #3
0
        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));
        }