DataEntryDocument.cs 970 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using InABox.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Comal.Classes
  6. {
  7. public class DataEntryDocument : Entity, IRemotable, IPersistent, ILicense<DataEntryLicense>
  8. {
  9. [EditorSequence(1)]
  10. public DocumentLink Document { get; set; }
  11. [EditorSequence(2)]
  12. public DataEntryTagLink Tag { get; set; }
  13. [EditorSequence(3)]
  14. public EmployeeLink Employee { get; set; }
  15. [NullEditor]
  16. public Guid EntityID { get; set; }
  17. [NullEditor]
  18. public DateTime Archived { get; set; }
  19. [NullEditor]
  20. public byte[]? Thumbnail { get; set; }
  21. protected override void Init()
  22. {
  23. base.Init();
  24. Document = new DocumentLink();
  25. Tag = new DataEntryTagLink();
  26. Employee = new EmployeeLink(() => this);
  27. Archived = DateTime.MinValue;
  28. }
  29. }
  30. }