Пример #1
0
 public void BindIterationsIn()
 {
     if (CurrentUser.IterationsPartOf.Count > 0)
     {
         Avenue.Workflow.Access.Iterations iPartOf = new Avenue.Workflow.Access.Iterations();
         iPartOf.AddRange(CurrentUser.IterationsPartOf.Where(f => !CurrentUser.IterationsOwn.Contains(f)));
         rIterationsIn.DataSource = iPartOf;
         rIterationsIn.DataBind();
     }
 }
Пример #2
0
 public void BindIterationList()
 {
     Avenue.Workflow.Access.Iterations userIterations = new Avenue.Workflow.Access.Iterations();
     userIterations.AddRange(CurrentUser.IterationsPartOf);
     if (userIterations.Count == 0)
     {
         rIterationList.Visible = false;
     }
     else
     {
         if (WorkflowIterationID == 0)
         {
             WorkflowIterationID = userIterations.First().IterationID;
         }
         rIterationList.DataSource = userIterations;
         rIterationList.DataBind();
     }
 }