public async Task SaveInventoryItemsEx(InventoryItemsEx olditm) { using (var ctx = new InventoryItemsExClient()) { await ctx.SaveInventoryItemsEx(olditm.DTO).ConfigureAwait(false); } }
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; } } InventoryItemsEx.Refresh(); NotifyPropertyChanged(x => this.InventoryItemsEx); }
public async Task SaveInventoryItemsEx(InventoryItemsEx olditm) { var itm = new InventoryDS.Business.Entities.InventoryItem(); olditm.ModifiedProperties = null; itm.InjectFrom(olditm); await WaterNut.DataSpace.InventoryDS.DataModels.BaseDataModel.Instance.SaveInventoryItem(itm).ConfigureAwait(false); }
public async Task SaveInventoryItemsEx(InventoryItemsEx i) { if (i == null) { return; } using (var ctx = new InventoryItemsExService()) { await ctx.UpdateInventoryItemsEx(i).ConfigureAwait(false); } }
internal void OnCurrentTariffCodesChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <TariffCodes> e) { if (ViewCurrentTariffCodes == false) { return; } if (e.Data == null || e.Data.TariffCode == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("TariffCode == \"{0}\"", e.Data.TariffCode.ToString()); } InventoryItemsEx.Refresh(); NotifyPropertyChanged(x => this.InventoryItemsEx); // SendMessage(MessageToken.InventoryItemsExChanged, new NotificationEventArgs(MessageToken.InventoryItemsExChanged)); BaseViewModel.Instance.CurrentInventoryItemsEx = null; }
public async Task SaveInventoryItemsEx(InventoryItemsEx olditm) { await Channel.SaveInventoryItemsEx(olditm).ConfigureAwait(false); }
public async Task <InventoryItemsEx> CreateInventoryItemsEx(InventoryItemsEx entity) { return(await Channel.CreateInventoryItemsEx(entity).ConfigureAwait(false)); }