| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class LeaveRequestShell : Shell<LeaveRequestModel, LeaveRequest>
- {
- protected override void ConfigureColumns(ShellColumns<LeaveRequestModel, LeaveRequest> columns)
- {
- columns
- .Map(nameof(EmployeeID), x => x.EmployeeLink.ID)
- .Map(nameof(TypeID), x => x.LeaveType.ID)
- .Map(nameof(TypeDescription), x => x.LeaveType.Description)
- .Map(nameof(From), x => x.From)
- .Map(nameof(FromTime), x => x.FromTime)
- .Map(nameof(To), x => x.To)
- .Map(nameof(ToTime), x => x.ToTime)
- .Map(nameof(Status), x => x.Status)
- .Map(nameof(StatusNotes), x => x.StatusNotes)
- .Map(nameof(Color), x => x.LeaveType.Color)
- .Map(nameof(Notes), x=>x.Notes)
- .Map(nameof(OpenForms), x=>x.OpenForms);
- }
- public Guid EmployeeID
- {
- get => Get<Guid>();
- set => Set(value);
- }
-
- public Guid TypeID
- {
- get => Get<Guid>();
- set => Set(value);
- }
- public string TypeDescription
- {
- get => Get<String>();
- set => Set(value);
- }
- public DateTime From
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public TimeSpan FromTime
- {
- get => Get<TimeSpan>();
- set => Set(value);
- }
-
- public DateTime To
- {
- get => Get<DateTime>();
- set => Set(value);
- }
-
- public TimeSpan ToTime
- {
- get => Get<TimeSpan>();
- set => Set(value);
- }
-
- public LeaveRequestStatus Status
- {
- get => Get<LeaveRequestStatus>();
- set => Set(value);
- }
-
- public string StatusNotes => Get<String>();
- public String Color => Get<String>();
-
- public string Notes
- {
- get => Get<string>();
- set => Set(value);
- }
-
- public int OpenForms => Get<int>();
-
- }
-
- }
|