@page "/scheduling" @using CredentialManager.Models @using CredentialManager.Services @using Data_Coupler.Services Schedulazione Profili

Schedulazione Profili

Storico Esecuzioni
@if (schedules == null) {
Caricamento...
} else if (!schedules.Any()) {
Nessuna schedulazione configurata.
} else {
@foreach (var schedule in schedules.OrderBy(s => s.NextExecutionTime)) {
"clock", "interval" => "redo", "daily" => "calendar-day", "weekly" => "calendar-week", "monthly" => "calendar", _ => "clock" })"> @schedule.Name

Profilo: @schedule.Profile?.Name

@if (!string.IsNullOrEmpty(schedule.Description)) {

@schedule.Description

}
Tipo: @schedule.GetScheduleDescription()
@if (schedule.NextExecutionTime.HasValue) {
Prossima esecuzione:
@schedule.NextExecutionTime.Value.ToString("dd/MM/yyyy HH:mm")
} @if (schedule.LastExecutionTime.HasValue) {
Ultima esecuzione:
@schedule.LastExecutionTime.Value.ToString("dd/MM/yyyy HH:mm")
} @if (!string.IsNullOrEmpty(schedule.LastExecutionStatus)) {
"success", "failed" => "danger", "running" => "primary", _ => "secondary" })"> @schedule.LastExecutionStatus.ToUpper() @if (schedule.LastExecutionRecordCount.HasValue) { (@schedule.LastExecutionRecordCount record) }
}
}
}