|
|
@@ -16,6 +16,7 @@ namespace GreenTree.Nachtragsmanagement.Web.Models.Site
|
|
|
public string Description { get; set; }
|
|
|
public DateTime? Start { get; set; }
|
|
|
public DateTime? End { get; set; }
|
|
|
+ public string Finished { get; set; }
|
|
|
public string Comment { get; set; }
|
|
|
public ICollection<int> DeviationValues { get; set; }
|
|
|
public ICollection<string> DeviationDescriptions { get; set; }
|
|
|
@@ -94,6 +95,11 @@ namespace GreenTree.Nachtragsmanagement.Web.Models.Site
|
|
|
Description = siteEntity.Description,
|
|
|
Start = siteEntity.Start,
|
|
|
End = siteEntity.End,
|
|
|
+ Finished = siteEntity.End.HasValue
|
|
|
+ ? siteEntity.End <= DateTime.Now
|
|
|
+ ? "Ja"
|
|
|
+ : "Nein"
|
|
|
+ : "Nein",
|
|
|
Comment = siteEntity.Comment,
|
|
|
DeviationValues =
|
|
|
siteEntity.Deviations
|