line-gestao-api/Dtos/RelatoriosDashboardDto.cs

92 lines
2.9 KiB
C#

using System;
using System.Collections.Generic;
namespace line_gestao_api.Dtos
{
public class RelatoriosDashboardDto
{
public DashboardKpisDto Kpis { get; set; } = new();
public List<TopClienteDto> TopClientes { get; set; } = new();
public List<SerieMesDto> SerieMuregUltimos12Meses { get; set; } = new();
public List<SerieMesDto> SerieTrocaUltimos12Meses { get; set; } = new();
public List<MuregRecenteDto> MuregsRecentes { get; set; } = new();
public List<TrocaRecenteDto> TrocasRecentes { get; set; } = new();
// ✅ NOVO: VIGÊNCIA
public List<SerieMesDto> SerieVigenciaEncerramentosProx12Meses { get; set; } = new();
public VigenciaBucketsDto VigenciaBuckets { get; set; } = new();
}
public class DashboardKpisDto
{
public int TotalLinhas { get; set; }
public int ClientesUnicos { get; set; }
public int Ativos { get; set; }
public int Bloqueados { get; set; }
public int BloqueadosPerdaRoubo { get; set; }
public int Bloqueados120Dias { get; set; }
public int BloqueadosOutros { get; set; }
public int Reservas { get; set; }
public int TotalMuregs { get; set; }
public int MuregsUltimos30Dias { get; set; }
public int TotalVigenciaLinhas { get; set; }
public int VigenciaVencidos { get; set; }
public int VigenciaAVencer30 { get; set; }
public int TotalTrocas { get; set; }
public int TrocasUltimos30Dias { get; set; }
public int UserDataRegistros { get; set; }
public int UserDataComCpf { get; set; }
public int UserDataComEmail { get; set; }
}
public class TopClienteDto
{
public string Cliente { get; set; } = "";
public int Linhas { get; set; }
}
public class SerieMesDto
{
public string Mes { get; set; } = "";
public int Total { get; set; }
}
public class VigenciaBucketsDto
{
public int Vencidos { get; set; }
public int AVencer0a30 { get; set; }
public int AVencer31a60 { get; set; }
public int AVencer61a90 { get; set; }
public int Acima90 { get; set; }
}
public class MuregRecenteDto
{
public Guid Id { get; set; }
public int Item { get; set; }
public string? LinhaAntiga { get; set; }
public string? LinhaNova { get; set; }
public string? ICCID { get; set; }
public DateTime? DataDaMureg { get; set; }
public string? Cliente { get; set; }
public Guid MobileLineId { get; set; }
}
public class TrocaRecenteDto
{
public Guid Id { get; set; }
public int Item { get; set; }
public string? LinhaAntiga { get; set; }
public string? LinhaNova { get; set; }
public string? ICCID { get; set; }
public DateTime? DataTroca { get; set; }
public string? Motivo { get; set; }
}
}