JobTrackerLookups.cs 682 B

123456789101112131415161718192021222324252627
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. public class JobTrackerLookups : EntityLookup<JobTracker>
  5. {
  6. public override Columns<JobTracker> DefineColumns()
  7. {
  8. return Columns.None<JobTracker>().Add(
  9. x => x.ID,
  10. x => x.JobLink.JobNumber,
  11. x => x.JobLink.Name,
  12. x => x.Gate
  13. );
  14. }
  15. public override Filter<JobTracker> DefineFilter()
  16. {
  17. return null;
  18. }
  19. public override SortOrder<JobTracker> DefineSortOrder()
  20. {
  21. return new SortOrder<JobTracker>(x => x.JobLink.JobNumber).ThenBy(x => x.Gate);
  22. }
  23. }
  24. }