JobBillOfMaterials.cs 777 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. public class JobBillOfMaterials : Entity, IRemotable, IPersistent, IOneToMany<Job>, ISequenceable, ILicense<ProjectManagementLicense>
  6. {
  7. [NullEditor]
  8. [EntityRelationship(DeleteAction.Cascade)]
  9. public JobLink Job { get; set; }
  10. [EditorSequence(1)]
  11. public string Description { get; set; }
  12. [TimestampEditor]
  13. [EditorSequence(2)]
  14. public DateTime Approved { get; set; }
  15. [NullEditor]
  16. public long Sequence { get; set; }
  17. [MemoEditor]
  18. public string Notes { get; set; }
  19. protected override void Init()
  20. {
  21. base.Init();
  22. Job = new JobLink();
  23. Notes = "";
  24. }
  25. }
  26. }