45 lines
1.8 KiB
C#
45 lines
1.8 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace Shared.DTOs
|
|
{
|
|
public class AlertDTO
|
|
{
|
|
public int Status { get; set; }
|
|
public string Message { get; set; }
|
|
public string? Path { get; set; }
|
|
public string? ViewSize { get; set; }
|
|
}
|
|
public class DashBoardDTO
|
|
{
|
|
public string Datenow { get { return DateTime.Now.ConvertMiladiToShamsiinFront(); } }
|
|
public string? LastLoginDate { get; set; }
|
|
public List<ServiceInDashBoardDTO> AlistofServices { get; set; } = new List<ServiceInDashBoardDTO>();
|
|
public List<AlertDTO> Warning { get; set; } = new List<AlertDTO>();
|
|
public List<AlertDTO> Notifications { get; set; } = new List<AlertDTO>();
|
|
public List<LastActivitySevice> lastActivitiesSevices { get; set; }=new List<LastActivitySevice>();
|
|
public List<IdNameByCount<int>>? MostInvoicedProduct { get; set; }=new List<IdNameByCount<int>>();
|
|
public List<IdNameByCount<int>>? MostInvoicedCustomer { get; set; } = new List<IdNameByCount<int>>();
|
|
public List<IdNameByCount<int>> ForSaleChart { get; set; } = new List<IdNameByCount<int>>();
|
|
public decimal? SaleInMonth { get; set; } = 0;
|
|
public decimal? Salepercent { get; set; } = 0;
|
|
}
|
|
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; }
|
|
public int Remaining { get; set; }
|
|
}
|
|
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; }
|
|
|
|
}
|
|
}
|