JobUnitLookups.cs 905 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Comal.Classes
  2. {
  3. }
  4. //public class JobUnitLookups : ILookupDefinition<JobUnit>, ILookupDefinition<JobUnit, ManufacturingPacket>
  5. //{
  6. // public Columns<JobUnit> DefineColumns()
  7. // {
  8. // return new Columns<JobUnit>(
  9. // x => x.ID,
  10. // x => x.Code,
  11. // x => x.Description
  12. // );
  13. // }
  14. // public Filter<JobUnit> DefineFilter()
  15. // {
  16. // return new Filter<JobUnit>(x => x.ID).IsEqualTo(Guid.Empty).And(x => x.ID).IsNotEqualTo(Guid.Empty);
  17. // }
  18. // public Filter<JobUnit> DefineFilter(ManufacturingPacket[] items)
  19. // {
  20. // if (items.Length == 1)
  21. // return new Filter<JobUnit>(x => x.Job.ID).IsEqualTo(items.First().SetoutLink.JobLink.ID);
  22. // return DefineFilter();
  23. // }
  24. // public SortOrder<JobUnit> DefineSortOrder()
  25. // {
  26. // return new SortOrder<JobUnit>(x => x.Description);
  27. // }
  28. //}