This commit is contained in:
2023-02-13 12:33:43 +01:00
parent a9b06b41dc
commit 051585ba6f
3 changed files with 22 additions and 2 deletions

View File

@@ -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;

View File

@@ -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>
}

View File

@@ -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>