using System.ComponentModel.DataAnnotations; using Kreta.BusinessLogic.Classes; using Kreta.Resources; namespace Kreta.Web.Areas.Tantargy.Models { public class TantargyFelosztasModositasaModel { public TantargyFelosztasModositasaModel() { Modosithato = true; } public int Id { get; set; } [KretaRequired(typeof(TantargyResource), nameof(TantargyResource.TanarKivalasztasaKotelezo))] [Range(1, int.MaxValue, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.TanarKivalasztasaKotelezo))] [Display(Name = nameof(TantargyResource.TanarPedagogusValasztasa), ResourceType = typeof(TantargyResource))] public int TanarId { get; set; } [KretaRequired(typeof(TantargyResource), nameof(TantargyResource.TantargyMegadasaKotelezo))] [Range(1, int.MaxValue, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.TantargyMegadasaKotelezo))] [Display(Name = nameof(TantargyResource.Tantargy), ResourceType = typeof(TantargyResource))] public int TantargyId { get; set; } [KretaRequired(typeof(TantargyResource), nameof(TantargyResource.OsztalyVagyCsoportMegadasaKotelezo))] [Range(1, int.MaxValue, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.OsztalyVagyCsoportMegadasaKotelezo))] [Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))] public int CsoportID { get; set; } [KretaRequired(typeof(TantargyResource), nameof(TantargyResource.OraszamMegadasaKotelezo))] [Range(0, Core.Constants.General.TantargyfelosztasImportMaxOraszam, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.AzOraszamCsakEgy0Es50KozottiSzamLehet))] [Display(Name = nameof(TantargyResource.HetiOraszam), ResourceType = typeof(TantargyResource))] public double Oraszam { get; set; } [KretaRequired(typeof(TantargyResource), nameof(TantargyResource.TuloraMegadasaKotelezo))] [Range(0, Core.Constants.General.TantargyfelosztasImportMaxOraszam, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.ATuloraCsakEgy0Es50KozottiSzamLehet))] [Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))] public double TuloraSzam { get; set; } [Display(Name = nameof(TantargyResource.Oraszamkorrekcio), ResourceType = typeof(TantargyResource))] public bool OsszevontOra { get; set; } [Display(Name = nameof(TantargyResource.NemzetisegiOra), ResourceType = typeof(TantargyResource))] public bool NemzetisegiOra { get; set; } [Range(0, Core.Constants.General.TantargyfelosztasImportMaxOraszam, ErrorMessageResourceType = typeof(TantargyResource), ErrorMessageResourceName = nameof(TantargyResource.AMegbizasiCsakEgy0Es50KozottiSzamLehet))] [Display(Name = nameof(TantargyfelosztasResource.MegbizasiOraszam), ResourceType = typeof(TantargyfelosztasResource))] public double MegbizasiOraszam { get; set; } [Display(Name = nameof(TantargyResource.VisszamenolegesModositas), ResourceType = typeof(TantargyResource))] public bool VisszamenolegesModositas { get; set; } [Display(Name = nameof(TantargyResource.KapcsolodoOrarendiOrakModositasa), ResourceType = typeof(TantargyResource))] public bool KapcsolodoOrarendiOrakModositasa { get; set; } [Display(Name = nameof(TantargyResource.FoglalkozasTipusa), ResourceType = typeof(TantargyResource))] public int? TipusId { get; set; } [Display(Name = nameof(TantargyResource.ErtekelesekSzama), ResourceType = typeof(TantargyResource))] public int ErtekelesekSzama { get; set; } [Display(Name = nameof(TantargyResource.TanorakSzama), ResourceType = typeof(TantargyResource))] public int TanorakSzama { get; set; } [Display(Name = nameof(TantargyResource.DiakokSzama), ResourceType = typeof(TantargyResource))] public int DiakokSzama { get; set; } public bool Modosithato { get; set; } [Display(Name = nameof(TantargyResource.MulasztasokSzama), ResourceType = typeof(TantargyResource))] public int MulasztasokSzama { get; set; } public bool IsFromSzervezet { get; set; } = false; } }