| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- using System;
- using Comal.Classes;
- using InABox.Core;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class DeliveryShell : Shell<DeliveryModel, Delivery>
- {
- protected override void ConfigureColumns(ShellColumns<DeliveryModel, Delivery> 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<int>();
- public String Notes
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public Guid TypeID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- public String TypeDescription
- {
- get => Get<String>();
- set => Set(value);
- }
- public Guid JobID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String JobNumber
- {
- get => Get<String>();
- set => Set(value);
- }
- public String JobName
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public String Street
- {
- get => Get<String>();
- set => Set(value);
- }
- public String City
- {
- get => Get<String>();
- set => Set(value);
- }
- public String PostCode
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public Guid ContactID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String ContactName
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public DateTime Due {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public DateTime Booked => Get<DateTime>();
- public DateTime Delivered
- {
- get => Get<DateTime>();
- set => Set(value);
- }
- public double Latitude
- {
- get => Get<double>();
- set => Set(value);
- }
- public double Longitude
- {
- get => Get<double>();
- set => Set(value);
- }
-
- }
- }
|