using System; using Comal.Classes; namespace comal.timesheets { public class DeliveryDetailShell : DetailShell { static DeliveryDetailShell() { Columns.Map(nameof(ID), x => x.ID) .Map(nameof(Number), x => x.Number) .Map(nameof(JobID), x => x.Job.ID) .Map(nameof(JobNumber), x => x.Job.JobNumber) .Map(nameof(JobName), x => x.Job.Name) .Map(nameof(Date), x => x.Date) .Map(nameof(ContactName), x => x.Contact.Name) .Map(nameof(Latitude), x => x.Location.Latitude) .Map(nameof(Longitude), x => x.Location.Longitude) .Map(nameof(AssignmentDate), x => x.Assignment.Date) .Map(nameof(DeliveredBy), x => x.DeliveredBy.Name) .Map(nameof(Delivered), x => x.Delivered) .Map(nameof(Due), x => x.Due) .Map(nameof(Address), x => x.Location.Address) .Map(nameof(Created), x => x.Created); } public Guid ID => Get(); public String JobNumber => Get(); public Guid JobID => Get(); public String JobName => Get(); public int Number => Get(); public DateTime Date => Get(); public String ContactName => Get(); public double Latitude => Get(); public double Longitude => Get(); public DateTime AssignmentDate => Get(); public String DeliveredBy => Get(); public DateTime Delivered => Get(); public DateTime Due => Get(); public String Address => Get(); public DateTime Created => Get(); //public ImageSource IsDelivered => Delivered.IsEmpty() ? null : ImageSource.FromResource("tick.png"); } }