mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-06 01:52:10 +00:00
30 lines
940 B
C#
30 lines
940 B
C#
namespace SeaHaven.Services.DTOs
|
|
{
|
|
public sealed class DashboardStatsQueryDTO
|
|
{
|
|
public DateOnly? DateFrom { get; set; }
|
|
public DateOnly? DateTo { get; set; }
|
|
}
|
|
|
|
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; }
|
|
}
|
|
}
|