JobStageLookups.cs 645 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Linq;
  3. using InABox.Core;
  4. namespace Comal.Classes
  5. {
  6. public class JobStageLookups : EntityLookup<JobStage>
  7. {
  8. public override Filter<JobStage> DefineFilter()
  9. {
  10. return new Filter<JobStage>(x => x.ID).IsEqualTo(Guid.Empty);
  11. }
  12. public override Columns<JobStage> DefineColumns()
  13. {
  14. return Columns.None<JobStage>().Add(
  15. x => x.ID,
  16. x => x.Name
  17. );
  18. }
  19. public override SortOrder<JobStage> DefineSortOrder()
  20. {
  21. return new SortOrder<JobStage>(x => x.Sequence);
  22. }
  23. }
  24. }