12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- using System;
- using Comal.Classes;
- using InABox.Core;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public abstract class DigitalFormInstanceShell<TModel, TParent, TParentLink,TForm> : Shell<TModel, TForm>, IDigitalFormInstanceShell
- where TModel : ICoreRepository
- where TParent : Entity
- where TParentLink : BaseObject, IEntityLink<TParent>, new()
- where TForm : EntityForm<TParent,TParentLink,TForm>, new()
-
- {
- protected override void ConfigureColumns(ShellColumns<TModel, TForm> 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)
- .Map(nameof(Cancelled), x=>x.FormCancelled);
- }
-
- public String Number
- {
- get => Get<String>();
- set => Set(value);
- }
- public Guid ParentID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- public Guid FormID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- public String FormCode
- {
- get => Get<String>();
- set => Set(value);
- }
- public String FormDescription
- {
- get => Get<String>();
- set => Set(value);
- }
-
- public DateTime Created => Get<DateTime>();
-
- public DateTime Completed
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public DateTime Cancelled
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public DateTime Started
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public String Data
- {
- get => Get<String>();
- set => Set(value);
- }
- }
- }
|