ConsignmentTypeLookups.cs 706 B

12345678910111213141516171819202122232425262728
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. public class ConsignmentTypeLookups : EntityLookup<ConsignmentType>
  5. {
  6. public override Columns<ConsignmentType> DefineColumns()
  7. {
  8. return new Columns<ConsignmentType>
  9. (
  10. x => x.ID,
  11. x => x.Code,
  12. x => x.Description
  13. );
  14. }
  15. public override Filter<ConsignmentType> DefineFilter()
  16. {
  17. return new Filter<ConsignmentType>(x => x.Hidden).IsEqualTo(false);
  18. }
  19. public override SortOrder<ConsignmentType> DefineSortOrder()
  20. {
  21. return new SortOrder<ConsignmentType>(x => x.Code);
  22. }
  23. }
  24. }