private void ReadFilter() { if (string.IsNullOrEmpty(this.ObjectName)) { throw new Exception("ObjectName is empty in filter"); } CriteriaOperator projectOperator = CriteriaOperator.TryParse(_config.Get <string>(this.ObjectName + ProjectConfigId, null)); CriteriaOperator iterationOperator = CriteriaOperator.TryParse(_config.Get <string>(this.ObjectName + IterationConfigId, null)); CriteriaOperator memberOperator = CriteriaOperator.TryParse(_config.Get <string>(this.ObjectName + MemberConfigId, null)); this.Context.SetFilter("ProjectId", projectOperator); Context.SetFilter("ProjectIterationId", iterationOperator); Context.SetFilter("MemberId", memberOperator); }
public void BindData(CriteriaOperator filter) { _context.SetFilter("DepartFilter", filter); var context = new GetDataContext { GetData = GetData, Context = SynchronizationContext.Current }; context.GetData.BeginInvoke(new AsyncCallback(AsBindData), context); }
public static void UpdateContextFilters(IActionContext context, Guid?projectId, Guid?projectIterationId, Guid?memberId) { context.SetFilter("ProjectId", CreateFilter("ProjectId", projectId)); context.SetFilter("ProjectIterationId", CreateFilter("ProjectIterationId", projectIterationId)); context.SetFilter("MemberId", CreateFilter("OwnerId", memberId)); }