using System; using Comal.Classes; using InABox.Mobile; namespace PRS.Mobile { public class ConsignmentShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(Number), x => x.Number) .Map(nameof(Description), x => x.Description) .Map(nameof(SupplierID), x => x.Supplier.ID) .Map(nameof(SupplierName), x => x.Supplier.Name) .Map(nameof(TypeID), x => x.Type.ID) .Map(nameof(TypeDescription), x => x.Type.Description) .Map(nameof(EstimatedWarehouseArrival), x => x.EstimatedWarehouseArrival) .Map(nameof(ActualWarehouseArrival), x => x.ActualWarehouseArrival); } public string Number { get => Get(); set => Set(value); } public string Description { get => Get(); set => Set(value); } public Guid SupplierID { get => Get(); set => Set(value); } public string SupplierName { get => Get(); set => Set(value); } public Guid TypeID { get => Get(); set => Set(value); } public string TypeDescription { get => Get(); set => Set(value); } public DateTime EstimatedWarehouseArrival { get => Get(); set => Set(value); } public DateTime ActualWarehouseArrival { get => Get(); set => Set(value); } } }