using System;
using System.ComponentModel.DataAnnotations;
using Kreta.Resources;
using Kreta.Web.Attributes;

namespace Kreta.Web.Areas.Orarend.Models
{
    public class OralatogatasModel
    {
        public string HetirendJson { get; set; }
        public string NaptariHetekHetirendJson { get; set; }

        [KretaDisplayName(30)] /*TanĂ¡r*/
        public int? TanarId { get; set; }

        public int? OraID { get; set; }
        public int? OralatogatasID { get; set; }

        [Required(ErrorMessageResourceName = nameof(OrarendResource.OralatogatasMegjegyzesKotelezo), ErrorMessageResourceType = typeof(OrarendResource))]
        public string OralatogatasSzovege { get; set; }
        public DateTime OralatogatasDatuma { get; set; }

        public TimeSpan CalendarMinTime { get; set; }
        public TimeSpan CalendarMaxTime { get; set; }
        [Display(Name = nameof(OrarendResource.NemKotottMunkaidos), ResourceType = typeof(OrarendResource))]
        public bool NemKotottMunkaidos { get; set; }
        public string TanitasiOraTema { get; set; }
        public bool IsNemKellNemKotottSystemSettings { get; set; }
    }

    public class OralatogatasExtendModel
    {
        public CalendarModel CalendarModel { get; set; }
        public int? TanarId { get; set; }
    }
}