JobLevel.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. namespace Comal.Classes
  2. {
  3. }
  4. //public interface IJobLevel
  5. //{
  6. // String Code { get; set; }
  7. // String Description { get; set; }
  8. //}
  9. //[UserTracking(typeof(Job))]
  10. //public class JobLevel : Entity, IJobLevel, IRemotable, IPersistent, IOneToMany<Job>, IStringAutoIncrement<JobLevel>
  11. //{
  12. // public Expression<Func<JobLevel, String>> AutoIncrementField() => x => x.Code;
  13. // public Filter<JobLevel> AutoIncrementFilter() => null;
  14. // public string AutoIncrementFormat() => "{0:D4}";
  15. // [CodeEditor(Editable = Editable.Enabled)]
  16. // public string Code { get; set; }
  17. // [TextBoxEditor]
  18. // public string Description { get; set; }
  19. // [NullEditor]
  20. // public JobLink Job { get; set; }
  21. // protected override void Init()
  22. // {
  23. // base.Init();
  24. // Job = new JobLink();
  25. // }
  26. //}
  27. //public class JobLevelLookups : ILookupDefinition<JobLevel>, ILookupDefinition<JobLevel, ManufacturingPacket>
  28. //{
  29. // public Columns<JobLevel> DefineColumns()
  30. // {
  31. // return new Columns<JobLevel>(
  32. // x => x.ID,
  33. // x => x.Code,
  34. // x => x.Description
  35. // );
  36. // }
  37. // public Filter<JobLevel> DefineFilter()
  38. // {
  39. // return new Filter<JobLevel>(x => x.ID).IsEqualTo(Guid.Empty).And(x => x.ID).IsNotEqualTo(Guid.Empty);
  40. // }
  41. // public Filter<JobLevel> DefineFilter(ManufacturingPacket[] items)
  42. // {
  43. // if (items.Length == 1)
  44. // return new Filter<JobLevel>(x => x.Job.ID).IsEqualTo(items.First().SetoutLink.JobLink.ID);
  45. // return DefineFilter();
  46. // }
  47. // public SortOrder<JobLevel> DefineSortOrder()
  48. // {
  49. // return new SortOrder<JobLevel>(x => x.Description);
  50. // }
  51. //}