예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 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));
 }