2024-04-17 15:49:34 +03:30
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Shared.DTOs
|
|
|
|
|
{
|
2024-06-18 13:59:32 +03:30
|
|
|
|
public class AlertDTO
|
2024-04-17 15:49:34 +03:30
|
|
|
|
{
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
public string Message { get; set; }
|
|
|
|
|
public string? Path { get; set; }
|
|
|
|
|
public string? ViewSize { get; set; }
|
|
|
|
|
}
|
|
|
|
|
public class DashBoardDTO
|
|
|
|
|
{
|
2024-06-10 17:26:31 +03:30
|
|
|
|
public string Datenow { get { return DateTime.Now.ConvertMiladiToShamsiinFront(); } }
|
2024-04-17 15:49:34 +03:30
|
|
|
|
public string? LastLoginDate { get; set; }
|
2024-06-18 13:59:32 +03:30
|
|
|
|
public List<ServiceInDashBoardDTO> AlistofServices { get; set; } = new List<ServiceInDashBoardDTO>();
|
2024-04-17 15:49:34 +03:30
|
|
|
|
public List<AlertDTO> Warning { get; set; } = new List<AlertDTO>();
|
|
|
|
|
public List<AlertDTO> Notifications { get; set; } = new List<AlertDTO>();
|
2024-06-18 13:59:32 +03:30
|
|
|
|
public List<LastActivitySevice> lastActivitiesSevices { get; set; }=new List<LastActivitySevice>();
|
2024-06-18 16:15:17 +03:30
|
|
|
|
public List<IdNameByCount<int>>? MostInvoicedProduct { get; set; }=new List<IdNameByCount<int>>();
|
2024-06-20 18:22:34 +03:30
|
|
|
|
public List<IdNameByCount<int>>? MostInvoicedCustomer { get; set; } = new List<IdNameByCount<int>>();
|
|
|
|
|
public decimal? SaleInMonth { get; set; } = 0;
|
|
|
|
|
public decimal? Salepercent { get; set; } = 0;
|
2024-04-17 15:49:34 +03:30
|
|
|
|
}
|
|
|
|
|
public class ServiceInDashBoardDTO
|
|
|
|
|
{
|
|
|
|
|
public int PermissionID { get; set; }
|
|
|
|
|
public string PermissionName { get; set; }
|
|
|
|
|
public int CalTypeID { get; set; }
|
|
|
|
|
public string CalTypeTitle { get; set; }
|
|
|
|
|
public string Total { get; set; }
|
2024-06-10 20:49:31 +03:30
|
|
|
|
public int Remaining { get; set; }
|
2024-04-17 15:49:34 +03:30
|
|
|
|
}
|
2024-06-18 13:59:32 +03:30
|
|
|
|
public class LastActivitySevice
|
|
|
|
|
{
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Date { get; set; }
|
|
|
|
|
public int PermissionID { get; set; }
|
|
|
|
|
public string? TypeTitle { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
2024-04-17 15:49:34 +03:30
|
|
|
|
}
|