public async Task SaveEntryDataDetailsEX(EntryDataDetailsEx entryDataDetailsEx)
 {
     using (var ctx = new EntryDataDetailsExClient())
     {
         await ctx.SaveEntryDataDetailsEX(entryDataDetailsEx.DTO).ConfigureAwait(false);
     }
 }
Ejemplo n.º 2
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;
                }
            }

            EntryDataDetailsEx.Refresh();
            NotifyPropertyChanged(x => this.EntryDataDetailsEx);
        }
Ejemplo n.º 3
0
 public async Task SaveEntryDataDetailsEx(EntryDataDetailsEx i)
 {
     if (i == null)
     {
         return;
     }
     using (var ctx = new EntryDataDetailsExService())
     {
         await ctx.UpdateEntryDataDetailsEx(i).ConfigureAwait(false);
     }
 }
Ejemplo n.º 4
0
        internal async Task SaveEntryDataDetailsEx(EntryDataDetailsEx entryDataDetailsEx)
        {
            await
            EntryDataDetailsExRepository.Instance.SaveEntryDataDetailsEX(entryDataDetailsEx).ConfigureAwait(false);

            MessageBus.Default.BeginNotify(MessageToken.EntryDataDetailsExesChanged, null,
                                           new NotificationEventArgs(MessageToken.EntryDataDetailsExesChanged));


            MessageBox.Show("Complete");
        }
Ejemplo n.º 5
0
        internal void OnCurrentInventoryItemsExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <InventoryItemsEx> e)
        {
            if (ViewCurrentInventoryItemsEx == false)
            {
                return;
            }
            if (e.Data == null || e.Data.ItemNumber == null)
            {
                vloader.FilterExpression = "None";
            }
            else
            {
                vloader.FilterExpression = string.Format("ItemNumber == \"{0}\"", e.Data.ItemNumber.ToString());
            }

            EntryDataDetailsEx.Refresh();
            NotifyPropertyChanged(x => this.EntryDataDetailsEx);
            // SendMessage(MessageToken.EntryDataDetailsExChanged, new NotificationEventArgs(MessageToken.EntryDataDetailsExChanged));

            BaseViewModel.Instance.CurrentEntryDataDetailsEx = null;
        }
Ejemplo n.º 6
0
 public async Task <EntryDataDetailsEx> CreateEntryDataDetailsEx(EntryDataDetailsEx entity)
 {
     return(await Channel.CreateEntryDataDetailsEx(entity).ConfigureAwait(false));
 }
 public async Task SaveEntryDataDetailsEX(EntryDataDetailsEx entryDataDetailsEx)
 {
     await Channel.SaveEntryDataDetailsEX(entryDataDetailsEx).ConfigureAwait(false);
 }