Wonky.Client/Wonky.Entity/DTO/ReportDto.cs
2022-06-10 13:26:48 +02:00

41 lines
1.7 KiB
C#

using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class ReportDto
{
[Required(ErrorMessage = "Dagtype skal angives")] public string DayTypeEnum { get; set; } = "";
[MaxLength(1000, ErrorMessage = "Du kan højst bruge 1000 tegn")] public string Description { get; set; } = "";
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string SupervisedBy { get; set; } = "";
// Date interval (used for leave, sickLeave and work hours
public DateTime CheckIn { get; set; }
public DateTime CheckOut { get; set; }
// workday
public int VisitsNewCount { get; set; }
public int VisitsRecallCount { get; set; }
public int DemosNewCount { get; set; }
public int DemosRecallCount { get; set; }
public int SalesNewCount { get; set; }
public int SalesRecallCount { get; set; }
// workday turnover
public decimal SalesTurnover { get; set; }
public decimal SasTurnover { get; set; }
public decimal TotalTurnover { get; set; }
// workday distance ledger
public long KmEvening { get; set; }
public long KmMorning { get; set; }
public int Distance { get; set; }
public int DistancePrivate { get; set; }
// month summaries
public int DistanceMonth { get; set; }
public int VisitsNewMonth { get; set; }
public int VisitsRecallMonth { get; set; }
public int DemosNewMonth { get; set; }
public int DemosRecallMonth { get; set; }
public int SalesNewMonth { get; set; }
public int SalesRecallMonth { get; set; }
// month turnover
public decimal SalesTurnoverMonth { get; set; }
public decimal SasTurnoverMonth { get; set; }
public decimal TotalTurnoverMonth { get; set; }
}