public ConflictDetector ForRange(DateTime start, DateTime end)
 {
     this._rangeStart = start;
     this._rangeEnd   = end;
     foreach (ConflictDetector.Task current in this._tasks)
     {
         if (string.IsNullOrEmpty(current.RecurrenceFieldName))
         {
             this.AddTable(current.Table, current.StartFieldName, current.EndFieldName, current.ResourceFieldName);
         }
         else
         {
             DataTable source = RecurrenceExpander.Expand(current.Table, current.RecurrenceFieldName, current.StartFieldName, current.EndFieldName, current.IdFieldName, current.RecurrenceMasterIdFieldName, start, end);
             this.AddTable(source, current.StartFieldName, current.EndFieldName, current.ResourceFieldName);
         }
     }
     this.CreateList();
     return(this);
 }
示例#2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     GridView1.DataSource = RecurrenceExpander.Expand(table, "recurrence", "start", "end", "id", "master", DayPilotCalendar1.StartDate, DayPilotCalendar1.EndDate);
     GridView2.DataSource = table;
     DataBind();
 }