| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using Comal.Classes;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- namespace comal.timesheets
- {
- public class EmployeeDetailShell : DetailShell<EmployeeDetailModel,Employee>
- {
- static EmployeeDetailShell()
- {
- Columns
- .Map(nameof(ID), x => x.ID)
- .Map(nameof(Code), x => x.Code)
- .Map(nameof(Name), x => x.Name)
- .Map(nameof(UserID), x => x.UserLink.ID)
- .Map(nameof(ThumbnailID), x => x.Thumbnail.ID)
- .Map(nameof(Mobile), x => x.Mobile)
- .Map(nameof(Email), x => x.Email)
- .Map(nameof(Signature), x => x.Signature);
- }
- public Guid ID => Get<Guid>();
- public String Code => Get<String>();
- public String Name => Get<String>();
- public Guid UserID => Get<Guid>();
- public Guid ThumbnailID => Get<Guid>();
-
- public String Mobile
- {
- get => Get<String>();
- set => Set(value);
- }
- public String Email
- {
- get => Get<String>();
- set => Set(value);
- }
- public byte[] Signature
- {
- get => Get<byte[]>();
- set => Set(value);
- }
-
- public ImageSource Thumbnail => Parent.GetImage(ThumbnailID);
- }
- }
|