ConsignmentLookups.cs 753 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class ConsignmentLookups : EntityLookup<Consignment>
  6. {
  7. public override Columns<Consignment> DefineColumns()
  8. {
  9. return new Columns<Consignment>
  10. (
  11. x => x.ID,
  12. x => x.Number,
  13. x => x.Description,
  14. x => x.EstimatedWarehouseArrival
  15. );
  16. }
  17. public override Filter<Consignment> DefineFilter()
  18. {
  19. return new Filter<Consignment>(x => x.Closed).IsEqualTo(DateTime.MinValue);
  20. }
  21. public override SortOrder<Consignment> DefineSortOrder()
  22. {
  23. return new SortOrder<Consignment>(x => x.Number);
  24. }
  25. }
  26. }