ManufacturingHistory.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. [Caption("Manufacturing History")]
  6. [UserTracking(typeof(ManufacturingPacket))]
  7. public class ManufacturingHistory : Entity, IRemotable, IPersistent, IOneToMany<ManufacturingPacket>, ILicense<ManufacturingLicense>
  8. {
  9. [SecondaryIndex]
  10. public DateTime Date { get; set; }
  11. public EmployeeLink Employee { get; set; }
  12. //[NullEditor]
  13. //public SetoutLink Setout { get; set; }
  14. //[NullEditor]
  15. //public JobLink Job { get; set; }
  16. [NullEditor]
  17. public ManufacturingPacketLink Packet { get; set; }
  18. [NullEditor]
  19. public ManufacturingLostTimeLink LostTime { get; set; }
  20. public string Description { get; set; }
  21. public ManufacturingSectionLink Section { get; set; }
  22. [IntegerEditor(Editable = Editable.Hidden)]
  23. public int Station { get; set; }
  24. [TimeOfDayEditor]
  25. public TimeSpan QADuration { get; set; }
  26. [NullEditor]
  27. public int QACompleted { get; set; }
  28. [TimeOfDayEditor]
  29. public TimeSpan WorkDuration { get; set; }
  30. public int WorkCompleted { get; set; }
  31. [NullEditor]
  32. public TimeSpan Window { get; set; }
  33. public ActivityLink Activity { get; set; }
  34. public ManufacturingHistorySummaryLink Summary { get; set; }
  35. public string Breakdown { get; set; }
  36. protected override void Init()
  37. {
  38. base.Init();
  39. Employee = new EmployeeLink();
  40. //Setout = new SetoutLink();
  41. Packet = new ManufacturingPacketLink();
  42. Description = "";
  43. Section = new ManufacturingSectionLink();
  44. //Job = new JobLink();
  45. Summary = new ManufacturingHistorySummaryLink();
  46. LostTime = new ManufacturingLostTimeLink();
  47. Activity = new ActivityLink();
  48. }
  49. }
  50. }