| 123456789101112131415161718192021222324252627282930313233 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class ProductInstanceShell : Shell<ProductInstanceModel, ProductInstance>
- {
- protected override void ConfigureColumns(ShellColumns<ProductInstanceModel, ProductInstance> columns)
- {
- columns
- .Map(nameof(ProductID), x => x.Product.ID)
- .Map(nameof(Height), x => x.Dimensions.Height)
- .Map(nameof(Length), x => x.Dimensions.Length)
- .Map(nameof(Width), x => x.Dimensions.Width)
- .Map(nameof(Weight), x => x.Dimensions.Weight)
- .Map(nameof(Quantity), x => x.Dimensions.Quantity)
- .Map(nameof(UnitSize), x => x.Dimensions.UnitSize)
- .Map(nameof(Value), x => x.Dimensions.Value)
- .Map(nameof(NettCost), x => x.NettCost);
- }
-
- public Guid ProductID { get; set; }
- public double Height => Get<double>();
- public double Length => Get<double>();
- public double Width => Get<double>();
- public double Weight => Get<double>();
- public double Quantity => Get<double>();
- public double Value => Get<double>();
- public string UnitSize => Get<String>();
- public double NettCost => Get<double>();
- }
- }
|