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

16 lines
698 B
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-06-14 19:00:21 +02:00
{
public string Name { get; set; } = "";
2022-05-31 19:07:39 +02:00
[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; } = "";
2022-06-14 19:00:21 +02:00
[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; } = "";
public ReportFiguresDto Figures { get; set; } = new();
2022-05-29 20:50:22 +02:00
}