EmployeeFormShell.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using Comal.Classes;
  3. namespace comal.timesheets
  4. {
  5. public class EmployeeFormShell : DetailShell<EmployeeDetailModel, EmployeeForm>, IDigitalFormInstanceShell
  6. {
  7. static EmployeeFormShell()
  8. {
  9. Columns
  10. .Map(nameof(ID), x => x.Form.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. /*
  23. public class EmployeeFormShell
  24. {
  25. public Guid ID { get; set; }
  26. public string Description { get; set; }
  27. public Color Color { get; set; }
  28. public DateTime Completed { get; set; }
  29. public string Status { get; set; }
  30. public string Created { get; set; }
  31. public string Role { get; set; }
  32. public EmployeeFormShell()
  33. {
  34. ID = Guid.Empty;
  35. Description = "";
  36. Color = Color.Default;
  37. Completed = DateTime.MinValue;
  38. Status = "";
  39. Created = "";
  40. Role = "";
  41. }
  42. }
  43. */
  44. }