DataEntryDocumentShell.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class DataEntryDocumentShell : Shell<DataEntryDocumentModel, DataEntryDocument>, IEntityDocumentShell
  7. {
  8. protected override void ConfigureColumns(ShellColumns<DataEntryDocumentModel, DataEntryDocument> columns)
  9. {
  10. columns
  11. .Map(nameof(DocumentID), x => x.Document.ID)
  12. .Map(nameof(FileName), x => x.Document.FileName)
  13. .Map(nameof(Thumbnail), x => x.Thumbnail)
  14. .Map(nameof(TagID), x => x.Tag.ID)
  15. .Map(nameof(TagName), x => x.Tag.Name)
  16. .Map(nameof(EmployeeID), x => x.Employee.ID)
  17. .Map(nameof(Note), x => x.Note)
  18. .Map(nameof(Created), x => x.Created);
  19. }
  20. // Actually not used here
  21. public Guid ParentID
  22. {
  23. get;
  24. set;
  25. }
  26. public Guid DocumentID
  27. {
  28. get => Get<Guid>();
  29. set => Set(value);
  30. }
  31. public string FileName
  32. {
  33. get => Get<String>();
  34. set => Set(value);
  35. }
  36. public byte[] Thumbnail {
  37. get => Get<byte[]>();
  38. set => Set(value);
  39. }
  40. public Guid TagID
  41. {
  42. get => Get<Guid>();
  43. set => Set(value);
  44. }
  45. public String TagName
  46. {
  47. get => Get<String>();
  48. set => Set(value);
  49. }
  50. public Guid EmployeeID
  51. {
  52. get => Get<Guid>();
  53. set => Set(value);
  54. }
  55. public String Note
  56. {
  57. get => Get<String>();
  58. set => Set(value);
  59. }
  60. public DateTime Created
  61. {
  62. get => Get<DateTime>();
  63. set => Set(value);
  64. }
  65. }
  66. }