AssignmentFormShell.cs 786 B

12345678910111213141516171819202122232425
  1. using System;
  2. using Comal.Classes;
  3. namespace comal.timesheets
  4. {
  5. public class AssignmentFormShell : DetailShell<AssignmentDetailModel,AssignmentForm>, IDigitalFormInstanceShell
  6. {
  7. static AssignmentFormShell()
  8. {
  9. Columns
  10. .Map(nameof(ID), x => x.ID)
  11. .Map(nameof(FormID), x => x.Form.ID)
  12. .Map(nameof(Code), x => x.Form.Code)
  13. .Map(nameof(Description), x => x.Form.Description)
  14. .Map(nameof(Completed), x => x.FormCompleted);
  15. }
  16. public Guid ID => Get<Guid>();
  17. public Guid FormID => Get<Guid>();
  18. public String Code => Get<String>();
  19. public String Description => Get<String>();
  20. public DateTime Completed => Get<DateTime>();
  21. }
  22. }