KanbanFormShell.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Core;
  4. using Xamarin.Forms;
  5. namespace PRS.Mobile
  6. {
  7. public class KanbanFormShell : Shell<KanbanFormModel, KanbanForm>, IDigitalFormInstanceShell
  8. {
  9. protected override void ConfigureColumns(ShellColumns<KanbanFormModel, KanbanForm> columns)
  10. {
  11. columns
  12. .Map(nameof(ID), x => x.ID)
  13. .Map(nameof(ParentID), x => x.Parent.ID)
  14. .Map(nameof(FormID), x=>x.Form.ID)
  15. .Map(nameof(FormCode), x => x.Form.Code)
  16. .Map(nameof(FormDescription), x => x.Form.Description)
  17. .Map(nameof(Completed), x => x.FormCompleted)
  18. .Map(nameof(Data), x=>x.FormData)
  19. .Map(nameof(Created), x=>x.Created);
  20. }
  21. public Guid ID => Get<Guid>();
  22. public Guid ParentID
  23. {
  24. get => Get<Guid>();
  25. set => Set(value);
  26. }
  27. public Guid FormID
  28. {
  29. get => Get<Guid>();
  30. set => Set(value);
  31. }
  32. public String FormCode
  33. {
  34. get => Get<String>();
  35. set => Set(value);
  36. }
  37. public String FormDescription
  38. {
  39. get => Get<String>();
  40. set => Set(value);
  41. }
  42. public DateTime Created => Get<DateTime>();
  43. public DateTime Completed
  44. {
  45. get => Get<DateTime>();
  46. set => Set(value);
  47. }
  48. public String Data
  49. {
  50. get => Get<String>();
  51. set => Set(value);
  52. }
  53. }
  54. }