StockLocationLookups.cs 869 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using InABox.Clients;
  5. using InABox.Core;
  6. namespace Comal.Classes
  7. {
  8. public class StockLocationLookups : EntityLookup<StockLocation>
  9. {
  10. public override Columns<StockLocation> DefineColumns()
  11. {
  12. return new Columns<StockLocation>
  13. (
  14. x => x.ID,
  15. x => x.Code,
  16. x => x.Area.Warehouse.Description,
  17. x => x.Area.Description,
  18. x => x.Description
  19. );
  20. }
  21. public override Filter<StockLocation> DefineFilter()
  22. {
  23. return new Filter<StockLocation>(x => x.Active).IsEqualTo(true);
  24. }
  25. public override SortOrder<StockLocation> DefineSortOrder()
  26. {
  27. return new SortOrder<StockLocation>(x => x.Code);
  28. }
  29. }
  30. }