.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -50,7 +50,13 @@
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
}
|
||||
else if(Model.IntervalStartDate.HasValue && Model.IntervalEndDate.HasValue)
|
||||
{
|
||||
<div class="container-fluid mx-0 px-0">
|
||||
<div class="alert alert-warning" role="alert" id="interval-finder-validation-alert">
|
||||
Im ausgewählten Zeitraum zwischen dem @Model.IntervalStartDateStr @Model.IntervalStartTimeStr Uhr und dem @Model.IntervalEndDateStr @Model.IntervalEndTimeStr Uhr wurden keine freien Intervalle gefunden.
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,11 @@
|
||||
<i class="fas fa-slash fa-stack-1x text-secondary"></i>
|
||||
</span>
|
||||
}
|
||||
|
||||
@if(appointment.HasServiceRecord)
|
||||
{
|
||||
<i class="ml-2 fas fa-clock text-bewo-service-records"></i>
|
||||
}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -134,6 +139,11 @@
|
||||
<i class="fas fa-slash fa-stack-1x text-secondary"></i>
|
||||
</span>
|
||||
}
|
||||
|
||||
@if(appointment.HasServiceRecord)
|
||||
{
|
||||
<i class="ml-1 fas fa-clock text-bewo-service-records"></i>
|
||||
}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user