| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class StockLocationShell : Shell<StockLocationModel, StockLocation>
- {
- protected override void ConfigureColumns(ShellColumns<StockLocationModel, StockLocation> columns)
- {
- columns
- .Map(nameof(Code), x => x.Code)
- .Map(nameof(Description), x => x.Description)
-
- .Map(nameof(WarehouseID), x => x.Warehouse.ID)
- .Map(nameof(WarehouseCode), x => x.Warehouse.Code)
- .Map(nameof(WarehouseDescription), x => x.Warehouse.Description)
-
- .Map(nameof(AreaID), x => x.Area.ID)
- .Map(nameof(AreaCode), x => x.Area.Code)
- .Map(nameof(AreaDescription), x => x.Area.Description)
-
- .Map(nameof(JobID), x => x.Job.ID)
- .Map(nameof(JobNumber), x => x.Job.JobNumber)
- .Map(nameof(JobName), x => x.Job.Name)
-
- .Map(nameof(LocationType), x=>x.Type)
- .Map(nameof(Active), x=>x.Active)
- .Map(nameof(Default), x=>x.Default)
- .Map(nameof(Favourite), x=>x.Favourite)
- .Map(nameof(Holdings), x=>x.Holdings)
-
- .Map(nameof(CurrentStocktake), x=>x.CurrentStocktake)
- .Map(nameof(LastStocktake), x=>x.LastStocktake)
- .Map(nameof(StocktakeFrequency), x=>x.StocktakeFrequency)
- .Map(nameof(NextStocktake), x=>x.NextStocktake)
-
- ;
- }
- public String Code
- {
- get => Get<String>();
- set => Set(value);
- }
- public String Description
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public Guid AreaID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String AreaCode
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public String AreaDescription
- {
- get => Get<String>();
- set => Set(value);
- }
- public String AreaDisplay => AreaID != Guid.Empty
- ? $"{AreaCode}: {AreaDescription}"
- : "";
- public Guid WarehouseID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String WarehouseCode
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public String WarehouseDescription
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public String WarehouseDisplay => WarehouseID != Guid.Empty
- ? $"{WarehouseCode}: {WarehouseDescription}"
- : "";
-
- 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 JobDisplay => JobID != Guid.Empty
- ? $"{JobNumber}: {JobName}"
- : "";
-
- public StockLocationType LocationType
- {
- get => Get<StockLocationType>();
- set => Set(value);
- }
- public bool Active
- {
- get => Get<bool>();
- set => Set(value);
- }
-
- public bool Default
- {
- get => Get<bool>();
- set => Set(value);
- }
-
- public bool Favourite
- {
- get => Get<bool>();
- set => Set(value);
- }
-
- public double Holdings => Get<double>();
- public DateTime CurrentStocktake
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public DateTime LastStocktake
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public StockTakeFrequency StocktakeFrequency
- {
- get => Get<StockTakeFrequency>();
- set => Set(value);
- }
-
- public DateTime NextStocktake
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- }
- }
|