Wonky.Client/Wonky.Entity/DTO/ReportDto.cs
2022-06-19 13:55:29 +02:00

22 lines
733 B
C#

using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class ReportDto
{
public string Name { 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; } = "";
[Required(ErrorMessage = "Dagtype skal angives")]
public string DayTypeEnum { get; set; } = "";
// Date interval (used for leave, sickLeave and work hours
public string FromDateTime { get; set; } = "";
public string ToDateTime { get; set; } = "";
public ReportFiguresDto Figures { get; set; } = new();
}