using System; using Comal.Classes; using InABox.Core; using InABox.Mobile; namespace PRS.Mobile { public class DeliveryShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(Number), x => x.Number) .Map(nameof(Due), x => x.Due) .Map(nameof(Booked), x => x.Assignment.Date) .Map(nameof(Delivered), x => x.Delivered) .Map(nameof(TypeID), x => x.Type.ID) .Map(nameof(TypeDescription), x => x.Type.Description) .Map(nameof(JobID), x => x.Job.ID) .Map(nameof(JobNumber), x => x.Job.JobNumber) .Map(nameof(JobName), x => x.Job.Name) .Map(nameof(ContactID), x => x.Contact.ID) .Map(nameof(ContactName), x => x.Contact.Name) .Map(nameof(Street), x => x.Address.Street) .Map(nameof(City), x => x.Address.City) .Map(nameof(PostCode), x => x.Address.PostCode) .Map(nameof(Latitude), x => x.Address.Location.Latitude) .Map(nameof(Longitude), x => x.Address.Location.Longitude) .Map(nameof(Notes), x => x.Notes); } public int Number => Get(); public String Notes { get => Get(); set => Set(value); } public Guid TypeID { get => Get(); set => Set(value); } public String TypeDescription { get => Get(); set => Set(value); } public Guid JobID { get => Get(); set => Set(value); } public String JobNumber { get => Get(); set => Set(value); } public String JobName { get => Get(); set => Set(value); } public String Street { get => Get(); set => Set(value); } public String City { get => Get(); set => Set(value); } public String PostCode { get => Get(); set => Set(value); } public Guid ContactID { get => Get(); set => Set(value); } public String ContactName { get => Get(); set => Set(value); } public DateTime Due { get => Get(); set => Set(value); } public DateTime Booked => Get(); public DateTime Delivered { get => Get(); set => Set(value); } public double Latitude { get => Get(); set => Set(value); } public double Longitude { get => Get(); set => Set(value); } } }