| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System;
- using Comal.Classes;
- namespace comal.timesheets
- {
- public class DeliveryDetailShell : DetailShell<DeliveryDetailModel, Delivery>
- {
-
- 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<Guid>();
- public String JobNumber => Get<String>();
- public Guid JobID => Get<Guid>();
- public String JobName => Get<String>();
- public int Number => Get<int>();
- public DateTime Date => Get<DateTime>();
- public String ContactName => Get<String>();
- public double Latitude => Get<double>();
- public double Longitude => Get<double>();
- public DateTime AssignmentDate => Get<DateTime>();
- public String DeliveredBy => Get<String>();
- public DateTime Delivered => Get<DateTime>();
- public DateTime Due => Get<DateTime>();
- public String Address => Get<String>();
- public DateTime Created => Get<DateTime>();
-
- //public ImageSource IsDelivered => Delivered.IsEmpty() ? null : ImageSource.FromResource("tick.png");
- }
- }
|