1234567891011121314151617181920212223242526 |
- using InABox.Core;
- namespace Comal.Classes
- {
- public class ManufacturingSectionLookups : EntityLookup<ManufacturingSection>
- {
- public override Columns<ManufacturingSection> DefineColumns()
- {
- return new Columns<ManufacturingSection>(
- x => x.ID,
- x => x.Factory.Name,
- x => x.Name
- );
- }
- public override Filter<ManufacturingSection> DefineFilter()
- {
- return new Filter<ManufacturingSection>(x => x.Hidden).IsEqualTo(false);
- }
- public override SortOrder<ManufacturingSection> DefineSortOrder()
- {
- return new SortOrder<ManufacturingSection>(x => x.Factory.Name).ThenBy(x => x.Sequence);
- }
- }
- }
|