ManufacturingSectionLookups.cs 765 B

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