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

            SalesDataAllocations.Refresh();
            NotifyPropertyChanged(x => this.SalesDataAllocations);
        }
Example #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());
            }

            SalesDataAllocations.Refresh();
            NotifyPropertyChanged(x => this.SalesDataAllocations);
            // SendMessage(MessageToken.SalesDataAllocationsChanged, new NotificationEventArgs(MessageToken.SalesDataAllocationsChanged));
        }
 public async Task <SalesDataAllocations> CreateSalesDataAllocations(SalesDataAllocations entity)
 {
     return(await Channel.CreateSalesDataAllocations(entity).ConfigureAwait(false));
 }