1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using InABox.Core;
- namespace Comal.Classes
- {
- public class AssignmentLookups : EntityLookup<Assignment>
- {
- public override Columns<Assignment> DefineColumns()
- {
- return Columns.None<Assignment>().Add(
- x => x.ID,
- x => x.Number,
- x => x.Date,
- x => x.EmployeeLink.Name,
- x => x.Booked.Start,
- x => x.Booked.Duration
- );
- }
- public override Filter<Assignment> DefineFilter()
- {
- return null;
- }
- public override SortOrder<Assignment> DefineSortOrder()
- {
- return new SortOrder<Assignment>(x => x.Date).ThenBy(x => x.EmployeeLink.Name).ThenBy(x => x.Booked.Start);
- }
-
- }
- }
|