kreta/KretaWeb/Areas/TanuloErtekeles/Models/ErettsegiEredmenyekKeresoSearchModel.cs
2024-03-13 00:33:46 +01:00

77 lines
3.9 KiB
C#

using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.Resources;
namespace Kreta.Web.Areas.TanuloErtekeles.Models
{
public class ErettsegiEredmenyekKeresoSearchModel
{
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
public int? FeladatKategoriaId { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public int? FeladatEllatasiHelyId { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.TanuloNeve), ResourceType = typeof(ErettsegiEredmenyekResource))]
public string Tanulo { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.Osztaly), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? OsztalyId { get; set; }
[Display(Name = nameof(OrarendResource.KapcsolodoCsoportok), ResourceType = typeof(OrarendResource))]
public bool? IsKellKapcsolodoCsoportok { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.OktatasiAzonosito), ResourceType = typeof(ErettsegiEredmenyekResource))]
public string OktatasiAzonosito { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.Tantargy), ResourceType = typeof(ErettsegiEredmenyekResource))]
public string Tantargy { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.Szint), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? SzintId { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.Tipus), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? TipusId { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.IrasbeliPontszam), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? IrasbeliPontszam { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.SzobeliPontszam), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? SzobeliPontszam { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.GyakorlatiPontszam), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? GyakorlatiPontszam { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.OsszPontszam), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? OsszPontszam { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.Szazalek), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? Szazalek { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.Erdemjegy), ResourceType = typeof(ErettsegiEredmenyekResource))]
public int? Erdemjegy { get; set; }
[Display(Name = nameof(ErettsegiEredmenyekResource.Megjegyzes), ResourceType = typeof(ErettsegiEredmenyekResource))]
public string Megjegyzes { get; set; }
public static ErettsegiEredmenyekKeresoCO ConvertModelToCo(ErettsegiEredmenyekKeresoSearchModel model)
=> new ErettsegiEredmenyekKeresoCO
{
FeladatEllatasiHelyId = model.FeladatEllatasiHelyId,
FeladatKategoriaId = model.FeladatKategoriaId,
Tanulo = model.Tanulo,
OsztalyId = model.OsztalyId,
OktatasiAzonosito = model.OktatasiAzonosito,
Tantargy = model.Tantargy,
SzintId = model.SzintId,
TipusId = model.TipusId,
IrasbeliPontszam = model.IrasbeliPontszam,
SzobeliPontszam = model.SzobeliPontszam,
GyakorlatiPontszam = model.GyakorlatiPontszam,
OsszPontszam = model.OsszPontszam,
Szazalek = model.Szazalek,
Erdemjegy = model.Erdemjegy,
Megjegyzes = model.Megjegyzes
};
}
}