Scan.cs 898 B

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