using System;
using System.ComponentModel.DataAnnotations;

namespace WK5.Core.PageModels.Tools.Statistik
{
    public class ArtikelNachNameInput
    {
        [Required]
        public DateTime From { get; set; }
        [Required]
        public DateTime To { get; set; }
        [Required]
        public string Suche { get; set; }
        public BelegTyp Typ { get; set; }

        public ArtikelNachNameInput()
        {
            From = DateTime.Now.AddYears(-1);
            To = DateTime.Now;
            Suche = "";
            Typ = BelegTyp.Rechnung;
        }
    }
}
