Wonky.Client/Wonky.Entity/DTO/ReportDto.cs

42 lines
1.7 KiB
C#
Raw Normal View History

2022-05-29 20:50:22 +02:00
using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
2022-06-10 13:26:48 +02:00
public class ReportDto
{
2022-05-31 19:07:39 +02:00
[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; } = "";
2022-06-10 13:26:48 +02:00
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string SupervisedBy { get; set; } = "";
// Date interval (used for leave, sickLeave and work hours
2022-05-31 19:07:39 +02:00
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; }
2022-05-29 20:50:22 +02:00
public int SalesNewCount { get; set; }
public int SalesRecallCount { get; set; }
2022-05-31 19:07:39 +02:00
// 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; }
2022-05-29 20:50:22 +02:00
}