JobKanbanShell.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using Comal.Classes;
  3. namespace comal.timesheets
  4. {
  5. public class JobKanbanShell : Shell<JobDetailModel, Kanban>
  6. {
  7. static JobKanbanShell()
  8. {
  9. Columns
  10. .Map(nameof(JobID), x => x.JobLink.ID)
  11. .Map(nameof(ID), x => x.ID)
  12. .Map(nameof(Number), x => x.Number)
  13. .Map(nameof(Title), x => x.Title)
  14. .Map(nameof(Description), x => x.Description)
  15. .Map(nameof(Type), x=>x.Type.Code)
  16. .Map(nameof(DueDate), x=>x.DueDate)
  17. .Map(nameof(Completed), x => x.Completed)
  18. .Map(nameof(Category), x => x.Category);
  19. }
  20. public Guid JobID => Get<Guid>();
  21. public Guid ID => Get<Guid>();
  22. public int Number => Get<int>();
  23. public String Title => Get<String>();
  24. public String Description => Get<String>();
  25. public String Type => Get<String>();
  26. public DateTime DueDate => Get<DateTime>();
  27. public DateTime Completed => Get<DateTime>();
  28. public String Category => Get<String>();
  29. }
  30. }