|
@@ -23,16 +23,54 @@ namespace PRS.Mobile
|
|
|
.Map(nameof(_actualfinish), x => x.Finish)
|
|
|
.Map(nameof(_approvedstart), x => x.ApprovedStart)
|
|
|
.Map(nameof(_approvedfinish), x => x.ApprovedFinish)
|
|
|
- .Map(nameof(_approved), x => x.Approved);
|
|
|
+ .Map(nameof(_approved), x => x.Approved)
|
|
|
+ .Map(nameof(StartLongitude), x => x.StartLocation.Longitude)
|
|
|
+ .Map(nameof(StartLatitude), x => x.StartLocation.Latitude)
|
|
|
+ .Map(nameof(StartAddress), x => x.StartLocation.Address)
|
|
|
+ .Map(nameof(StartTimeStamp), x => x.StartLocation.Timestamp)
|
|
|
+ .Map(nameof(FinishLongitude), x => x.FinishLocation.Longitude)
|
|
|
+ .Map(nameof(FinishLatitude), x => x.FinishLocation.Latitude)
|
|
|
+ .Map(nameof(FinishAddress), x => x.FinishLocation.Address)
|
|
|
+ .Map(nameof(FinishTimeStamp), x => x.FinishLocation.Timestamp)
|
|
|
+ .Map(nameof(JobID), x => x.JobLink.ID)
|
|
|
+ .Map(nameof(JobNumber), x => x.JobLink.JobNumber)
|
|
|
+ .Map(nameof(JobName), x => x.JobLink.Name)
|
|
|
+ .Map(nameof(Notes), x => x.Notes);
|
|
|
}
|
|
|
|
|
|
- public DateTime Date => Get<DateTime>();
|
|
|
+ public DateTime Date
|
|
|
+ {
|
|
|
+ get => Get<DateTime>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ private TimeSpan _actualstart
|
|
|
+ {
|
|
|
+ get => Get<TimeSpan>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ private TimeSpan _actualfinish
|
|
|
+ {
|
|
|
+ get => Get<TimeSpan>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
|
|
|
- private TimeSpan _actualstart => Get<TimeSpan>();
|
|
|
- private TimeSpan _actualfinish => Get<TimeSpan>();
|
|
|
- private TimeSpan _approvedstart => Get<TimeSpan>();
|
|
|
- private TimeSpan _approvedfinish => Get<TimeSpan>();
|
|
|
- private DateTime _approved => Get<DateTime>();
|
|
|
+ private TimeSpan _approvedstart
|
|
|
+ {
|
|
|
+ get => Get<TimeSpan>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+ private TimeSpan _approvedfinish
|
|
|
+ {
|
|
|
+ get => Get<TimeSpan>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+ private DateTime _approved
|
|
|
+ {
|
|
|
+ get => Get<DateTime>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
|
|
|
public TimeSpan Start => _approved.IsEmpty()
|
|
|
? _actualstart
|
|
@@ -42,9 +80,80 @@ namespace PRS.Mobile
|
|
|
? _actualfinish
|
|
|
: _approvedfinish;
|
|
|
|
|
|
- public ImageSource Approved => _approved.IsEmpty()
|
|
|
+ public ImageSource? Approved => _approved.IsEmpty()
|
|
|
? null
|
|
|
: ImageSource.FromFile("tick");
|
|
|
+
|
|
|
+ public double StartLongitude
|
|
|
+ {
|
|
|
+ get => Get<double>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public double StartLatitude
|
|
|
+ {
|
|
|
+ get => Get<double>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public string StartAddress
|
|
|
+ {
|
|
|
+ get => Get<string>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public DateTime StartTimeStamp
|
|
|
+ {
|
|
|
+ get => Get<DateTime>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public double FinishLongitude
|
|
|
+ {
|
|
|
+ get => Get<double>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public double FinishLatitude
|
|
|
+ {
|
|
|
+ get => Get<double>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public string FinishAddress
|
|
|
+ {
|
|
|
+ get => Get<string>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public DateTime FinishTimeStamp
|
|
|
+ {
|
|
|
+ get => Get<DateTime>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public Guid JobID
|
|
|
+ {
|
|
|
+ get => Get<Guid>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+ public string JobNumber
|
|
|
+ {
|
|
|
+ get => Get<string>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public string JobName
|
|
|
+ {
|
|
|
+ get => Get<string>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
+
|
|
|
+ public string Notes
|
|
|
+ {
|
|
|
+ get => Get<string>();
|
|
|
+ set => Set(value);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|