| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- namespace PRS.Mobile
- {
- public class EmployeeDetailShell : Shell<EmployeeDetailModel,Employee>
- {
- protected override void ConfigureColumns(ShellColumns<EmployeeDetailModel, Employee> columns)
- {
- columns
- .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 String Code => Get<String>();
- public String Name => Get<String>();
- public Guid UserID => Get<Guid>();
- public Guid ThumbnailID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- 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);
- }
- }
- }
|