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-06-14 19:00:21 +02:00
|
|
|
{
|
|
|
|
public string Name { get; set; } = "";
|
2022-06-19 13:55:29 +02:00
|
|
|
|
|
|
|
[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; } = "";
|
|
|
|
|
|
|
|
[Required(ErrorMessage = "Dagtype skal angives")]
|
|
|
|
public string DayTypeEnum { get; set; } = "";
|
|
|
|
|
2022-06-10 13:26:48 +02:00
|
|
|
// Date interval (used for leave, sickLeave and work hours
|
2022-06-14 19:00:21 +02:00
|
|
|
public string FromDateTime { get; set; } = "";
|
|
|
|
public string ToDateTime { get; set; } = "";
|
2022-06-12 18:20:19 +02:00
|
|
|
public ReportFiguresDto Figures { get; set; } = new();
|
2022-05-29 20:50:22 +02:00
|
|
|
}
|