using System; using System.ComponentModel.DataAnnotations; using Kreta.BusinessLogic.HelperClasses; using Kreta.BusinessLogic.Interfaces; using Kreta.Core.CustomAttributes; using Kreta.Resources; namespace Kreta.Web.Areas.Tanar.Models { public class OralatogatasokKereseseGridModel : IKretaIdentity { public const string OralatogatasExportAttributeId = nameof(OralatogatasExportAttributeId); public OralatogatasokKereseseGridModel() { } public OralatogatasokKereseseGridModel(OralatogatasItemCo oralatogatasCo) { ID = oralatogatasCo.Id.ToString(); AlkalmazottId = oralatogatasCo.LatogatoID.ToString(); TanitasiOraId = oralatogatasCo.TanitasiOraId.ToString(); Datum = oralatogatasCo.Date; Oraszam = oralatogatasCo.Ora; Alkalmazott = oralatogatasCo.Latogato; AlkalmazottElotagNelkul = oralatogatasCo.LatogatoElotagNelkul; Beosztas = oralatogatasCo.Beosztas; LatogatottPedagogus = oralatogatasCo.LatogatottPedagogus; Tantargy = oralatogatasCo.Tantargy; OsztalyCsoport = oralatogatasCo.OsztalyCsoport; IsSajatErtekeles_BOOL = oralatogatasCo.IsSajatErtekeles; } public string ID { get; set; } public string AlkalmazottId { get; set; } public string TanitasiOraId { get; set; } [Display(Name = nameof(OralatogatasokResource.Datum), ResourceType = typeof(OralatogatasokResource))] [SimpleExportColumn(OralatogatasExportAttributeId, 00, nameof(OralatogatasokResource.Datum), typeof(OralatogatasokResource))] public DateTime Datum { get; set; } [Display(Name = nameof(OralatogatasokResource.Ora), ResourceType = typeof(OralatogatasokResource))] [SimpleExportColumn(OralatogatasExportAttributeId, 01, nameof(OralatogatasokResource.Ora), typeof(OralatogatasokResource))] public int Oraszam { get; set; } [Display(Name = nameof(OralatogatasokResource.LatogatoPedagogus), ResourceType = typeof(OralatogatasokResource))] [SimpleExportColumn(OralatogatasExportAttributeId, 02, nameof(OralatogatasokResource.LatogatoPedagogus), typeof(OralatogatasokResource))] public string Alkalmazott { get; set; } [Display(Name = nameof(OralatogatasokResource.LatogatoPedagogus), ResourceType = typeof(OralatogatasokResource))] public string AlkalmazottElotagNelkul { get; set; } [Display(Name = nameof(OralatogatasokResource.LatogatoPedagogusBeosztasa), ResourceType = typeof(OralatogatasokResource))] [SimpleExportColumn(OralatogatasExportAttributeId, 03, nameof(OralatogatasokResource.LatogatoPedagogusBeosztasa), typeof(OralatogatasokResource))] public string Beosztas { get; set; } [Display(Name = nameof(OralatogatasokResource.LatogatottPedagogus), ResourceType = typeof(OralatogatasokResource))] [SimpleExportColumn(OralatogatasExportAttributeId, 04, nameof(OralatogatasokResource.LatogatottPedagogus), typeof(OralatogatasokResource))] public string LatogatottPedagogus { get; set; } [Display(Name = nameof(OralatogatasokResource.Tantargy), ResourceType = typeof(OralatogatasokResource))] [SimpleExportColumn(OralatogatasExportAttributeId, 05, nameof(OralatogatasokResource.Tantargy), typeof(OralatogatasokResource))] public string Tantargy { get; set; } [Display(Name = nameof(OralatogatasokResource.OsztalyCsoport), ResourceType = typeof(OralatogatasokResource))] [SimpleExportColumn(OralatogatasExportAttributeId, 06, nameof(OralatogatasokResource.OsztalyCsoport), typeof(OralatogatasokResource))] public string OsztalyCsoport { get; set; } public bool IsSajatErtekeles_BOOL { get; set; } } }