| 123456789101112131415161718192021222324252627282930313233343536 | 
							- using System;
 
- using System.Linq;
 
- using InABox.Core;
 
- namespace Comal.Classes
 
- {
 
-     public class KanbanLookups : EntityLookup<Kanban>, ILookupDefinition<Kanban, Assignment>
 
-     {
 
-         public Filter<Kanban> DefineFilter(Assignment[] items)
 
-         {
 
-             if (items == null || !items.Any())
 
-                 return DefineFilter();
 
-             return new Filter<Kanban>(x => x.Closed).IsEqualTo(DateTime.MinValue).And(x => x.EmployeeLink.ID)
 
-                 .IsEqualTo(items.First().EmployeeLink.ID);
 
-         }
 
-         public override Columns<Kanban> DefineColumns()
 
-         {
 
-             return new Columns<Kanban>(
 
-                 x => x.ID,
 
-                 x => x.Number,
 
-                 x => x.Title
 
-             );
 
-         }
 
-         public override Filter<Kanban> DefineFilter()
 
-         {
 
-             return new Filter<Kanban>(x => x.Closed).IsEqualTo(DateTime.MinValue);
 
-         }
 
-         public override SortOrder<Kanban> DefineSortOrder()
 
-         {
 
-             return new SortOrder<Kanban>(x => x.Number);
 
-         }
 
-     }
 
- }
 
 
  |