using System; using Comal.Classes; using InABox.Mobile; namespace PRS.Mobile { public class DataEntryDocumentShell : Shell, IEntityDocumentShell { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(DocumentID), x => x.Document.ID) .Map(nameof(FileName), x => x.Document.FileName) .Map(nameof(Thumbnail), x => x.Thumbnail) .Map(nameof(TagID), x => x.Tag.ID) .Map(nameof(TagName), x => x.Tag.Name) .Map(nameof(EmployeeID), x => x.Employee.ID) .Map(nameof(Note), x => x.Note) .Map(nameof(Created), x => x.Created); } // Actually not used here public Guid ParentID { get; set; } public Guid DocumentID { get => Get(); set => Set(value); } public string FileName { get => Get(); set => Set(value); } public byte[] Thumbnail { get => Get(); set => Set(value); } public Guid TagID { get => Get(); set => Set(value); } public String TagName { get => Get(); set => Set(value); } public Guid EmployeeID { get => Get(); set => Set(value); } public String Note { get => Get(); set => Set(value); } public DateTime Created { get => Get(); set => Set(value); } } }