using System; using System.ComponentModel.DataAnnotations; using Kreta.BusinessLogic.Logic.Naplozas.Elokeszites; using Kreta.Resources; namespace Kreta.Web.Areas.Tantargy.Models { public class TanorakSearchModel { [Display(Name = nameof(TantargyResource.IdoszakKezdete), ResourceType = typeof(TantargyResource))] public DateTime? IdoszakKezdete { get; set; } [Display(Name = nameof(TantargyResource.IdoszakVege), ResourceType = typeof(TantargyResource))] public DateTime? IdoszakVege { get; set; } [Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))] public int? OsztalyCsoportId { get; set; } [Display(Name = nameof(TantargyResource.Helyettesitett), ResourceType = typeof(TantargyResource))] public int? Helyetesitett { get; set; } [Display(Name = nameof(TantargyResource.Tanar), ResourceType = typeof(TantargyResource))] public int? TanarId { get; set; } [Display(Name = nameof(TantargyResource.Tantargy), ResourceType = typeof(TantargyResource))] public int? TantargyId { get; set; } public DateTime? OraKezdete { get; set; } public int? SzervezetTipusId_TanorakSearch { get; set; } public TanorakSearchModel(int? szervezetTipusId = null) { SzervezetTipusId_TanorakSearch = szervezetTipusId; } public void Fill(NaplozasElokeszitesModel model) { OsztalyCsoportId = model.OraAdat.OsztalyCsoportId; TantargyId = model.OraAdat.TantargyId; OraKezdete = model.OraAdat.OraKezdete; } } }