AssignmentFormShell.cs 1.7 KB

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