KanbanLookupShell.cs 940 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Core;
  4. using Xamarin.Forms;
  5. namespace comal.timesheets
  6. {
  7. public class KanbanLookupShell : LookupShell<KanbanLookupModel, Kanban>
  8. {
  9. static KanbanLookupShell()
  10. {
  11. Columns
  12. .Map(nameof(ID), x => x.ID)
  13. .Map(nameof(Code), x => x.Number)
  14. .Map(nameof(Description), x => x.Title)
  15. .Map(nameof(Notes), x => x.Summary)
  16. .Map(nameof(Completed), x => x.Completed)
  17. .Map(nameof(Job), x => x.JobLink.ID)
  18. .Map(nameof(Equipment), x => x.Equipment.ID);
  19. }
  20. public override Guid ID => Get<Guid>();
  21. public override String Code => Get<int>().ToString();
  22. public override String Description => Get<String>();
  23. public String Notes => Get<String>();
  24. public DateTime Completed => Get<DateTime>();
  25. }
  26. }