mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-05 00:12:13 +00:00
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
namespace SeaHaven.Services.DTOs
|
|
{
|
|
public sealed class DashboardStatsQueryDTO
|
|
{
|
|
public DateOnly? DateFrom { get; set; }
|
|
public DateOnly? DateTo { get; set; }
|
|
}
|
|
|
|
public sealed class DashboardWorkloadResponseDTO
|
|
{
|
|
public IReadOnlyList<DashboardWorkloadRowDTO> Items { get; init; } = [];
|
|
public int Page { get; init; }
|
|
public int PageSize { get; init; }
|
|
public int TotalDispatchers { get; init; }
|
|
}
|
|
|
|
public sealed class DashboardWorkloadRowDTO
|
|
{
|
|
public string DispatcherId { get; init; } = string.Empty;
|
|
public string DispatcherName { get; init; } = string.Empty;
|
|
public int TotalCount { get; init; }
|
|
public int OpenCount { get; init; }
|
|
}
|
|
|
|
public class DashboardStatsDTO
|
|
{
|
|
public int Total { get; set; }
|
|
public int Open { get; set; }
|
|
public int NotDispatched { get; set; }
|
|
public int Completed { get; set; }
|
|
public DashboardBreakdownDTO Breakdown { get; set; } = new();
|
|
public int DueCount { get; set; }
|
|
public int CompletedDueCount { get; set; }
|
|
public decimal CompletionRate { get; set; }
|
|
public decimal? AverageResolutionDays { get; set; }
|
|
}
|
|
|
|
public sealed class DashboardBreakdownDTO
|
|
{
|
|
public int PM { get; set; }
|
|
public int Emergency { get; set; }
|
|
public int Reactive { get; set; }
|
|
public int Overdue { get; set; }
|
|
public int Other { get; set; }
|
|
}
|
|
}
|