Exemplo n.º 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;
                }
            }

            SalesDataDetails.Refresh();
            NotifyPropertyChanged(x => this.SalesDataDetails);
        }
Exemplo n.º 2
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());
            }

            SalesDataDetails.Refresh();
            NotifyPropertyChanged(x => this.SalesDataDetails);
            // SendMessage(MessageToken.SalesDataDetailsChanged, new NotificationEventArgs(MessageToken.SalesDataDetailsChanged));
        }