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; } } Customs_Procedure.Refresh(); NotifyPropertyChanged(x => this.Customs_Procedure); }
public async Task SaveCustoms_Procedure(Customs_Procedure i) { if (i == null) { return; } using (var ctx = new Customs_ProcedureService()) { await ctx.UpdateCustoms_Procedure(i).ConfigureAwait(false); } }
private static void AttachCustomProcedure(DocumentCT cdoc, Customs_Procedure cp) { if (cp == null) { throw new ApplicationException("Default Export Template not configured properly!"); } else { cdoc.Document.xcuda_ASYCUDA_ExtendedProperties.Customs_ProcedureId = cp.Customs_ProcedureId; cdoc.Document.xcuda_ASYCUDA_ExtendedProperties.Customs_Procedure = cp; cdoc.Document.xcuda_ASYCUDA_ExtendedProperties.Document_TypeId = cp.Document_TypeId; cdoc.Document.xcuda_ASYCUDA_ExtendedProperties.Document_Type = cp.Document_Type; } }
internal void OnCurrentDocument_TypeChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <Document_Type> e) { if (ViewCurrentDocument_Type == false) { return; } if (e.Data == null || e.Data.Document_TypeId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("Document_TypeId == {0}", e.Data.Document_TypeId.ToString()); } Customs_Procedure.Refresh(); NotifyPropertyChanged(x => this.Customs_Procedure); // SendMessage(MessageToken.Customs_ProcedureChanged, new NotificationEventArgs(MessageToken.Customs_ProcedureChanged)); BaseViewModel.Instance.CurrentCustoms_Procedure = null; }
public async Task <Customs_Procedure> CreateCustoms_Procedure(Customs_Procedure entity) { return(await Channel.CreateCustoms_Procedure(entity).ConfigureAwait(false)); }