| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class RequisitionItemShell : Shell<RequisitionItemModel, RequisitionItem>
- {
- protected override void ConfigureColumns(ShellColumns<RequisitionItemModel, RequisitionItem> columns)
- {
- columns
-
- .Map(nameof(RequisitionID), x=>x.RequisitionLink.ID)
-
- .Map(nameof(JobID), x=>x.RequisitionLink.JobLink.ID)
-
- .Map(nameof(ProductID), x => x.Product.ID)
- .Map(nameof(ProductCode), x => x.Product.Code)
- .Map(nameof(ProductName), x => x.Product.Name)
-
- .Map(nameof(StyleID), x => x.Style.ID)
- .Map(nameof(StyleCode), x => x.Style.Code)
- .Map(nameof(StyleDescription), x => x.Style.Description)
-
- .Map(nameof(DimensionsUnitID), x => x.Dimensions.Unit.ID)
- .Map(nameof(DimensionsQuantity), x => x.Dimensions.Quantity)
- .Map(nameof(DimensionsLength), x => x.Dimensions.Length)
- .Map(nameof(DimensionsHeight), x => x.Dimensions.Height)
- .Map(nameof(DimensionsWeight), x => x.Dimensions.Weight)
- .Map(nameof(DimensionsWidth), x => x.Dimensions.Width)
- .Map(nameof(DimensionsValue), x => x.Dimensions.Value)
- .Map(nameof(DimensionsUnitSize), x => x.Dimensions.UnitSize)
- .Map(nameof(Description), x => x.Description)
-
- .Map(nameof(Quantity), x => x.Quantity)
-
- .Map(nameof(LocationID), x=>x.Location.ID)
- .Map(nameof(JobRequisitionItemID), x=>x.JobRequisitionItem.ID)
- .Map(nameof(ActualQuantity), x => x.ActualQuantity)
-
- .Map(nameof(ImageID), x=>x.Image.ID)
-
- ;
- }
- public Guid RequisitionID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public Guid JobID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- public Guid ProductID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String ProductCode
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public String ProductName
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public Guid StyleID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String StyleCode
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public String StyleDescription
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public Guid DimensionsUnitID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public double DimensionsQuantity
- {
- get => Get<double>();
- set => Set(value);
- }
-
- public double DimensionsLength
- {
- get => Get<double>();
- set => Set(value);
- }
-
-
- public double DimensionsWidth
- {
- get => Get<double>();
- set => Set(value);
- }
-
-
- public double DimensionsHeight
- {
- get => Get<double>();
- set => Set(value);
- }
-
-
- public double DimensionsWeight
- {
- get => Get<double>();
- set => Set(value);
- }
-
- public double DimensionsValue
- {
- get => Get<double>();
- set => Set(value);
- }
-
- public string DimensionsUnitSize
- {
- get => Get<string>();
- set => Set(value);
- }
-
-
- public String Description
- {
- get => Get<String>();
- set => Set(value);
- }
- public double Quantity
- {
- get => Get<double>();
- set => Set(value);
- }
- public double ActualQuantity
- {
- get => Get<double>();
- set => Set(value);
- }
-
- public Guid LocationID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public Guid JobRequisitionItemID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public Guid ImageID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- public byte[] Image => Parent.GetImage(ImageID);
-
- public String ProductDisplay() => ProductID != Guid.Empty
- ? $"{ProductCode}: {ProductName}"
- : "";
-
- public String StyleDisplay() => StyleID != Guid.Empty
- ? $"{StyleCode}: {StyleDescription}"
- : "";
- }
- }
|