diff --git a/BeWoPlanerMobil/Util/AppointmentListItem.cs b/BeWoPlanerMobil/Util/AppointmentListItem.cs index 90a03d4be..315a6d718 100644 --- a/BeWoPlanerMobil/Util/AppointmentListItem.cs +++ b/BeWoPlanerMobil/Util/AppointmentListItem.cs @@ -62,6 +62,8 @@ namespace BeWoPlanerMobil.Util public bool HasEmployeesCustomersOrResources => !string.IsNullOrWhiteSpace(EmployeeListInfo + CustomerListInfo + ResourceListInfo); public bool AllDay { get; } + public bool HasServiceRecord { get; } + public AppointmentListItem(SchedulerAppointmentDC schedulerAppointment) { Identifier = Guid.NewGuid(); @@ -81,6 +83,8 @@ namespace BeWoPlanerMobil.Util var customerColor = string.Empty; var resourceColor = string.Empty; + HasServiceRecord = schedulerAppointment.ServiceRecordList?.Any() ?? false; + if(string.IsNullOrWhiteSpace(employeeColor) && schedulerAppointment.EmployeeList.Count == 0 && !string.IsNullOrWhiteSpace(schedulerAppointment.Originator?.EmployeeColor)) { employeeColor = schedulerAppointment.Originator.EmployeeColor; diff --git a/BeWoPlanerMobil/Views/Scheduler/AppointmentIntervalFinderResultPartial.cshtml b/BeWoPlanerMobil/Views/Scheduler/AppointmentIntervalFinderResultPartial.cshtml index 5dfb226aa..76f49cd1a 100644 --- a/BeWoPlanerMobil/Views/Scheduler/AppointmentIntervalFinderResultPartial.cshtml +++ b/BeWoPlanerMobil/Views/Scheduler/AppointmentIntervalFinderResultPartial.cshtml @@ -50,7 +50,13 @@ } - - +} +else if(Model.IntervalStartDate.HasValue && Model.IntervalEndDate.HasValue) +{ +
+ +
} diff --git a/BeWoPlanerMobil/Views/Scheduler/OneDaySchedulerPartial.cshtml b/BeWoPlanerMobil/Views/Scheduler/OneDaySchedulerPartial.cshtml index 4519374e7..3606f5458 100644 --- a/BeWoPlanerMobil/Views/Scheduler/OneDaySchedulerPartial.cshtml +++ b/BeWoPlanerMobil/Views/Scheduler/OneDaySchedulerPartial.cshtml @@ -46,6 +46,11 @@ } + + @if(appointment.HasServiceRecord) + { + + } @@ -134,6 +139,11 @@ } + + @if(appointment.HasServiceRecord) + { + + }