EquipmentAssignmentLink.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.ComponentModel;
  3. using InABox.Core;
  4. namespace Comal.Classes
  5. {
  6. /// <summary>
  7. /// Allows other entities to link to an EquipmentAssignment
  8. /// </summary>
  9. public class EquipmentAssignmentLink : EntityLink<Assignment>
  10. {
  11. /// <summary>
  12. /// The ID of the linked EquipmentAssignment
  13. /// </summary>
  14. [EditorSequence(1)]
  15. [LookupEditor(typeof(EquipmentAssignment))]
  16. public override Guid ID { get; set; }
  17. /// <summary>
  18. /// The Number of the linked EquipmentAssignment
  19. /// </summary>
  20. [EditorSequence(2)]
  21. [IntegerEditor(Editable = Editable.Hidden)]
  22. public int Number { get; set; }
  23. /// <summary>
  24. /// The date of the EquipmentAssignment
  25. /// </summary>
  26. [EditorSequence(3)]
  27. [DateTimeEditor(Editable = Editable.Hidden)]
  28. public DateTime Date { get; set; }
  29. /// <summary>
  30. /// The booked time of the EquipmentAssignment
  31. /// At this stage, we're not going to deal with actual versus booked times
  32. /// The booked time is assumed to be the actual time
  33. /// </summary>
  34. [EditorSequence(4)]
  35. [CoreTimeEditor(Editable = Editable.Hidden)]
  36. public TimeBlock Booked { get; set; }
  37. [EditorSequence(5)]
  38. [CoreTimeEditor(Editable = Editable.Hidden)]
  39. public JobLink JobLink { get; set; }
  40. }
  41. }