StockLocationLookups.cs 863 B

1234567891011121314151617181920212223242526272829303132
  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 Columns.None<StockLocation>().Add(
  13. x => x.ID,
  14. x => x.Code,
  15. x => x.Area.Warehouse.Description,
  16. x => x.Area.Description,
  17. x => x.Description
  18. );
  19. }
  20. public override Filter<StockLocation> DefineFilter()
  21. {
  22. return new Filter<StockLocation>(x => x.Active).IsEqualTo(true);
  23. }
  24. public override SortOrder<StockLocation> DefineSortOrder()
  25. {
  26. return new SortOrder<StockLocation>(x => x.Code);
  27. }
  28. }
  29. }