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;
                }
            }

            PreviousDocumentItems.Refresh();
            NotifyPropertyChanged(x => this.PreviousDocumentItems);
        }
        internal void OnCurrentPreviousDocumentChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <PreviousDocument> e)
        {
            if (ViewCurrentPreviousDocument == false)
            {
                return;
            }
            if (e.Data == null || e.Data.ASYCUDA_Id == null)
            {
                vloader.FilterExpression = "None";
            }
            else
            {
                vloader.FilterExpression = string.Format("ASYCUDA_Id == {0}", e.Data.ASYCUDA_Id.ToString());
            }

            PreviousDocumentItems.Refresh();
            NotifyPropertyChanged(x => this.PreviousDocumentItems);
            // SendMessage(MessageToken.PreviousDocumentItemsChanged, new NotificationEventArgs(MessageToken.PreviousDocumentItemsChanged));
        }
 private void OnCurrentAsycudaSalesAllocationsExChanged(object sender, NotificationEventArgs <AsycudaSalesAllocationsEx> e)
 {
     vloader.FilterExpression = string.Format("Item_Id = {0}", e.Data.PreviousItem_Id.ToString());
     PreviousDocumentItems.Refresh();
 }