EmployeeDetailShell.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using Comal.Classes;
  3. using InABox.Mobile;
  4. using Xamarin.Forms;
  5. using Xamarin.Forms.Xaml;
  6. namespace PRS.Mobile
  7. {
  8. public class EmployeeDetailShell : Shell<EmployeeDetailModel,Employee>
  9. {
  10. protected override void ConfigureColumns(ShellColumns<EmployeeDetailModel, Employee> columns)
  11. {
  12. columns
  13. .Map(nameof(Code), x => x.Code)
  14. .Map(nameof(Name), x => x.Name)
  15. .Map(nameof(UserID), x => x.UserLink.ID)
  16. .Map(nameof(ThumbnailID), x => x.Thumbnail.ID)
  17. .Map(nameof(Mobile), x => x.Mobile)
  18. .Map(nameof(Email), x => x.Email)
  19. .Map(nameof(Signature), x => x.Signature);
  20. }
  21. public String Code => Get<String>();
  22. public String Name => Get<String>();
  23. public Guid UserID => Get<Guid>();
  24. public Guid ThumbnailID
  25. {
  26. get => Get<Guid>();
  27. set => Set(value);
  28. }
  29. public String Mobile
  30. {
  31. get => Get<String>();
  32. set => Set(value);
  33. }
  34. public String Email
  35. {
  36. get => Get<String>();
  37. set => Set(value);
  38. }
  39. public byte[] Signature
  40. {
  41. get => Get<byte[]>();
  42. set => Set(value);
  43. }
  44. }
  45. }