123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using InABox.Clients;
- using InABox.Core;
- namespace Comal.Classes
- {
- public class StockLocationLookups : EntityLookup<StockLocation>
- {
- public override Columns<StockLocation> DefineColumns()
- {
- return new Columns<StockLocation>
- (
- x => x.ID,
- x => x.Code,
- x => x.Area.Warehouse.Description,
- x => x.Area.Description,
- x => x.Description
- );
- }
- public override Filter<StockLocation> DefineFilter()
- {
- return new Filter<StockLocation>(x => x.Active).IsEqualTo(true);
- }
- public override SortOrder<StockLocation> DefineSortOrder()
- {
- return new SortOrder<StockLocation>(x => x.Code);
- }
- }
- }
|