| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System;
- using Comal.Classes;
- namespace comal.timesheets
- {
- public class EmployeeFormShell : DetailShell<EmployeeDetailModel, EmployeeForm>, IDigitalFormInstanceShell
- {
- static EmployeeFormShell()
- {
- Columns
- .Map(nameof(ID), x => x.Form.ID)
- .Map(nameof(FormID), x => x.Form.ID)
- .Map(nameof(Code), x => x.Form.Code)
- .Map(nameof(Description), x => x.Form.Description)
- .Map(nameof(Completed), x => x.FormCompleted);
- }
- public Guid ID => Get<Guid>();
- public Guid FormID => Get<Guid>();
- public String Code => Get<String>();
- public String Description => Get<String>();
- public DateTime Completed => Get<DateTime>();
- }
-
- /*
-
- public class EmployeeFormShell
- {
- public Guid ID { get; set; }
- public string Description { get; set; }
- public Color Color { get; set; }
- public DateTime Completed { get; set; }
- public string Status { get; set; }
- public string Created { get; set; }
- public string Role { get; set; }
- public EmployeeFormShell()
- {
- ID = Guid.Empty;
- Description = "";
- Color = Color.Default;
- Completed = DateTime.MinValue;
- Status = "";
- Created = "";
- Role = "";
- }
- }
- */
- }
|