1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class DataEntryDocumentShell : Shell<DataEntryDocumentModel, DataEntryDocument>, IEntityDocumentShell
- {
- protected override void ConfigureColumns(ShellColumns<DataEntryDocumentModel, DataEntryDocument> 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<Guid>();
- set => Set(value);
- }
- public string FileName
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public byte[] Thumbnail {
- get => Get<byte[]>();
- set => Set(value);
- }
- public Guid TagID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String TagName
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public Guid EmployeeID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public String Note
- {
- get => Get<String>();
- set => Set(value);
- }
-
-
- public DateTime Created
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- }
- }
|