190 lines
8.1 KiB
C#
190 lines
8.1 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Reflection;
|
|
using Kreta.Resources;
|
|
using Kreta.Web.Attributes;
|
|
|
|
namespace Kreta.Web.Areas.Orarend.Models
|
|
{
|
|
public class AdminKozpontiOrakRogzitesModel
|
|
{
|
|
public int DefaultTanarID { get; set; }
|
|
public int DefaultTantargyID { get; set; }
|
|
public int DefaultTeremID { get; set; }
|
|
|
|
[KretaDisplayName(1532)] /*Sorszámozandó*/
|
|
public bool Sorszamozando { get; set; }
|
|
|
|
[KretaDisplayName(1544)] /*>Párhuzamos óra*/
|
|
public bool ParhuzamosOra { get; set; }
|
|
|
|
[KretaDisplayName(1533)] /*Túlóra*/
|
|
public bool Tulora { get; set; }
|
|
|
|
[KretaDisplayName(1534)] /*TÁMOP óra*/
|
|
public bool TAMOPOra { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.KIPOra), ResourceType = typeof(OrarendResource))]
|
|
public bool KIPOra { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.VEKOP73317), ResourceType = typeof(OrarendResource))]
|
|
public bool VEKOP73317 { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.KAPOra), ResourceType = typeof(OrarendResource))]
|
|
public bool KAPOra { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.NemSzakrendszeruOra), ResourceType = typeof(OrarendResource))]
|
|
public bool NemSzakrendszeruOra { get; set; }
|
|
|
|
[KretaDisplayName(1536)] /*IKT tanóra*/
|
|
public bool IKTTanora { get; set; }
|
|
|
|
[KretaDisplayName(1537)] /*Nemzetiségi tanóra*/
|
|
public bool NemzetisegiOra { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.MegbizasiSzerzodesselEllatottOra), ResourceType = typeof(TantargyResource))]
|
|
public bool IsFelnottoktatasiSzerzodes { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.OnlineOra), ResourceType = typeof(OrarendResource))]
|
|
public bool OnlineOra { get; set; }
|
|
|
|
[KretaDisplayName(1538)] /*Mindennapos testnevelés*/
|
|
public bool MindennaposTestneveles { get; set; }
|
|
|
|
[KretaDisplayName(1539)] /*IPR tanóra*/
|
|
public bool IPRTanora { get; set; }
|
|
|
|
[KretaDisplayName(1540)] /*Differenciált*/
|
|
public bool Differencialt { get; set; }
|
|
|
|
[KretaDisplayName(1541)] /*Kooperatív*/
|
|
public bool Kooperativ { get; set; }
|
|
|
|
[KretaDisplayName(1542)] /*Mérés*/
|
|
public bool Meres { get; set; }
|
|
|
|
[KretaDisplayName(1543)] /*Dráma*/
|
|
public bool Drama { get; set; }
|
|
|
|
[KretaDisplayName(1545)] /*TIOP 12*/
|
|
public bool Tiop { get; set; }
|
|
|
|
[KretaDisplayName(2593)] /*Bontott*/
|
|
public bool Bontott { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Multikulturalis), ResourceType = typeof(OrarendResource))]
|
|
public bool Multikulturalis { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.EFOP32317DigitalisKornyezetAKozenevelesben), ResourceType = typeof(OrarendResource))]
|
|
public bool EFOP32317 { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.KomplexOra), ResourceType = typeof(OrarendResource))]
|
|
public bool KomplexOra { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.GINOP623), ResourceType = typeof(OrarendResource))]
|
|
public bool GINOP623 { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.EFOP31716EselyteremtesAKoznevelesben), ResourceType = typeof(OrarendResource))]
|
|
public bool EFOP31716EselyteremtesAKoznevelesben { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.EFOP33717), ResourceType = typeof(OrarendResource))]
|
|
public bool EFOP33717 { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.TIOP11112120120001), ResourceType = typeof(OrarendResource))]
|
|
public bool TIOP11112120120001 { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.DFHT), ResourceType = typeof(OrarendResource))]
|
|
public bool DFHT { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Rahangolodas), ResourceType = typeof(OrarendResource))]
|
|
public bool Rahangolodas { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Testmozgas), ResourceType = typeof(OrarendResource))]
|
|
public bool Testmozgas { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Muveszet), ResourceType = typeof(OrarendResource))]
|
|
public bool Muveszet { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Eletgyakorlat), ResourceType = typeof(OrarendResource))]
|
|
public bool Eletgyakorlat { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Logika), ResourceType = typeof(OrarendResource))]
|
|
public bool Logika { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.TeOrad), ResourceType = typeof(OrarendResource))]
|
|
public bool TeOrad { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.DigitalisAlapProgram), ResourceType = typeof(OrarendResource))]
|
|
public bool DigitalisAlapProgram { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.EFOP23517201700038Miapalya), ResourceType = typeof(OrarendResource))]
|
|
public bool EFOP23517201700038Miapalya { get; set; }
|
|
public DateTime? OraDatum { get; set; }
|
|
public int? Oraszam { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.IsEgybefuggoGyakorlat), ResourceType = typeof(OrarendResource))]
|
|
public bool IsEgybefuggoGyakorlat { get; set; }
|
|
|
|
public int GetNumberOfTrueProperties()
|
|
{
|
|
var result = 0;
|
|
|
|
foreach (PropertyInfo prop in GetType().GetProperties())
|
|
{
|
|
var type = Nullable.GetUnderlyingType(prop.PropertyType) ?? prop.PropertyType;
|
|
if (type == typeof(Boolean) && (bool)prop.GetValue(this))
|
|
{
|
|
result++;
|
|
}
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
public static AdminKozpontiOrakRogzitesModel MapFromTanoraAdatok(TanoraAdatok tanoraAdatok)
|
|
{
|
|
return new AdminKozpontiOrakRogzitesModel
|
|
{
|
|
Sorszamozando = tanoraAdatok.Sorszamozando,
|
|
ParhuzamosOra = tanoraAdatok.ParhuzamosOra,
|
|
Tulora = tanoraAdatok.Tulora,
|
|
TAMOPOra = tanoraAdatok.TAMOPOra,
|
|
KIPOra = tanoraAdatok.KIPOra,
|
|
VEKOP73317 = tanoraAdatok.VEKOP73317,
|
|
KAPOra = tanoraAdatok.KAPOra,
|
|
NemSzakrendszeruOra = tanoraAdatok.NemSzakrendszeruOra,
|
|
IKTTanora = tanoraAdatok.IKTTanora,
|
|
NemzetisegiOra = tanoraAdatok.NemzetisegiOra,
|
|
IsEgybefuggoGyakorlat = tanoraAdatok.IsEgybefuggoGyakorlat,
|
|
IsFelnottoktatasiSzerzodes = tanoraAdatok.IsFelnottoktatasiSzerzodes,
|
|
OnlineOra = tanoraAdatok.OnlineOra,
|
|
MindennaposTestneveles = tanoraAdatok.MindennaposTestneveles,
|
|
IPRTanora = tanoraAdatok.IPRTanora,
|
|
Differencialt = tanoraAdatok.Differencialt,
|
|
Kooperativ = tanoraAdatok.Kooperativ,
|
|
Meres = tanoraAdatok.Meres,
|
|
Drama = tanoraAdatok.Drama,
|
|
Tiop = tanoraAdatok.Tiop,
|
|
TIOP11112120120001 = tanoraAdatok.TIOP11112120120001,
|
|
Bontott = tanoraAdatok.Bontott,
|
|
Multikulturalis = tanoraAdatok.Multikulturalis,
|
|
EFOP32317 = tanoraAdatok.EFOP32317,
|
|
EFOP33717 = tanoraAdatok.EFOP33717,
|
|
EFOP31716EselyteremtesAKoznevelesben = tanoraAdatok.EFOP31716EselyteremtesAKoznevelesben,
|
|
KomplexOra = tanoraAdatok.KomplexOra,
|
|
GINOP623 = tanoraAdatok.GINOP623,
|
|
DFHT = tanoraAdatok.DFHT,
|
|
Rahangolodas = tanoraAdatok.Rahangolodas,
|
|
Testmozgas = tanoraAdatok.Testmozgas,
|
|
Muveszet = tanoraAdatok.Muveszet,
|
|
Eletgyakorlat = tanoraAdatok.Eletgyakorlat,
|
|
Logika = tanoraAdatok.Logika,
|
|
TeOrad = tanoraAdatok.TeOrad,
|
|
DigitalisAlapProgram = tanoraAdatok.DigitalisAlapProgram,
|
|
EFOP23517201700038Miapalya = tanoraAdatok.EFOP23517201700038Miapalya,
|
|
OraDatum = tanoraAdatok.OraDatum,
|
|
Oraszam = tanoraAdatok.Oraszam
|
|
};
|
|
}
|
|
}
|
|
}
|