EquipmentKanbanShell.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using Comal.Classes;
  3. namespace comal.timesheets
  4. {
  5. public class EquipmentKanbanShell : DetailShell<EquipmentDetailModel, Kanban>
  6. {
  7. static EquipmentKanbanShell()
  8. {
  9. Columns
  10. .Map(nameof(EquipmentID), x => x.Equipment.ID)
  11. .Map(nameof(KanbanID), 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(EmployeeName), x => x.EmployeeLink.Name)
  16. .Map(nameof(Completed), x => x.Completed)
  17. .Map(nameof(Attachments) , x => x.Attachments);
  18. }
  19. public Guid EquipmentID => Get<Guid>();
  20. public Guid KanbanID => Get<Guid>();
  21. public int Number => Get<int>();
  22. public String Title => Get<String>();
  23. public String Description => Get<String>();
  24. public String EmployeeName => Get<String>();
  25. public DateTime Completed => Get<DateTime>();
  26. public int Attachments => Get<int>();
  27. }
  28. }