using System; using Comal.Classes; using InABox.Core; using InABox.Mobile; namespace PRS.Mobile { public abstract class DigitalFormInstanceShell : Shell, IDigitalFormInstanceShell where TModel : ICoreRepository where TParent : Entity where TParentLink :IEntityLink, new() where TForm : EntityForm, new() { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(Number), x=>x.Number) .Map(nameof(ParentID), x => x.Parent.ID) .Map(nameof(FormID), x=>x.Form.ID) .Map(nameof(FormCode), x => x.Form.Code) .Map(nameof(FormDescription), x => x.Form.Description) .Map(nameof(Completed), x => x.FormCompleted) .Map(nameof(Started), x=>x.FormStarted) .Map(nameof(Data), x=>x.FormData) .Map(nameof(Created), x=>x.Created); } public String Number { get => Get(); set => Set(value); } public Guid ParentID { get => Get(); set => Set(value); } public Guid FormID { get => Get(); set => Set(value); } public String FormCode { get => Get(); set => Set(value); } public String FormDescription { get => Get(); set => Set(value); } public DateTime Created => Get(); public DateTime Completed { get => Get(); set => Set(value); } public DateTime Started { get => Get(); set => Set(value); } public String Data { get => Get(); set => Set(value); } } }