JobTracker.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class JobTrackerLink : EntityLink<JobTracker>
  6. {
  7. [LookupEditor(typeof(JobTracker))]
  8. public override Guid ID { get; set; }
  9. [NullEditor]
  10. public JobLink JobLink { get; set; }
  11. [TextBoxEditor(Editable = Editable.Hidden)]
  12. public string Gate { get; set; }
  13. }
  14. [UserTracking(typeof(GPSTracker))]
  15. public class JobTracker : Entity, IPersistent, IRemotable, IManyToMany<Job, GPSTracker>, ILicense<GPSTrackerLicense>
  16. {
  17. [EditorSequence(1)]
  18. [EntityRelationship(DeleteAction.Cascade)]
  19. public JobLink JobLink { get; set; }
  20. [EditorSequence(2)]
  21. [EntityRelationship(DeleteAction.SetNull)]
  22. public GPSTrackerLink TrackerLink { get; set; }
  23. [EditorSequence(3)]
  24. public string Gate { get; set; }
  25. [EditorSequence(4)]
  26. public bool Active { get; set; }
  27. // If a mobile app finds one of these tiles
  28. // this flag should indicate whether to log them onto
  29. // the associated job or not.
  30. [EditorSequence(5)]
  31. public bool IsJobSite { get; set; }
  32. }
  33. }