This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,8 @@
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottDetailModel
{
public int Id { get; set; }
public string AlkalmazottApiControllerName { get; set; }
}
}

View file

@ -0,0 +1,82 @@
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.Alkalmazott.Models
{
public class AlkalmazottGridModel : IKretaIdentity
{
public const string AlkalmazottExportAttributeId = nameof(AlkalmazottExportAttributeId);
public const string DualisAlkalmazottExportAttributeId = nameof(DualisAlkalmazottExportAttributeId);
public AlkalmazottGridModel()
{
}
public AlkalmazottGridModel(AlkalmazottItemCo itemCo)
{
ID = itemCo.Id.ToString();
Nev = itemCo.FelhasznaloNyomtatasiNev;
NevElotagNelkul = itemCo.FelhasznaloNevElotagNelkul;
TanevNev = itemCo.TanevNev;
SzuletesiHely = itemCo.FelhasznaloSzuletesiHely;
SzuletesiDatum = itemCo.FelhasznaloSzuletesiIdo;
OktatasiAzonosito = itemCo.FelhasznaloOktatasiAzonosito;
BejelentkezesiNev = itemCo.BejelentkezesiNev;
RogzitoId = itemCo.RogzitoId;
SzervezetNev = itemCo.SzervezetNeve;
SzervezetAzonosito = itemCo.SzervezetAzonositoja;
IsSzerkesztheto = itemCo.IsSzerkesztheto;
}
public string ID { get; set; }
[Display(Name = nameof(FelhasznalokResource.Nev), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 00, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameNev), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 00, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameNev), typeof(AlkalmazottResource))]
public string Nev { get; set; }
[Display(Name = nameof(FelhasznalokResource.Nev), ResourceType = typeof(FelhasznalokResource))]
public string NevElotagNelkul { get; set; }
[Display(Name = nameof(CommonResource.Tanev), ResourceType = typeof(CommonResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 01, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameTanevNev), typeof(AlkalmazottResource))]
public string TanevNev { get; set; }
[Display(Name = nameof(FelhasznalokResource.SzuletesiHely), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 02, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiHely), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 01, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiHely), typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[Display(Name = nameof(FelhasznalokResource.SzuletesiIdo), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 03, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiIdo), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 02, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameSzuletesiIdo), typeof(AlkalmazottResource))]
public DateTime SzuletesiDatum { get; set; }
[Display(Name = nameof(FelhasznalokResource.OktatasiAzonosito), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 04, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameOktatasiAzonosito), typeof(AlkalmazottResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 03, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameOktatasiAzonosito), typeof(AlkalmazottResource))]
public string OktatasiAzonosito { get; set; }
[Display(Name = nameof(FelhasznalokResource.FelhasznaloNev), ResourceType = typeof(FelhasznalokResource))]
[SimpleExportColumn(AlkalmazottExportAttributeId, 05, nameof(AlkalmazottResource.AlkalmazottExportHeaderNameFelhasznaloNev), typeof(AlkalmazottResource))]
public string BejelentkezesiNev { get; set; }
public int? RogzitoId { get; set; }
[Display(Name = nameof(TeremResource.SzervezetNeve), ResourceType = typeof(TeremResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 04, nameof(TeremResource.SzervezetNeve), typeof(TeremResource))]
public string SzervezetNev { get; set; }
[Display(Name = nameof(TeremResource.SzervezetAzonosito), ResourceType = typeof(TeremResource))]
[SimpleExportColumn(DualisAlkalmazottExportAttributeId, 05, nameof(TeremResource.SzervezetAzonosito), typeof(TeremResource))]
public string SzervezetAzonosito { get; set; }
public bool IsSzerkesztheto { get; set; }
}
}

View file

@ -0,0 +1,880 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Core.CustomAttributes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottInfoModel
{
public class AlapadatModel
{
[Display(Name = nameof(AlkalmazottResource.OktatasiAzonosito), ResourceType = typeof(AlkalmazottResource))]
public string OktatasiAzonosito { get; set; }
[Display(Name = nameof(AlkalmazottResource.Neme), ResourceType = typeof(AlkalmazottResource))]
public int Nem { get; set; }
[Display(Name = nameof(AlkalmazottResource.Neme), ResourceType = typeof(AlkalmazottResource))]
public string Nem_NAME { get { return Nem.GetDisplayName<NemEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.Elotag), ResourceType = typeof(AlkalmazottResource))]
public string EloTag { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string CsaladiNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottUtonev), ResourceType = typeof(AlkalmazottResource))]
public string Utonev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiCsaladNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiUtonev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiUtonev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiElotag), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiElotag { get; set; }
[Display(Name = nameof(AlkalmazottResource.AnyjaCsaladiNeve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaCsaladiNeve { get; set; }
[Display(Name = nameof(AlkalmazottResource.AnyjaUtoneve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaUtonev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AnyjaElotag), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaElotag { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiOrszag), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiOrszag { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiHely), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiIdo), ResourceType = typeof(AlkalmazottResource))]
public DateTime SzuletesiIdo { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiIdo), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiIdo_SDATE { get { return SzuletesiIdo.ToString(Core.Constants.ToStringPattern.HungarianDateWithSpaces); } }
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag), ResourceType = typeof(AlkalmazottResource))]
public string Allampolgarsag { get; set; }
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag2), ResourceType = typeof(AlkalmazottResource))]
public string Allampolgarsag2 { get; set; }
[Display(Name = nameof(AlkalmazottResource.IgazolvanyTipus), ResourceType = typeof(AlkalmazottResource))]
public int? IgazolvanyTipus { get; set; }
[Display(Name = nameof(AlkalmazottResource.IgazolvanyTipus), ResourceType = typeof(AlkalmazottResource))]
public string IgazolvanyTipus_NAME { get { return IgazolvanyTipus.GetDisplayName<IgazolvanyTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.IgazolvanySzam), ResourceType = typeof(AlkalmazottResource))]
public string IgazolvanySzam { get; set; }
[Display(Name = nameof(AlkalmazottResource.Felhasznalonev), ResourceType = typeof(AlkalmazottResource))]
public string BelepesiNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AktivStatusz), ResourceType = typeof(AlkalmazottResource))]
public bool AktivStatusz { get; set; }
[Display(Name = nameof(AlkalmazottResource.AktivStatusz), ResourceType = typeof(AlkalmazottResource))]
public string AktivStatusz_BNAME { get { return AktivStatusz.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.Neptunkod), ResourceType = typeof(AlkalmazottResource))]
public string Tanev { get; set; }
[Display(Name = nameof(AlkalmazottResource.AdoazonositoJel), ResourceType = typeof(AlkalmazottResource))]
public string AdoazonositoJel { get; set; }
[Display(Name = nameof(FelhasznalokResource.TAJszam), ResourceType = typeof(FelhasznalokResource))]
public string TajSzam { get; set; }
[Display(Name = nameof(AlkalmazottResource.Megjegyzes), ResourceType = typeof(AlkalmazottResource))]
public string Megjegyzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public bool IsKuldhetoPedMinositesSzRnek { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public string IsKuldhetoPedMinositesSzRnek_Str { get { return IsKuldhetoPedMinositesSzRnek.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.Anyanyelve), ResourceType = typeof(AlkalmazottResource))]
public string Anyanyelve { get; set; }
}
public class ElsodlegesMunkaugyiAdatok
{
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? BesorolasiFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public string BesorolasiFokozat_NAME { get { return BesorolasiFokozat.GetDisplayName<BesorolasiFokozatTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public int? Munkakor { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public string Munkakor_NAME { get { return Munkakor.GetDisplayName<MunkakorTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasiJogviszony_NAME { get { return FoglalkoztatasiJogviszony.GetDisplayName<MunkaviszonyTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasTipusa_NAME { get { return FoglalkoztatasTipusa.GetDisplayName<FoglalkoztatasTipusaEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
public double? KotelezoOraszam { get; set; }
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public string MunkaidoKedvezmenyOka_NAME { get { return MunkaidoKedvezmenyOka.GetDisplayName<MunkaidoKedvezmenyOkaEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
public string AlkalmazasKezdete_SDATE { get { return AlkalmazasKezdete.ToShortDateString(); } }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
public string AlkalmazasVege_SDATE { get { return AlkalmazasVege.ToShortDateString(); } }
public int? VezetoiOraszamOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public string VezetoiOraszamOka_NAME { get { return VezetoiOraszamOka.GetDisplayName<VezetoiOraszamokTipusEnum>(ClaimData.SelectedTanevID.Value); } }
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public string FeladatellatasiHely_NAME { get; set; }
public bool TartosanTavollevo { get; set; }
[Display(Name = nameof(AlkalmazottResource.TartosanTavollevo), ResourceType = typeof(AlkalmazottResource))]
public string TartosanTavollevo_BNAME { get { return TartosanTavollevo.GetDisplayName(); } }
public bool BetoltetlenAllashely { get; set; }
[Display(Name = nameof(AlkalmazottResource.BetoltetlenAllashely), ResourceType = typeof(AlkalmazottResource))]
public string BetoltetlenAllashely_BNAME { get { return BetoltetlenAllashely.GetDisplayName(); } }
public bool IsKulsoAlkalmazott { get; set; }
[Display(Name = nameof(AlkalmazottResource.KulsoAlkalmazott), ResourceType = typeof(AlkalmazottResource))]
public string IsKulsoAlkalmazott_BNAME { get { return IsKulsoAlkalmazott.GetDisplayName(); } }
public bool Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public string Nyugdijas_BNAME { get { return Nyugdijas.GetDisplayName(); } }
public bool Foallasu { get; set; }
[Display(Name = nameof(AlkalmazottResource.Foallasu), ResourceType = typeof(AlkalmazottResource))]
public string Foallasu_BNAME { get { return Foallasu.GetDisplayName(); } }
public bool Szakvizsga { get; set; }
[Display(Name = nameof(AlkalmazottResource.Szakvizsga), ResourceType = typeof(AlkalmazottResource))]
public string Szakvizsga_BNAME { get { return Szakvizsga.GetDisplayName(); } }
public bool SzakertoiVagyVizsgaelnokiTevekenysegu { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoiVagyVizsgaelnokiTevekenysegu), ResourceType = typeof(AlkalmazottResource))]
public string SzakertoiVagyVizsgaelnokiTevekenysegu_BNAME { get { return SzakertoiVagyVizsgaelnokiTevekenysegu.GetDisplayName(); } }
public bool SzakmaiTovabbkepzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakmaiTovabbkepzes), ResourceType = typeof(AlkalmazottResource))]
public string SzakmaiTovabbkepzes_BNAME { get { return SzakmaiTovabbkepzes.GetDisplayName(); } }
public bool UtazoGyogypedagogus { get; set; }
[Display(Name = nameof(AlkalmazottResource.UtazoGyogypedagogus), ResourceType = typeof(AlkalmazottResource))]
public string UtazoGyogypedagogus_BNAME { get { return UtazoGyogypedagogus.GetDisplayName(); } }
public bool CsokkentettMunkaidos { get; set; }
[Display(Name = nameof(AlkalmazottResource.CsokkentettMunkaidos), ResourceType = typeof(AlkalmazottResource))]
public string CsokkentettMunkaidos_BNAME { get { return CsokkentettMunkaidos.GetDisplayName(); } }
public bool Attanito { get; set; }
[Display(Name = nameof(AlkalmazottResource.Attanito), ResourceType = typeof(AlkalmazottResource))]
public string Attanito_BNAME { get { return Attanito.GetDisplayName(); } }
public bool AttanitoMasIntezmeny { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoMasIntezmeny), ResourceType = typeof(AlkalmazottResource))]
public string AttanitoMasIntezmeny_BNAME { get { return AttanitoMasIntezmeny.GetDisplayName(); } }
public bool IsAttanitoSzCnBelul { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoSZCnbelul), ResourceType = typeof(AlkalmazottResource))]
public string IsAttanitoSzCnBelul_BNAME { get { return IsAttanitoSzCnBelul.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottSZTSZKod), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod { get; set; }
public bool AllandoHelyettesitesre { get; set; }
[Display(Name = nameof(AlkalmazottResource.AllandoHelyettesitesre), ResourceType = typeof(AlkalmazottResource))]
public string AllandoHelyettesitesre_BNAME { get { return AllandoHelyettesitesre.GetDisplayName(); } }
public bool SzakertoMesterpedagogusKutatotanar { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoMesterpedagogusKutatotanar), ResourceType = typeof(AlkalmazottResource))]
public string SzakertoMesterpedagogusKutatotanar_BNAME { get { return SzakertoMesterpedagogusKutatotanar.GetDisplayName(); } }
public bool VezetoPedagogusVezetoOvodaPedagogus { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoPedagogusVezetoOvodaPedagogus), ResourceType = typeof(AlkalmazottResource))]
public string VezetoPedagogusVezetoOvodaPedagogus_BNAME { get { return VezetoPedagogusVezetoOvodaPedagogus.GetDisplayName(); } }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
[Display(Name = nameof(AlkalmazottResource.OktatoiFeladatokatIsEllat), ResourceType = typeof(AlkalmazottResource))]
public string OktatoiFeladatokatIsEllat { get; set; }
public bool IsVisibleOktatoiFeladatokatIsEllat => IsNszfhUjSzkt && Munkakor.HasValue && Core.Constants.NszfhTovabbiMunkakorTipusIdList.Contains(Munkakor.Value);
public int? EgyebTevekenysegekTipusId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyebtevekenysegek), ResourceType = typeof(AlkalmazottResource))]
public string EgyebTevekenysegekTipus_NAME { get { return EgyebTevekenysegekTipusId.GetDisplayName<EgyebTevekenysegekTipusEnum>(ClaimData.SelectedTanevID.Value); } }
public bool IsOsztalyfonok { get; set; }
[Display(Name = nameof(AlkalmazottResource.Osztalyfonok), ResourceType = typeof(AlkalmazottResource))]
public string IsOsztalyfonok_BNAME { get { return IsOsztalyfonok.GetDisplayName(); } }
public bool IsDualisKepzohelyiOktato { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
public bool IsSzakiranyuOktatasertFelelos { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakiranyuOktatasertFelelos), ResourceType = typeof(AlkalmazottResource))]
public string IsSzakiranyuOktatasertFelelos_BNAME { get { return IsSzakiranyuOktatasertFelelos.GetDisplayName(); } }
public bool IsKlebelsberg { get; set; }
public bool IsInternetetOktCelraHasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInternetetOktCelraHasznal), ResourceType = typeof(AlkalmazottResource))]
public string IsInternetetOktCelraHasznal_BNAME { get { return IsInternetetOktCelraHasznal.GetDisplayName(); } }
public bool IsInformatKepIsmRendelkezik { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInformatKepIsmRendelkezik), ResourceType = typeof(AlkalmazottResource))]
public string IsInformatKepIsmRendelkezik_BNAME { get { return IsInformatKepIsmRendelkezik.GetDisplayName(); } }
public bool IsIktEszkozoketLgalabb40Hasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsIktEszkozoketLgalabb40Hasznal), ResourceType = typeof(AlkalmazottResource))]
public string IsIktEszkozoketLgalabb40Hasznal_BNAME { get { return IsIktEszkozoketLgalabb40Hasznal.GetDisplayName(); } }
public bool HasEfopEszkoz { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasEfopEszkoz), ResourceType = typeof(AlkalmazottResource))]
public string HasEfopEszkoz_BNAME { get { return HasEfopEszkoz.GetDisplayName(); } }
public bool IsApaczaiMentor { get; set; }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentor), ResourceType = typeof(AlkalmazottResource))]
public string IsApaczaiMentor_BNAME { get { return IsApaczaiMentor.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentorprogramhozKapcsolodoSZTSZ), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod2 { get; set; }
public bool HasBankszamlaInfo { get; set; }
public bool HasNyugdijInfo { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasBankszamlaInfo), ResourceType = typeof(AlkalmazottResource))]
public string HasBankszamlaInfo_BNAME { get { return HasBankszamlaInfo.GetDisplayName(); } }
[Display(Name = nameof(AlkalmazottResource.HasNyugdijInfo), ResourceType = typeof(AlkalmazottResource))]
public string HasNyugdijInfo_BNAME { get { return HasNyugdijInfo.GetDisplayName(); } }
public bool IsApaczaiMentorVisible { get; set; }
public bool IsFromSzervezetOktato { get; set; }
}
public class ElerhetosegCimModel : IKretaIdentity
{
public const string ElerhetosegCimExportAttributeId = nameof(ElerhetosegCimExportAttributeId);
public ElerhetosegCimModel()
{
}
public ElerhetosegCimModel(AlkalmazottElerhetosegCimItemCo co)
{
ID = co.Id;
Orszag_DNAME = co.Orszag_DNAME;
TIPUS_DNAME = co.Tipus_DNAME;
IRANYITOSZAM = co.Iranyitoszam;
VAROS = co.Varos;
Cim = co.Cim;
KOZTERULET = co.Kozterulet;
KozteruletJellegeNev = co.KozteruletJellegeNev;
HAZSZAM = co.Hazszam;
EMELET = co.Emelet;
AJTO = co.Ajto;
Alapertelmezett_BOOL = co.Alapertelmezett_BOOL;
Alapertelmezett_BNAME = co.Alapertelmezett_BNAME;
}
public string ID { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 01, nameof(TanuloResource.Orszag), typeof(TanuloResource))]
[Display(Name = nameof(TanuloResource.Orszag), ResourceType = typeof(TanuloResource))]
public string Orszag_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 00, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string TIPUS_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 02, nameof(AlkalmazottResource.Iranyitoszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Iranyitoszam), ResourceType = typeof(AlkalmazottResource))]
public string IRANYITOSZAM { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 03, nameof(AlkalmazottResource.Helyseg), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyseg), ResourceType = typeof(AlkalmazottResource))]
public string VAROS { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 04, nameof(AlkalmazottResource.Cim), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Cim), ResourceType = typeof(AlkalmazottResource))]
public string Cim { get; set; }
public string KOZTERULET { get; set; }
[Display(Name = nameof(TanuloResource.KozteruletJellege), ResourceType = typeof(TanuloResource))]
public string KozteruletJellegeNev { get; set; }
public string HAZSZAM { get; set; }
public string EMELET { get; set; }
public string AJTO { get; set; }
public bool Alapertelmezett_BOOL { get; set; }
[SimpleExportColumn(ElerhetosegCimExportAttributeId, 05, nameof(AlkalmazottResource.Alapertelmezett), typeof(AlkalmazottResource))]
public string Alapertelmezett_BNAME { get; set; }
}
public class ElerhetosegEmailModel : IKretaIdentity
{
public const string ElerhetosegEmailExportAttributeId = nameof(ElerhetosegEmailExportAttributeId);
public ElerhetosegEmailModel()
{
}
public ElerhetosegEmailModel(AlkalmazottElerhetosegEmailItemCo co)
{
ID = co.Id;
TYPE_DNAME = co.Type_DNAME;
Email = co.Email;
ALAPERTELMEZETT_BOOL = co.Alapertelmezett_BOOL;
IsPublic_BOOL = co.IsPublic_BOOL;
IsHibasanMegadva_BOOL = co.IsHibasanMegadva_BOOL;
Alapertelmezett_BNAME = co.Alapertelmezett_BNAME;
}
public string ID { get; set; }
[SimpleExportColumn(ElerhetosegEmailExportAttributeId, 00, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string TYPE_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegEmailExportAttributeId, 01, nameof(AlkalmazottResource.EmailCim), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.EmailCim), ResourceType = typeof(AlkalmazottResource))]
public string Email { get; set; }
[Display(Name = nameof(AlkalmazottResource.Alapertelmezett), ResourceType = typeof(AlkalmazottResource))]
public bool ALAPERTELMEZETT_BOOL { get; set; }
[Display(Name = nameof(AlkalmazottResource.Publikus), ResourceType = typeof(AlkalmazottResource))]
public bool IsPublic_BOOL { get; set; }
public bool IsHibasanMegadva_BOOL { get; set; }
[SimpleExportColumn(ElerhetosegEmailExportAttributeId, 02, nameof(AlkalmazottResource.Alapertelmezett), typeof(AlkalmazottResource))]
public string Alapertelmezett_BNAME { get; set; }
}
public class ElerhetosegTelefonModel : IKretaIdentity
{
public const string ElerhetosegTelefonExportAttributeId = nameof(ElerhetosegTelefonExportAttributeId);
public ElerhetosegTelefonModel()
{
}
public ElerhetosegTelefonModel(AlkalmazottElerhetosegTelefonItemCo co)
{
ID = co.Id;
TYPE_DNAME = co.Type_DNAME;
Phone = co.Phone;
ALAPERTELMEZETT_BOOL = co.Alapertelmezett_BOOL;
IsPublic_BOOL = co.IsPublic_BOOL;
Alapertelmezett_BNAME = co.Alapertelmezett_BNAME;
}
public string ID { get; set; }
[SimpleExportColumn(ElerhetosegTelefonExportAttributeId, 00, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string TYPE_DNAME { get; set; }
[SimpleExportColumn(ElerhetosegTelefonExportAttributeId, 01, nameof(AlkalmazottResource.Telefonszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Telefonszam), ResourceType = typeof(AlkalmazottResource))]
public string Phone { get; set; }
[Display(Name = nameof(AlkalmazottResource.Alapertelmezett), ResourceType = typeof(AlkalmazottResource))]
public bool ALAPERTELMEZETT_BOOL { get; set; }
[Display(Name = nameof(AlkalmazottResource.Publikus), ResourceType = typeof(AlkalmazottResource))]
public bool IsPublic_BOOL { get; set; }
[SimpleExportColumn(ElerhetosegTelefonExportAttributeId, 02, nameof(AlkalmazottResource.Alapertelmezett), typeof(AlkalmazottResource))]
public string Alapertelmezett_BNAME { get; set; }
}
public class FoglalkozasModel : IKretaIdentity
{
public const string FoglalkozasExportAttributeId = nameof(FoglalkozasExportAttributeId);
public FoglalkozasModel()
{
}
public FoglalkozasModel(AlkalmazottFoglalkozasItemCo co)
{
ID = co.Id;
Tantargy = co.Tantargy;
OsztalyCsoport = co.OsztalyCsoport;
HetiOraszam = co.HetiOraszam;
Foglalkozas_DNAME = co.Foglalkozas_DNAME;
}
public string ID { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 00, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 01, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 02, nameof(AlkalmazottResource.HetiOraszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.HetiOraszam), ResourceType = typeof(AlkalmazottResource))]
public int HetiOraszam { get; set; }
[SimpleExportColumn(FoglalkozasExportAttributeId, 03, nameof(AlkalmazottResource.FoglalkozasTipusa), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkozasTipusa), ResourceType = typeof(AlkalmazottResource))]
public string Foglalkozas_DNAME { get; set; }
}
public class OrarendiOraModel : IKretaIdentity
{
public const string OrarendiOraExportAttributeId = nameof(OrarendiOraExportAttributeId);
public OrarendiOraModel()
{
}
public OrarendiOraModel(AlkalmazottOrarendiOrakItemCo co)
{
ID = co.Id;
Hetirend_DNAME = co.Hetirend_DNAME;
HetNapja_DNAME = co.HetNapja_DNAME;
Ora = co.Ora;
OsztalyCsoport = co.OsztalyCsoport;
Tantargy = co.Tantargy;
Helyiseg = co.Helyiseg;
ErvenyessegKezdete = co.ErvenyessegKezdete;
ErvenyessegVege = co.ErvenyessegVege;
}
public string ID { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 00, nameof(AlkalmazottResource.OrarendiNapHetirendje), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OrarendiNapHetirendje), ResourceType = typeof(AlkalmazottResource))]
public string Hetirend_DNAME { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 01, nameof(AlkalmazottResource.Nap), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Nap), ResourceType = typeof(AlkalmazottResource))]
public string HetNapja_DNAME { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 02, nameof(AlkalmazottResource.Ora), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Ora), ResourceType = typeof(AlkalmazottResource))]
public int Ora { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 03, nameof(AlkalmazottResource.OsztalyPerCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyPerCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 04, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 05, nameof(AlkalmazottResource.Helyiseg), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyiseg), ResourceType = typeof(AlkalmazottResource))]
public string Helyiseg { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 06, nameof(AlkalmazottResource.ErvenyessegKezdete), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.ErvenyessegKezdete), ResourceType = typeof(AlkalmazottResource))]
public DateTime? ErvenyessegKezdete { get; set; }
[SimpleExportColumn(OrarendiOraExportAttributeId, 07, nameof(AlkalmazottResource.ErvenyessegVege), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.ErvenyessegVege), ResourceType = typeof(AlkalmazottResource))]
public DateTime? ErvenyessegVege { get; set; }
}
public class TanmenetModel : IKretaIdentity
{
public const string TanmenetExportAttributeId = nameof(TanmenetExportAttributeId);
public TanmenetModel()
{
}
public TanmenetModel(AlkalmazottTanmenetItemCo co)
{
ID = co.Id;
OsztalyCsoport = co.OsztalyCsoport;
Tantargy = co.Tantargy;
Oraszam = co.Oraszam;
Tema = co.Tema;
}
[Display(Name = nameof(AlkalmazottResource.Sorsz), ResourceType = typeof(AlkalmazottResource))]
public string ID { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 01, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 02, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 00, nameof(AlkalmazottResource.OraSzama), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OraSzama), ResourceType = typeof(AlkalmazottResource))]
public string Oraszam { get; set; }
[SimpleExportColumn(TanmenetExportAttributeId, 03, nameof(AlkalmazottResource.Tema), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tema), ResourceType = typeof(AlkalmazottResource))]
public string Tema { get; set; }
}
public class MegtartottTanoraModel : IKretaIdentity
{
public const string MegtartottTanoraExportAttributeId = nameof(MegtartottTanoraExportAttributeId);
public MegtartottTanoraModel()
{
}
public MegtartottTanoraModel(AlkalmazottMegtartottTanoraItemCo co)
{
ID = co.Id;
OsztalyCsoport = co.OsztalyCsoport;
Tantargy = co.Tantargy;
Tema = co.Tema;
Helyett_BNAME = co.Helyett_BNAME;
Datum = co.Datum;
Oraszam = co.Oraszam;
}
public string ID { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 00, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 01, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 02, nameof(AlkalmazottResource.Tema), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tema), ResourceType = typeof(AlkalmazottResource))]
public string Tema { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 03, nameof(AlkalmazottResource.Helyett), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyett), ResourceType = typeof(AlkalmazottResource))]
public string Helyett_BNAME { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 04, nameof(AlkalmazottResource.Datum), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
[SimpleExportColumn(MegtartottTanoraExportAttributeId, 05, nameof(AlkalmazottResource.Oraszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
public int Oraszam { get; set; }
}
public class ErtekelesModel : IKretaIdentity
{
public const string ErtekelesExportAttributeId = nameof(ErtekelesExportAttributeId);
public ErtekelesModel()
{
}
public ErtekelesModel(AlkalmazottErtekelesItemCo co)
{
ID = co.Id;
Tantargy = co.Tantargy;
Tanulo = co.Tanulo;
Datum = co.Datum;
Tema = co.Tema;
Osztalyzat_DNAME = co.Osztalyzat_DNAME;
ErtekelesSzoveg = co.ErtekelesSzoveg;
Tipus_DNAME = co.Tipus_DNAME;
OsztalyCsoport = co.OsztalyCsoport;
}
public string ID { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 00, nameof(AlkalmazottResource.Tantargy), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tantargy), ResourceType = typeof(AlkalmazottResource))]
public string Tantargy { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 01, nameof(AlkalmazottResource.Tanulo), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tanulo), ResourceType = typeof(AlkalmazottResource))]
public string Tanulo { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 02, nameof(AlkalmazottResource.Datum), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 03, nameof(AlkalmazottResource.Tema), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tema), ResourceType = typeof(AlkalmazottResource))]
public string Tema { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 04, nameof(AlkalmazottResource.Osztalyzat), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Osztalyzat), ResourceType = typeof(AlkalmazottResource))]
public string Osztalyzat_DNAME { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 05, nameof(AlkalmazottResource.SzovegesErtekeles), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzovegesErtekeles), ResourceType = typeof(AlkalmazottResource))]
public string ErtekelesSzoveg { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 06, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string Tipus_DNAME { get; set; }
[SimpleExportColumn(ErtekelesExportAttributeId, 07, nameof(AlkalmazottResource.OsztalyCsoport), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.OsztalyCsoport), ResourceType = typeof(AlkalmazottResource))]
public string OsztalyCsoport { get; set; }
}
public class PedagogusEletpalyamodellModel : IKretaIdentity
{
public const string PedagogusEletpalyamodellExportAttributeId = nameof(PedagogusEletpalyamodellExportAttributeId);
public PedagogusEletpalyamodellModel() { }
public PedagogusEletpalyamodellModel(AlkalmazottPedagogusEletpalyamodellItemCo itemCo)
{
ID = itemCo.Id.ToString();
Fokozat_DNAME = itemCo.Fokozat_DNAME;
Statusz_DNAME = itemCo.Statusz_DNAME;
Datum = itemCo.Datum;
}
public string ID { get; set; }
[SimpleExportColumn(PedagogusEletpalyamodellExportAttributeId, 00, nameof(AlkalmazottResource.Fokozat), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Fokozat), ResourceType = typeof(AlkalmazottResource))]
public string Fokozat_DNAME { get; set; }
[SimpleExportColumn(PedagogusEletpalyamodellExportAttributeId, 01, nameof(AlkalmazottResource.Statusz), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Statusz), ResourceType = typeof(AlkalmazottResource))]
public string Statusz_DNAME { get; set; }
[SimpleExportColumn(PedagogusEletpalyamodellExportAttributeId, 02, nameof(AlkalmazottResource.MinositesDatuma), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.MinositesDatuma), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
}
public class VegzettsegModel : IKretaIdentity
{
public const string VegzettsegExportAttributeId = nameof(VegzettsegExportAttributeId);
public VegzettsegModel() { }
public VegzettsegModel(VegzettsegItemCo itemCo)
{
ID = itemCo.Id.ToString();
Vegzettseg_DNAME = itemCo.Vegzettseg_DNAME;
Kepesites = itemCo.Kepesites;
Egyeb = itemCo.Egyeb;
}
public string ID { get; set; }
[SimpleExportColumn(VegzettsegExportAttributeId, 00, nameof(AlkalmazottResource.Vegzettseg), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
public string Vegzettseg_DNAME { get; set; }
[SimpleExportColumn(VegzettsegExportAttributeId, 01, nameof(AlkalmazottResource.SzakMegnevezese), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzakMegnevezese), ResourceType = typeof(AlkalmazottResource))]
public string Kepesites { get; set; }
[SimpleExportColumn(VegzettsegExportAttributeId, 02, nameof(AlkalmazottResource.Egyeb), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
public string Egyeb { get; set; }
}
public class KKVegzettsegDetailModel : IKretaIdentity
{
public string ID { get; set; }
public int EntityID { get; set; }
[Display(Name = nameof(AlkalmazottResource.Terulet), ResourceType = typeof(AlkalmazottResource))]
public string Terulet { get; set; }
}
public class KKVegzettsegMainModel : IKretaIdentity
{
public string ID { get; set; }
public int? EntityID { get; set; }
public int? KepesitesTipusId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Kepesites), ResourceType = typeof(AlkalmazottResource))]
public string Kepesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.KepesitesTipus), ResourceType = typeof(AlkalmazottResource))]
public string KepesitesTipus { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
public string Vegzettseg { get; set; }
[Display(Name = nameof(AlkalmazottResource.MuveszetiAg), ResourceType = typeof(AlkalmazottResource))]
public string MuveszetiAg { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
public string Egyeb { get; set; }
}
public class TovabbiMunkaugyiAdatokGridModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public string MunkaKor_DNAME { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusFokozat_DNAME { get; set; }
[KretaDisplayName(87)]
public double? KotelezoOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public string MunkaidoKedvezmenyOka_DNAME { get; set; }
}
public class EszkozModel : IKretaIdentity
{
public const string EszkozExportAttributeId = nameof(EszkozExportAttributeId);
public EszkozModel() { }
public EszkozModel(AlkalmazottEszkozItemCo itemCo)
{
ID = itemCo.Id.ToString();
Nev = itemCo.Nev;
Darab = itemCo.Darab;
Tipus_DNAME = itemCo.Tipus_DNAME;
}
public string ID { get; set; }
[SimpleExportColumn(EszkozExportAttributeId, 00, nameof(AlkalmazottResource.EszkozNeve), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.EszkozNeve), ResourceType = typeof(AlkalmazottResource))]
public string Nev { get; set; }
[SimpleExportColumn(EszkozExportAttributeId, 01, nameof(AlkalmazottResource.Darab), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Darab), ResourceType = typeof(AlkalmazottResource))]
public string Darab { get; set; }
[SimpleExportColumn(EszkozExportAttributeId, 02, nameof(AlkalmazottResource.Tipus), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Tipus), ResourceType = typeof(AlkalmazottResource))]
public string Tipus_DNAME { get; set; }
}
public class TovabbkepzesModel : IKretaIdentity
{
public const string TovabbkepzesExportAttributeId = nameof(TovabbkepzesExportAttributeId);
public TovabbkepzesModel() { }
public TovabbkepzesModel(TovabbkepzesCo itemCo)
{
ID = itemCo.ID.ToString();
TovabbkepzesMegnevezese = itemCo.TovabbkepzesMegnevezese;
TanusitvanySorszama = itemCo.TanusitvanySorszama;
Oraszam = itemCo.Oraszam;
Helyszin = itemCo.Helyszin;
EngedelySzama = itemCo.EngedelySzama;
Datum = itemCo.Datum;
}
public string ID { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 00, nameof(AlkalmazottResource.TovabbkepzesMegnevezese), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.TovabbkepzesMegnevezese), ResourceType = typeof(AlkalmazottResource))]
public string TovabbkepzesMegnevezese { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 05, nameof(AlkalmazottResource.TanusitvanySorszama), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.TanusitvanySorszama), ResourceType = typeof(AlkalmazottResource))]
public string TanusitvanySorszama { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 04, nameof(AlkalmazottResource.Oraszam), typeof(AlkalmazottResource))]
[Display(Name = nameof(CommonResource.Oraszam), ResourceType = typeof(CommonResource))]
public int? Oraszam { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 02, nameof(AlkalmazottResource.Helyszin), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Helyszin), ResourceType = typeof(AlkalmazottResource))]
public string Helyszin { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 01, nameof(AlkalmazottResource.EngedelySzama), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.EngedelySzama), ResourceType = typeof(AlkalmazottResource))]
public string EngedelySzama { get; set; }
[SimpleExportColumn(TovabbkepzesExportAttributeId, 03, nameof(AlkalmazottResource.Datum), typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
}
}
}

View file

@ -0,0 +1,160 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottModModel
{
public AlkalmazottModModel()
{
PedagogusStatuszaList = new List<SelectListItem>();
NemList = new List<SelectListItem>();
}
public int? AlkalmazottId { get; set; }
public string AlkalmazottArray { get; set; }
public bool IsKozpontilagSzinkronizalt { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusStatus), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusStatusza { get; set; }
public List<SelectListItem> PedagogusStatuszaList;
[Display(Name = nameof(AlkalmazottResource.PedagogusHetiOraszama), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusHetiOraszama { get; set; }
[Display(Name = nameof(CommonResource.Nem), ResourceType = typeof(CommonResource))]
public int? ModifyNem { get; set; }
[Display(Name = nameof(CommonResource.Tanev), ResourceType = typeof(CommonResource))]
public int? TanevID { get; set; }
public List<SelectListItem> NemList { get; set; }
[Display(Name = nameof(CommonResource.Nev), ResourceType = typeof(CommonResource))]
public string AlkalmazottNev { get; set; }
[Display(Name = nameof(AlkalmazottResource.KivalasztottAlkalmazottak), ResourceType = typeof(AlkalmazottResource))]
public string AlkalmazottNevArray { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoiOraszamOka { get; set; }
[Range(0, 1000, ErrorMessageResourceName = nameof(ErrorResource.OraszamNemLehetNegativ), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(CommonResource.Oraszama), ResourceType = typeof(CommonResource))]
public double? Oraszam { get; set; }
[Range(0, 1000, ErrorMessageResourceName = nameof(ErrorResource.KotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaKor { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasKezdetenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasVegenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.Foallasu), ResourceType = typeof(AlkalmazottResource))]
public int? Foallasu { get; set; }
[Display(Name = nameof(AlkalmazottResource.TartosanTavollevo), ResourceType = typeof(AlkalmazottResource))]
public int? TartosHelyettesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public int? Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
[Display(Name = nameof(AlkalmazottResource.MunkaidoAdatokModositasa), ResourceType = typeof(AlkalmazottResource))]
public bool NeedUpdateMunkaidoAdatai { get; set; }
[Display(Name = nameof(AlkalmazottResource.Szakvizsga), ResourceType = typeof(AlkalmazottResource))]
public int? Szakvizsga { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoiVagyVizsgaelnokiTevekenysegu), ResourceType = typeof(AlkalmazottResource))]
public int? SzakertoiVagyVizsgaelnokiTevekenysegu { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakmaiTovabbkepzes), ResourceType = typeof(AlkalmazottResource))]
public int? SzakmaiTovabbkepzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoMesterpedagogusKutatotanar), ResourceType = typeof(AlkalmazottResource))]
public int? SzakertoMesterpedagogusKutatotanar { get; set; }
/*[Display(Name = nameof(AlkalmazottResource.SzabadAllashely), ResourceType = typeof(AlkalmazottResource))]
public int? SzabadAllashely { get; set; }*/
[Display(Name = nameof(AlkalmazottResource.Attanito), ResourceType = typeof(AlkalmazottResource))]
public int? Attanito { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoMasIntezmeny), ResourceType = typeof(AlkalmazottResource))]
public int? AttanitoMasIntezmeny { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoSZCnbelul), ResourceType = typeof(AlkalmazottResource))]
public int? IsAttanitoSzCnBelul { get; set; }
[Display(Name = nameof(AlkalmazottResource.AllandoHelyettesitesre), ResourceType = typeof(AlkalmazottResource))]
public int? AllandoHelyettesitesre { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public int? IsKuldhetoPedMinositesSzRnek { get; set; }
[Display(Name = nameof(AlkalmazottResource.OktatoiFeladatokatIsEllat), ResourceType = typeof(AlkalmazottResource))]
public int? OktatoiFeladatokatIsEllat { get; set; }
public List<SelectListItem> IgenNemList { get; set; }
[Display(Name = nameof(AlkalmazottResource.Osztalyfonok), ResourceType = typeof(AlkalmazottResource))]
public int? IsOsztalyfonok { get; set; }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
[Display(Name = nameof(AlkalmazottResource.VezetoPedagogusVezetoOvodaPedagogus), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoPedagogusVezetoOvodaPedagogus { get; set; }
public bool IsKlebelsberg { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInternetetOktCelraHasznal), ResourceType = typeof(AlkalmazottResource))]
public int? IsInternetetOktCelraHasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInformatKepIsmRendelkezik), ResourceType = typeof(AlkalmazottResource))]
public int? IsInformatKepIsmRendelkezik { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsIktEszkozoketLgalabb40Hasznal), ResourceType = typeof(AlkalmazottResource))]
public int? IsIktEszkozoketLgalabb40Hasznal { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasEfopEszkoz), ResourceType = typeof(AlkalmazottResource))]
public int? HasEfopEszkoz { get; set; }
public bool IsFromSzervezet { get; set; }
// NOTE: Itt azért nem a nameof(SzervezetResource.Szervezet)-ből jön a szöveg, mert ez a property fixen mindig ezzel a label-el kell, hogy megjelenjen, függetlenül a nyelviesítéstől!
[Display(Name = nameof(DualisResource.DualisKepzohelyNeveEsAdoszama), ResourceType = typeof(DualisResource))]
public int? OktatoSzervezetId { get; set; }
}
}

View file

@ -0,0 +1,543 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Interfaces;
using Kreta.Core.CustomAttributes;
using Kreta.Resources;
using Kreta.Web.Models;
using Kreta.Web.Models.EditorTemplates;
using Kreta.Web.Security;
using static Kreta.Core.Constants;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottModel : TabStripModel
{
public int? AlkalmazottId { get; set; }
public bool IsKozpontilagSzinkronizalt { get; set; }
[ValidateObject]
public AlapAdatModel AlapAdatModel { get; set; }
[ValidateObject]
public CimElerhetosegModel CimElerhetosegModel { get; set; }
[ValidateObject]
public JogosultsagModel JogosultsagModel { get; set; }
[ValidateObject]
public MunkaugyAdatModel MunkaugyAdatModel { get; set; }
public int? FollowUpolniId { get; set; }
public bool IsFromSzervezet { get; set; }
}
public class AlapAdatModel
{
public AlapAdatModel()
{
NemList = new List<SelectListItem>();
}
[KretaRegularExpression(RegularExpressions.OktatasiAzonosito, ErrorMessageResourceName = nameof(ErrorResource.OktatasiAzonositoFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.OktatasiAzonosito), ResourceType = typeof(AlkalmazottResource))]
public string OktatasiAzonosito { get; set; }
[Display(Name = nameof(AlkalmazottResource.NemRendelkezikOktatasiAzonositoval), ResourceType = typeof(TanuloResource))]
public bool IsOktatasiAzonositoNelkul { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.NemeKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Neme), ResourceType = typeof(AlkalmazottResource))]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[StringLength(20, ErrorMessageResourceName = nameof(AlkalmazottResource.ANevElotagMaximumKarakterLehet), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Elotag), ResourceType = typeof(AlkalmazottResource))]
public string NevEloTag { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.CsaladiNevKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.CsaladiNevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AlkalmazottCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string MunkavallaloCsaladiNev { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.UtonevKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.UtonevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AlkalmazottUtonev), ResourceType = typeof(AlkalmazottResource))]
public string MunkavallaloUtonev { get; set; }
[StringLength(maximumLength: 20, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiElotagMaximumKarakterLehet), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiElotag), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiNevElotag { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiCsaladiNevMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiCsaladiNevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiCsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiCsaladiNev { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiUtonevMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiUtonevMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiUtonev), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiUtonev { get; set; }
[StringLength(maximumLength: 20, ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaElotagMaximumKarakterLehet), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AnyjaElotag), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaNeveElotag { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaCsaladiNevenekKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaCsaladiNeveMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AnyjaCsaladiNeve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaCsaladiNeve { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaUtonevenekKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(255, ErrorMessageResourceName = nameof(AlkalmazottResource.AnyjaUtoneveNeveMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AnyjaUtoneve), ResourceType = typeof(AlkalmazottResource))]
public string AnyjaUtoneve { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiHelyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[StringLength(50, ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiHelyMaxKarakter), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiHely), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiOrszag), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiOrszagMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? SzuletesiOrszag { get; set; }
[Required(ErrorMessageResourceName = nameof(ErrorResource.AllampolgarsagMegadasaKotelezoAlkalmazott), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag), ResourceType = typeof(AlkalmazottResource))]
public int? Allampolgarsag { get; set; }
[Display(Name = nameof(AlkalmazottResource.Allampolgarsag2), ResourceType = typeof(AlkalmazottResource))]
public int? Allampolgarsag2 { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzuletesiIdoKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.SzuletesiIdo), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.SzuletesiIdoDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? SzuletesiIdo { get; set; }
[Display(Name = nameof(AlkalmazottResource.IgazolvanyTipus), ResourceType = typeof(AlkalmazottResource))]
public int? IgazolvanyTipus { get; set; }
[StringLength(maximumLength: 50, ErrorMessageResourceName = nameof(ErrorResource.IgazolványszámMax50KarakterSzemelyesAdatok), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.IgazolvanySzama), ResourceType = typeof(AlkalmazottResource))]
public string IgazolvanySzam { get; set; }
[RegularExpression(RegularExpressions.AdoazonositoJel, ErrorMessageResourceName = nameof(AlkalmazottResource.AdoazonositoJelFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.AdoazonositoJel), ResourceType = typeof(AlkalmazottResource))]
public string AdoazonositoJel { get; set; }
[StringLength(500, ErrorMessageResourceName = nameof(ErrorResource.AMegjegyzesSzovegeNemLehet500KarakternelHosszabb), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.Megjegyzes), ResourceType = typeof(AlkalmazottResource))]
public string Megjegyzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsKuldhetoPedMinositesSzRnek), ResourceType = typeof(AlkalmazottResource))]
public bool IsKuldhetoPedMinositesSzRnek { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.AnyanyelveKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.Anyanyelve), ResourceType = typeof(AlkalmazottResource))]
public int? Anyanyelve { get; set; }
[StringLength(9, ErrorMessageResourceName = nameof(ErrorResource.TajSzamMax9Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(FelhasznalokResource.TAJszam), ResourceType = typeof(FelhasznalokResource))]
public string TajSzam { get; set; }
}
public class ElerhetosegCimModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TanuloResource.Orszag), ResourceType = typeof(TanuloResource))]
public string Orszag_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.Tipus), ResourceType = typeof(TanuloResource))]
public string CimTipus_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.Iranyitoszam), ResourceType = typeof(TanuloResource))]
public string Irsz { get; set; }
[Display(Name = nameof(TanuloResource.Helyseg), ResourceType = typeof(TanuloResource))]
public string Varos { get; set; }
[Display(Name = nameof(TanuloResource.Cim), ResourceType = typeof(TanuloResource))]
public string Cim { get; set; }
[Display(Name = nameof(TanuloResource.Kozterulet), ResourceType = typeof(TanuloResource))]
public string Kozterulet { get; set; }
[Display(Name = nameof(TanuloResource.KozteruletJellege), ResourceType = typeof(TanuloResource))]
public string KozteruletJellegeNev { get; set; }
[Display(Name = nameof(TanuloResource.Hazszam), ResourceType = typeof(TanuloResource))]
public string HazSzam { get; set; }
[Display(Name = nameof(TanuloResource.Emelet), ResourceType = typeof(TanuloResource))]
public string Emelet { get; set; }
[Display(Name = nameof(TanuloResource.Ajto), ResourceType = typeof(TanuloResource))]
public string Ajto { get; set; }
[Display(Name = nameof(TanuloResource.Alapertelmezett), ResourceType = typeof(TanuloResource))]
public bool Alapertelmezett_BOOL { get; set; }
public int CimTipus { get; set; }
}
public class ElerhetosegEmailModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TanuloResource.Tipus), ResourceType = typeof(TanuloResource))]
public string Tipus_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.EmailCim), ResourceType = typeof(TanuloResource))]
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
public string EmailCim { get; set; }
[Display(Name = nameof(TanuloResource.Alapertelmezett), ResourceType = typeof(TanuloResource))]
public bool Alapertelmezett_BOOL { get; set; }
public bool IsHibasanMegadva_BOOL { get; set; }
}
public class ElerhetosegTelModel : IKretaIdentity
{
public string ID { get; set; }
[Display(Name = nameof(TanuloResource.Tipus), ResourceType = typeof(TanuloResource))]
public string Tipus_DNAME { get; set; }
[Display(Name = nameof(TanuloResource.Telefonszam), ResourceType = typeof(TanuloResource))]
public string TelefonSzam { get; set; }
[Display(Name = nameof(TanuloResource.Alapertelmezett), ResourceType = typeof(TanuloResource))]
public bool Alapertelmezett_BOOL { get; set; }
}
public class JogosultsagModel
{
public JogosultsagModel()
{
JogosultsagiSzintList = new List<SelectListItem>();
}
[Display(Name = nameof(CommonResource.Felhasznalonev), ResourceType = typeof(CommonResource))]
[StringLength(maximumLength: 100, ErrorMessageResourceName = nameof(ErrorResource.FelhasznalonevMax100Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
public string BelepesiNev { get; set; }
[Display(Name = nameof(CommonResource.Jelszo), ResourceType = typeof(CommonResource))]
[DataType(DataType.Password)]
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
public string Jelszo { get; set; }
[KretaCompare("Jelszo", StringResourcesId = 4492)] /*Az ismételt jelszó nem egyezik meg a jelszóval!*/
[Display(Name = nameof(CommonResource.IsmeteltJelszo), ResourceType = typeof(CommonResource))]
[DataType(DataType.Password)]
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
public string IsmeteltJelszo { get; set; }
[Display(Name = nameof(AlkalmazottResource.DiakolimpiaiJogosultsag), ResourceType = typeof(AlkalmazottResource))]
public bool DiakolimpiaiJog { get; set; }
[Display(Name = nameof(AlkalmazottResource.KezelhetiAKozossegiSzolgalatokat), ResourceType = typeof(AlkalmazottResource))]
public bool KozossegiSzolgalatKezelo { get; set; }
[Display(Name = nameof(AlkalmazottResource.KezelhetiLEPModult), ResourceType = typeof(AlkalmazottResource))]
public bool LEPModulKezelo { get; set; }
public bool LEPModulKezeloSystemSetting { get; set; }
[Display(Name = nameof(AlkalmazottResource.JogosultsagiSzint), ResourceType = typeof(AlkalmazottResource))]
public string[] JogosultsagiSzint { get; set; }
public List<SelectListItem> JogosultsagiSzintList { get; set; }
[Display(Name = nameof(AlkalmazottResource.KezelhetiHRModult), ResourceType = typeof(AlkalmazottResource))]
public bool IsHrKezelo { get; set; }
public bool IsHrFeatureEnabled { get; set; }
}
public class MunkaugyAdatModel
{
public MunkaugyAdatModel()
{
PedagogusStatuszaList = new List<SelectListItem>();
}
[Display(Name = nameof(AlkalmazottResource.PedagogusStatusz), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusStatusza { get; set; }
public List<SelectListItem> PedagogusStatuszaList;
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
[Display(Name = nameof(AlkalmazottResource.PedagogusHetiOraszama), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusHetiOraszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoiOraszamOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? Oraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.PedagogusFokozatMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(AlkalmazottResource.MunkakorKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? MunkaKor { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasKezdetenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasVegenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.FeladatellatasiHelyKitolteseKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.Foallasu), ResourceType = typeof(AlkalmazottResource))]
public bool Foallasu { get; set; }
[Display(Name = nameof(AlkalmazottResource.BetoltetlenAllashely), ResourceType = typeof(AlkalmazottResource))]
public bool BetoltetlenAllashely { get; set; }
[Display(Name = nameof(AlkalmazottResource.KulsoAlkalmazott), ResourceType = typeof(AlkalmazottResource))]
public bool IsKulsoAlkalmazott { get; set; }
[Display(Name = nameof(AlkalmazottResource.TartosanTavollevo), ResourceType = typeof(AlkalmazottResource))]
public bool TartosHelyettesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public bool Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
[Display(Name = nameof(AlkalmazottResource.Szakvizsga), ResourceType = typeof(AlkalmazottResource))]
public bool Szakvizsga { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoiVagyVizsgaelnokiTevekenysegu), ResourceType = typeof(AlkalmazottResource))]
public bool SzakertoiVagyVizsgaelnokiTevekenysegu { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakmaiTovabbkepzes), ResourceType = typeof(AlkalmazottResource))]
public bool SzakmaiTovabbkepzes { get; set; }
[Display(Name = nameof(AlkalmazottResource.UtazoGyogypedagogus), ResourceType = typeof(AlkalmazottResource))]
public bool UtazoGyogypedagogus { get; set; }
[Display(Name = nameof(AlkalmazottResource.CsokkentettMunkaidos), ResourceType = typeof(AlkalmazottResource))]
public bool CsokkentettMunkaidos { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakertoMesterpedagogusKutatotanar), ResourceType = typeof(AlkalmazottResource))]
public bool SzakertoMesterpedagogusKutatotanar { get; set; }
public bool SzakertoMesterpedagogus { get; set; }
public bool IsSzakertoKutatotanar { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoPedagogusVezetoOvodaPedagogus), ResourceType = typeof(AlkalmazottResource))]
public bool VezetoPedagogusVezetoOvodaPedagogus { get; set; }
public bool IsKlebelsberg { get; set; }
[Display(Name = nameof(AlkalmazottResource.Attanito), ResourceType = typeof(AlkalmazottResource))]
public bool Attanito { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoMasIntezmeny), ResourceType = typeof(AlkalmazottResource))]
public bool AttanitoMasIntezmeny { get; set; }
[Display(Name = nameof(AlkalmazottResource.AttanitoSZCnbelul), ResourceType = typeof(AlkalmazottResource))]
public bool IsAttanitoSzCnBelul { get; set; }
[Display(Name = nameof(AlkalmazottResource.Osztalyfonok), ResourceType = typeof(AlkalmazottResource))]
public bool IsOsztalyfonok { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazottSZTSZKod), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod { get; set; }
[Display(Name = nameof(AlkalmazottResource.AllandoHelyettesitesre), ResourceType = typeof(AlkalmazottResource))]
public bool AllandoHelyettesitesre { get; set; }
[Display(Name = nameof(AlkalmazottResource.OktatoiFeladatokatIsEllat), ResourceType = typeof(AlkalmazottResource))]
public bool OktatoiFeladatokatIsEllat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyebtevekenysegek), ResourceType = typeof(AlkalmazottResource))]
public int? EgyebTevekenysegekTipusId { get; set; }
public bool IsDualisKepzohelyiOktato { get; set; }
[KretaRequiredIf("IsDualisKepzohelyiOktato", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNevenekMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[StringLength(255, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNeveMax255Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[KretaRequiredIf("IsDualisKepzohelyiOktato", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyAdoszamanakMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[AdoszamExtended(ErrorMessageResourceName = nameof(ErrorResource.AdoszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakiranyuOktatasertFelelos), ResourceType = typeof(AlkalmazottResource))]
public bool IsSzakiranyuOktatasertFelelos { get; set; }
[Display(Name = nameof(AlkalmazottResource.IsInternetetOktCelraHasznal), ResourceType = typeof(AlkalmazottResource))]
public bool IsInternetetOktCelraHasznal { get; set; } = true;
[Display(Name = nameof(AlkalmazottResource.IsInformatKepIsmRendelkezik), ResourceType = typeof(AlkalmazottResource))]
public bool IsInformatKepIsmRendelkezik { get; set; } = true;
[Display(Name = nameof(AlkalmazottResource.IsIktEszkozoketLgalabb40Hasznal), ResourceType = typeof(AlkalmazottResource))]
public bool IsIktEszkozoketLgalabb40Hasznal { get; set; } = true;
[Display(Name = nameof(AlkalmazottResource.HasEfopEszkoz), ResourceType = typeof(AlkalmazottResource))]
public bool HasEfopEszkoz { get; set; }
public int? FeladatellatasiHelyKovTanev { get; set; }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentor), ResourceType = typeof(AlkalmazottResource))]
public bool IsApaczaiMentor { get; set; }
[Display(Name = nameof(AlkalmazottResource.ApaczaiMentorprogramhozKapcsolodoSZTSZ), ResourceType = typeof(AlkalmazottResource))]
public string SZTSZKod2 { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasBankszamlaInfo), ResourceType = typeof(AlkalmazottResource))]
public bool HasBankszamlaInfo { get; set; }
[Display(Name = nameof(AlkalmazottResource.HasNyugdijInfo), ResourceType = typeof(AlkalmazottResource))]
public bool HasNyugdijInfo { get; set; }
public bool IsApaczaiMentorVisible { get; set; }
public bool IsDualisKepzohelyFromSzervezet { get; set; }
public bool IsDualisKepzesEnabled { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
// NOTE: Itt azért nem a nameof(SzervezetResource.Szervezet)-ből jön a szöveg, mert ez a property fixen mindig ezzel a label-el kell, hogy megjelenjen, függetlenül a nyelviesítéstől!
[Display(Name = nameof(DualisResource.DualisKepzohelyNeveEsAdoszama), ResourceType = typeof(DualisResource))]
public int? OktatoSzervezetId { get; set; }
public bool IsAlkalmazottMentorAdatokKitoltve { get; set; }
}
public class PedagogusEletpalyamodellModel
{
public int? PedagogusEletpalyamodellId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Fokozat), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.MinositesiFokozatKivalasztasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? Fokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Statusz), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.StatuszKivalasztasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? Statusz { get; set; }
[Display(Name = nameof(AlkalmazottResource.MinositesDatuma), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(ErrorResource.DatumMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.MinositesDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? Datum { get; set; }
}
public class VegzettsegModel
{
public int? VegzettsegModelId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.VegzettsegMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? Vegzettseg { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakMegnevezese), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.SzakMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public List<int> Kepesites { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
[StringLength(maximumLength: 255, ErrorMessageResourceName = nameof(ErrorResource.Maximum255KarakterHosszusaguLehet), ErrorMessageResourceType = typeof(ErrorResource))]
public string Egyeb { get; set; }
}
public class TovabbkepzesModel
{
public int? ID { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.TovabbkepzesMegnevezese), ResourceType = typeof(AlkalmazottResource))]
public string TovabbkepzesMegnevezese { get; set; }
[Display(Name = nameof(AlkalmazottResource.TanusitvanySorszama), ResourceType = typeof(AlkalmazottResource))]
public string TanusitvanySorszama { get; set; }
[Display(Name = nameof(CommonResource.Oraszam), ResourceType = typeof(CommonResource))]
[KretaRange(0, int.MaxValue)]
public int? Oraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.Helyszin), ResourceType = typeof(AlkalmazottResource))]
public string Helyszin { get; set; }
[Display(Name = nameof(AlkalmazottResource.EngedelySzama), ResourceType = typeof(AlkalmazottResource))]
public string EngedelySzama { get; set; }
[Display(Name = nameof(AlkalmazottResource.Datum), ResourceType = typeof(AlkalmazottResource))]
public DateTime? Datum { get; set; }
public TovabbkepzesModel()
{
}
public TovabbkepzesModel(int alkalmazottId)
{
AlkalmazottId = alkalmazottId;
}
public TovabbkepzesModel(TovabbkepzesCo tovabbkepzesCo)
{
ID = tovabbkepzesCo.ID;
AlkalmazottId = tovabbkepzesCo.AlkalmazottId;
TovabbkepzesMegnevezese = tovabbkepzesCo.TovabbkepzesMegnevezese;
TanusitvanySorszama = tovabbkepzesCo.TanusitvanySorszama;
Oraszam = tovabbkepzesCo.Oraszam;
Helyszin = tovabbkepzesCo.Helyszin;
EngedelySzama = tovabbkepzesCo.EngedelySzama;
Datum = tovabbkepzesCo.Datum;
}
public TovabbkepzesCo ConvertModelToCo()
{
return new TovabbkepzesCo
{
ID = ID,
AlkalmazottId = AlkalmazottId,
TovabbkepzesMegnevezese = TovabbkepzesMegnevezese,
TanusitvanySorszama = TanusitvanySorszama,
Oraszam = Oraszam,
Helyszin = Helyszin,
EngedelySzama = EngedelySzama,
Datum = Datum
};
}
}
}

View file

@ -0,0 +1,176 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.BusinessLogic.Helpers;
using Kreta.Enums.ManualEnums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Helpers;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class AlkalmazottSearchModel
{
public bool MunkaugyiAdatokKlebelsbergOrNSZFH { get; set; }
[KretaDisplayName(108)] /*Név*/
public string Nev { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzuletesiHely), ResourceType = typeof(AlkalmazottResource))]
public string SzuletesiHely { get; set; }
[KretaDisplayName(134)] /*Nem*/
public int? Nem { get; set; }
[KretaDisplayName(42)] /*Születési idő*/
public DateTime? SzuletesiDatumTol { get; set; }
[KretaDisplayName(42)] /*Születési idő*/
public DateTime? SzuletesiDatumIg { get; set; }
[Display(Name = nameof(AlkalmazottResource.TanitottOsztaly), ResourceType = typeof(AlkalmazottResource))]
public int? TanitottOsztalyId { get; set; }
[KretaDisplayName(32)] /*Oktatási azonosító*/
public string OktatasiAzonosito { get; set; }
[KretaDisplayName(90)] /*Feladatellátási hely*/
public int? FeladatEllatasiHelyId { get; set; }
[KretaDisplayName(3085)] /*Főállású*/
public string Foallas { get; set; }
[KretaDisplayName(4830)] /*Nyugdíjas (továbbfoglalkoztatott)*/
public string SearchNyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? SearchPedagogusFokozat { get; set; }
public bool? NANem { get; set; }
public bool? NincsOktAzon { get; set; }
public bool? NABesorolasiFokozat { get; set; }
public bool? NincsMunkakor { get; set; }
public bool? NincsFoglalkoztatsModja { get; set; }
public bool? NincsEmail { get; set; }
public bool? NemCsillagosMunkakor { get; set; }
public bool? AktivAlkalmazottak { get; set; }
public bool? NincsBelepesAlkalmazott { get; set; }
public bool? NemBelepettAlkalmazottKetHet { get; set; }
public bool? NincsAlkalmazottSZTSZ { get; set; }
public bool? IsTanarAlkalmazottMunkaKor { get; set; }
public List<int> NszfhTovabbiMunkakorTipusIdList => Kreta.Core.Constants.NszfhTovabbiMunkakorTipusIdList;
public bool IsNszfhUjSzkt => ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny;
public bool IsFromSzervezet { get; set; }
public int? SzervezetId { get; set; }
[Display(Name = nameof(TeremResource.SzervezetNeve), ResourceType = typeof(TeremResource))]
public string SzervezetNev { get; set; }
[Display(Name = nameof(TeremResource.SzervezetAzonosito), ResourceType = typeof(TeremResource))]
public string SzervezetAzonosito { get; set; }
public string ControllerName { get; set; } = Constants.Controllers.Alkalmazott;
public string ApiControllerName { get; set; } = Constants.ApiControllers.AlkalmazottApi;
public bool IsDualisKepzesEnabled => new IntezmenyConfigHelper(ConnectionTypeExtensions.GetSystemConnectionType()).GetIntezmenyConfig<bool>(IntezmenyConfigModulEnum.DualisKepzes, IntezmenyConfigTipusEnum.IsEnabled);
public bool IsActiveTanev21_22 => new TanevHelper(ConnectionTypeExtensions.GetActiveSessionConnectionType()).GetTanevInfo().Sorszam == 42 && ClaimData.IsActivTanev;
public static AlkalmazottSearchModel SetFilterAlkalmazottSearchModel(string filter)
{
var result = new AlkalmazottSearchModel();
switch (filter)
{
case "nemcsillagosmunkakor":
result.NemCsillagosMunkakor = true;
break;
case "nincsnem":
result.NANem = true;
break;
case "nincsbesorolas":
result.NABesorolasiFokozat = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsmunkakor":
result.NincsMunkakor = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsmunkaviszony":
result.NincsFoglalkoztatsModja = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsEmail":
result.NincsEmail = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "AktivAlkalmazottak":
result.AktivAlkalmazottak = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsbelepesalkalmazott":
result.NincsBelepesAlkalmazott = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nembelepettalkalmazottkethet":
result.NemBelepettAlkalmazottKetHet = true;
result.IsTanarAlkalmazottMunkaKor = true;
break;
case "nincsSztsz":
result.NincsAlkalmazottSZTSZ = true;
break;
}
return result;
}
public AlkalmazottSearchCo ConvertModelToCo()
{
return new AlkalmazottSearchCo
{
Nev = Nev,
SzuletesiHely = SzuletesiHely,
Nem = Nem,
SzuletesiDatumTol = SzuletesiDatumTol,
SzuletesiDatumIg = SzuletesiDatumIg,
TanitottOsztalyId = TanitottOsztalyId,
OktatasiAzonosito = OktatasiAzonosito,
FeladatEllatasiHelyId = FeladatEllatasiHelyId,
Foallas = Foallas,
SearchNyugdijas = SearchNyugdijas,
NANem = NANem,
NABesorolasiFokozat = NABesorolasiFokozat,
NincsMunkakor = NincsMunkakor,
NincsFoglalkoztatasModja = NincsFoglalkoztatsModja,
SearchPedagogusFokozat = SearchPedagogusFokozat,
NemCsillagosMunkakor = NemCsillagosMunkakor,
NincsEmail = NincsEmail,
AktivAlkalmazottak = AktivAlkalmazottak,
NincsBelepesAlkalmazott = NincsBelepesAlkalmazott,
NemBelepettAlkalmazottKetHet = NemBelepettAlkalmazottKetHet,
NincsOktAzon = NincsOktAzon,
MunkaugyiAdatokKlebelsbergOrNSZFH = MunkaugyiAdatokKlebelsbergOrNSZFH,
NincsAlkalmazottSZTSZ = NincsAlkalmazottSZTSZ,
IsTanarAlkalmazottMunkaKor = IsTanarAlkalmazottMunkaKor,
SzervezetNev = SzervezetNev,
SzervezetAzonosito = SzervezetAzonosito,
SzervezetId = SzervezetId,
IsFromSzervezet = IsFromSzervezet
};
}
}
}

View file

@ -0,0 +1,18 @@
using System.Collections.Generic;
using System.Xml.Serialization;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
[XmlRoot(ElementName = "Alkalmazottak")]
public class AlkalmazottXml
{
public AlkalmazottXml()
{
Ids = new List<int>();
}
[XmlArray(ElementName = "IdLista")]
[XmlArrayItem("Id", Type = typeof(int))]
public List<int> Ids { get; set; }
}
}

View file

@ -0,0 +1,105 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class BetoltetlenAllashelyModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public BetoltetlenAllashelyModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
//[KretaRequired(StringResourcesId = 4620/*Munkaviszony típusának kitöltése kötelező*/)]
//[KretaDisplayName(4619)]
//public int? Munkaviszony { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
/*[Display(Name = nameof(AlkalmazottResource.SzabadAllashely), ResourceType = typeof(AlkalmazottResource))]
public bool SzabadAllashely { get; set; }*/
}
}

View file

@ -0,0 +1,59 @@
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Core.CustomAttributes;
using Kreta.Resources;
using Kreta.Web.Attributes;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class DualisKepzohelyiOktatoModel
{
public DualisKepzohelyiOktatoModel()
{
}
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[Display(Name = nameof(AlkalmazottResource.CsaladiNev), ResourceType = typeof(AlkalmazottResource))]
public string CsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[Display(Name = nameof(AlkalmazottResource.Utonev), ResourceType = typeof(AlkalmazottResource))]
public string Utonev { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.FeladatellatasiHelyKitolteseKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNevenekMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[KretaStringLength(255, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyNeveMax255Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyNeve), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyNeve { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", false, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyAdoszamanakMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
[AdoszamExtended(ErrorMessageResourceName = nameof(ErrorResource.AdoszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[Display(Name = nameof(AlkalmazottResource.DualisKepzohelyAdoszama), ResourceType = typeof(AlkalmazottResource))]
public string DualisKepzohelyAdoszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzakiranyuOktatasertFelelos), ResourceType = typeof(AlkalmazottResource))]
public bool IsSzakiranyuOktatasertFelelos { get; set; }
public bool IsDualisKepzohelyFromSzervezet { get; set; }
[KretaRequiredIf("IsDualisKepzohelyFromSzervezet", true, ErrorMessageResourceName = nameof(ErrorResource.DualisKepzohelyMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
// NOTE: Itt azért nem a nameof(SzervezetResource.Szervezet)-ből jön a szöveg, mert ez a property fixen mindig ezzel a label-el kell, hogy megjelenjen, függetlenül a nyelviesítéstől!
[Display(Name = nameof(DualisResource.DualisKepzohelyNeveEsAdoszama), ResourceType = typeof(DualisResource))]
public int? OktatoSzervezetId { get; set; }
public JogosultsagModel JogosultsagModel { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.Resources;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class FeladatellatasiHelyPopupModel
{
[Display(Name = nameof(AlkalmazottResource.KovTanevbenLetezoAktivTanevesFelHelyek), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(ErrorResource.Required), ErrorMessageResourceType = typeof(ErrorResource))]
public int? FeladatellatasiHelyIdPopup { get; set; }
public List<SelectListItem> FeladatellatasiHelyList { get; set; }
}
}

View file

@ -0,0 +1,102 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class HitoktatoModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public HitoktatoModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
//[KretaRequired(StringResourcesId = 4620/*Munkaviszony típusának kitöltése kötelező*/)]
//[KretaDisplayName(4619)]
//public int? Munkaviszony { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
}
}

View file

@ -0,0 +1,78 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Attributes;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class InfoTovabbiMunkaugyiAdatokPopUpModel
{
public int? TovabbiMunkaugyAdatModelId { get; set; }
public int AlkalmazottId { get; set; }
[KretaDisplayName(4762)] /*Pedagógus heti óraszáma*/
public string PedagogusHetiOraszama { get; set; }
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaDisplayName(91)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusFokozat_BNAME { get { return PedagogusFokozat.GetDisplayName<BesorolasiFokozatTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[KretaDisplayName(88)]
public string Munkakor_BNAME { get { return MunkaKor.GetDisplayName<MunkakorTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasiJogviszony_BNAME { get { return FoglalkoztatasiJogviszony.GetDisplayName<MunkaviszonyTipusEnum>(ClaimData.SelectedTanevID.Value); } }
[KretaDisplayName(89)]
public DateTime? AlkalmazasKezdete { get; set; }
[KretaDisplayName(89)]
public string AlkalmazasKezdete_SDATE { get { return AlkalmazasKezdete.ToShortDateString(); } }
[KretaDisplayName(5466)]
public DateTime? AlkalmazasVege { get; set; }
[KretaDisplayName(5466)]
public string AlkalmazasVege_SDATE { get { return AlkalmazasVege.ToShortDateString(); } }
[KretaDisplayName(90)]
public string FeladatellatasiHely_BNAME { get; set; }
[KretaDisplayName(4830)] /*Nyugdíjas (továbbfoglalkoztatott)*/
public bool Nyugdijas { get; set; }
[KretaDisplayName(4830)] /*Nyugdíjas (továbbfoglalkoztatott)*/
public string Nyugdijas_BNAME { get { return Nyugdijas.GetDisplayName(); } }
[KretaDisplayName(4618)] //Feladattal terhelt óraszám oka
public int? MunkaidoKedvezmenyOka { get; set; }
[KretaDisplayName(4618)] //Feladattal terhelt óraszám oka
public string MunkaidoKedvezmenyOka_BNAME { get { return MunkaidoKedvezmenyOka.GetDisplayName<MunkaidoKedvezmenyOkaEnum>(ClaimData.SelectedTanevID.Value); } }
public int? FoglalkoztatasTipusa { get; set; }
[Display(
Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa),
ResourceType = typeof(AlkalmazottResource))]
public string FoglalkoztatasTipusa_BNAME { get { return FoglalkoztatasTipusa.GetDisplayName<FoglalkoztatasTipusaEnum>(ClaimData.SelectedTanevID.Value); } }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
}
}

View file

@ -0,0 +1,98 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class KulsoGyakorlatiAllashelyModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public KulsoGyakorlatiAllashelyModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
}
}

View file

@ -0,0 +1,132 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Foolproof;
using Kreta.BusinessLogic.Classes;
using Kreta.Core.CustomAttributes;
using Kreta.Enums;
using Kreta.Resources;
using Kreta.Web.Areas.Alkalmazott.ModelInterface;
using Kreta.Web.Attributes;
using Kreta.Web.Models.EditorTemplates;
using static Kreta.Core.Constants;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class KulsosAlkalmazottModel : TabStripModel, IAlterAlkalmazottValidationModel
{
public KulsosAlkalmazottModel()
{
}
[KretaDisplayName(63)]
public string Iranyitoszam { get; set; }
[KretaDisplayName(260)]
public string Varos { get; set; }
[KretaDisplayName(261)]
public string Cim { get; set; }
[KretaRequired(StringResourcesId = 136)]
[KretaDisplayName(36)]
public int Nem { get; set; }
public List<SelectListItem> NemList { get; set; }
[KretaStringLength(200, StringResourcesId = 4600 /*A név előtag maximum 100 karater lehet!*/)]
[KretaDisplayName(1576)]
public string NevEloTag { get; set; }
[KretaRequired(StringResourcesId = 137)]
[KretaStringLength(200, StringResourcesId = 148 /*Családi név max. 200 karakter!*/)]
[KretaDisplayName(52)]
public string MunkavallaloCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 138)]
[KretaStringLength(200, StringResourcesId = 149/*Utónév max. 200 karakter!*/)]
[KretaDisplayName(58)]
public string MunkavallaloUtonev { get; set; }
[KretaRequired(StringResourcesId = 2622)]
[KretaStringLength(200, StringResourcesId = 3364 /*Születési családi név max. 200 karakter!*/)]
[KretaDisplayName(53)]
public string SzuletesiCsaladiNev { get; set; }
[KretaRequired(StringResourcesId = 2621)]
[KretaStringLength(200, StringResourcesId = 3367 /*Születési uótnév max. 200 karakter!*/)]
[KretaDisplayName(59)]
public string SzuletesiUtonev { get; set; }
[KretaRequired(StringResourcesId = 139)]
[KretaStringLength(200, StringResourcesId = 150/*Anyja családi neve max. 200 karakter!*/ )]
[KretaDisplayName(39)]
public string AnyjaCsaladiNeve { get; set; }
[KretaRequired(StringResourcesId = 140)]
[KretaStringLength(200, StringResourcesId = 151/*Anyja utóneve neve max. 200 karakter! */)]
[KretaDisplayName(40)]
public string AnyjaUtoneve { get; set; }
[KretaRequired(StringResourcesId = 2654)]
[KretaDisplayName(87)]
[KretaRange(0, 1000, StringResourcesId = 4298)] //A kötelező óraszám nem lehet negatív!
public double? KotelezoOraszam { get; set; }
[KretaRequired(StringResourcesId = 142)]
[KretaDisplayName(42)]
public DateTime? SzuletesiIdo { get; set; }
[KretaRequired(StringResourcesId = 141)]
[KretaStringLength(200, StringResourcesId = 152/*Születési hely max. 200 karakter!*/)]
[KretaDisplayName(41)]
public string SzuletesiHely { get; set; }
[KretaRequired(StringResourcesId = 1680)]
[KretaDisplayName(90)]
public int? FeladatellatasiHely { get; set; }
[KretaRequired(StringResourcesId = 3370/*Munkakör kitöltése kötelező!*/)]
[KretaDisplayName(88)]
public int? MunkaKor { get; set; }
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasiJogviszony { get; set; }
[KretaDisplayName(4614)]
public bool BetoltetlenAllashely { get; set; }
[Display(Name = nameof(CommonResource.Felhasznalonev), ResourceType = typeof(CommonResource))]
[StringLength(maximumLength: 100, ErrorMessageResourceName = nameof(ErrorResource.FelhasznalonevMax100Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.FelhasznalonevMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string BelepesiNev { get; set; }
[Display(Name = nameof(CommonResource.Jelszo), ResourceType = typeof(CommonResource))]
[DataType(DataType.Password)]
[StringLength(General.JelszoMaximumKarakterekSzama, MinimumLength = General.JelszoMinimumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.AJelszonakMin0Max0KarakterbolKellAllnia), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.JelszoMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string Jelszo { get; set; }
[Display(Name = nameof(CommonResource.Email), ResourceType = typeof(CommonResource))]
[StringLength(General.EmailMaximumKarakterekSzama, ErrorMessageResourceName = nameof(ErrorResource.EmailMax0Karakter), ErrorMessageResourceType = typeof(ErrorResource))]
[EmailAddressExtended(ErrorMessageResourceName = nameof(ErrorResource.EMailCimFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.EmailCimMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string EmailCim { get; set; }
[Display(Name = nameof(CommonResource.EmailTipus), ResourceType = typeof(CommonResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.EmailTipusMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? EmailTipus { get; set; }
[Display(Name = nameof(CommonResource.Telefonszam), ResourceType = typeof(CommonResource))]
[PhoneExtended(ErrorMessageResourceName = nameof(ErrorResource.ATelefonszamFormatumaNemMegfelelo), ErrorMessageResourceType = typeof(ErrorResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.TelefonszamMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public string Telefon { get; set; }
[Display(Name = nameof(CommonResource.TelefonTipus), ResourceType = typeof(CommonResource))]
[RequiredIf(nameof(MunkaKor), (int)MunkakorTipusEnum.iskolaor, ErrorMessageResourceName = nameof(ErrorResource.TelefonTipusMegadasaKotelezo), ErrorMessageResourceType = typeof(ErrorResource))]
public int? TelefonTipus { get; set; }
}
}

View file

@ -0,0 +1,64 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.BusinessLogic.Classes;
using Kreta.Resources;
using Kreta.Web.Security;
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class TovabbiMunkaugyiAdatokModel
{
public int? TovabbiMunkaugyAdatModelId { get; set; }
public int AlkalmazottId { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusHetiOraszama), ResourceType = typeof(AlkalmazottResource))]
public string PedagogusHetiOraszama { get; set; }
[Display(Name = nameof(AlkalmazottResource.VezetoiOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? VezetoiOraszamOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.Oraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? Oraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszam), ResourceType = typeof(AlkalmazottResource))]
[Range(0, 1000, ErrorMessageResourceName = nameof(AlkalmazottResource.AKotelezoOraszamNemLehetNegativ), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public double? MunkaidoKedvezmenyOraszam { get; set; }
[Display(Name = nameof(AlkalmazottResource.PedagogusFokozat), ResourceType = typeof(AlkalmazottResource))]
public int? PedagogusFokozat { get; set; }
[Display(Name = nameof(AlkalmazottResource.Munkakor), ResourceType = typeof(AlkalmazottResource))]
[KretaRequired(typeof(AlkalmazottResource), nameof(AlkalmazottResource.MunkakorKitolteseKotelezo))]
public int? MunkaKor { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasiJogviszony), ResourceType = typeof(AlkalmazottResource))]
[KretaRequired(typeof(AlkalmazottResource), nameof(AlkalmazottResource.FoglalkoztatasiJogviszonyKitolteseKotelezo))]
public int? FoglalkoztatasiJogviszony { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasKezdete), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasKezdetenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasKezdete { get; set; }
[Display(Name = nameof(AlkalmazottResource.AlkalmazasVege), ResourceType = typeof(AlkalmazottResource))]
[DateRange(ErrorMessageResourceName = nameof(ErrorResource.AlkalmazasVegenekDatumaNemErvenyes), ErrorMessageResourceType = typeof(ErrorResource))]
public DateTime? AlkalmazasVege { get; set; }
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
[KretaRequired(typeof(ErrorResource), nameof(ErrorResource.FeladatellatasiHelyKitolteseKotelezo))]
public int? FeladatellatasiHely { get; set; }
[Display(Name = nameof(AlkalmazottResource.NyugdijasTovabbfoglalkoztatott), ResourceType = typeof(AlkalmazottResource))]
public bool Nyugdijas { get; set; }
[Display(Name = nameof(AlkalmazottResource.FeladattalTerheltOraszamOka), ResourceType = typeof(AlkalmazottResource))]
public int? MunkaidoKedvezmenyOka { get; set; }
[Display(Name = nameof(AlkalmazottResource.FoglalkoztatasTipusa), ResourceType = typeof(AlkalmazottResource))]
public int? FoglalkoztatasTipusa { get; set; }
[Display(Name = nameof(AlkalmazottResource.ReszmunkaidoSzazalek), ResourceType = typeof(AlkalmazottResource))]
public double? ReszmunkaidosSzazalek { get; set; }
public bool IsNszfhUjSzkt { get { return ClaimData.IsSelectedTanev20_21OrLater && ClaimData.IsSzakkepzoIntezmeny; } }
}
}

View file

@ -0,0 +1,9 @@
namespace Kreta.Web.Areas.Alkalmazott.Models
{
public class VegzettsegDetailModel
{
public int AlkalmazottId { get; set; }
public int? EntityId { get; set; }
public int? KepesitesTipus { get; set; }
}
}

View file

@ -0,0 +1,227 @@
namespace Kreta.Web.Areas.Alkalmazott.Models
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Kreta.BusinessLogic.HelperClasses;
using Kreta.Enums;
using Kreta.Resources;
public class VegzettsegWizardBaseModel
{
public int AlkalmazottId { get; set; }
public KKKepesitesTipusEnum KepesitesTipusId { get; set; }
public KKVegzettsegBaseCo ToCo()
{
var co = new KKVegzettsegBaseCo();
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
return co;
}
}
public abstract class VegzettsegWizardPedagogusBaseModel : VegzettsegWizardBaseModel
{
public KKKepesitesJellTipusEnum VegzettsegTipusId { get; private set; }
public VegzettsegWizardPedagogusBaseModel(KKKepesitesJellTipusEnum vegzettsegTipusId)
{
KepesitesTipusId = KKKepesitesTipusEnum.Pedagogus;
VegzettsegTipusId = vegzettsegTipusId;
}
}
public class TanarVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel
{
public TanarVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.Tanar)
{
}
public int? EntityId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.VegzettsegMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? TanariVegzettsegTipusId { get; set; }
[Display(Name = nameof(AlkalmazottResource.TantargyKategoria), ResourceType = typeof(AlkalmazottResource))]
public List<int> TantargyKategoriaIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.Egyeb), ResourceType = typeof(AlkalmazottResource))]
[StringLength(maximumLength: 255, ErrorMessageResourceName = nameof(ErrorResource.Maximum255KarakterHosszusaguLehet), ErrorMessageResourceType = typeof(ErrorResource))]
public string Egyeb { get; set; }
public new KKTanarVegzettsegCO ToCo()
{
var co = new KKTanarVegzettsegCO();
co.EntityId = EntityId;
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.TanariVegzettsegTipusId = TanariVegzettsegTipusId;
co.Egyeb = Egyeb;
co.TantargyKategoriaIds = TantargyKategoriaIds;
return co;
}
public void FromCo(KKTanarVegzettsegCO co)
{
EntityId = co.EntityId;
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
TanariVegzettsegTipusId = co.TanariVegzettsegTipusId;
Egyeb = co.Egyeb;
TantargyKategoriaIds = co.TantargyKategoriaIds;
}
}
public class AMITanarVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel, IValidatableObject
{
public AMITanarVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.TanarAMI)
{
}
public int? EntityId { get; set; }
[Display(Name = nameof(AlkalmazottResource.Vegzettseg), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.VegzettsegMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public int? AMITanariVegzettsegTipusId { get; set; }
[Display(Name = nameof(AlkalmazottResource.ZenemuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool ZenemuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.TancmuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool TancmuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.KepzoEsIparMuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool KepzoEsIparMuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.SzinEsBabMuveszetiTerulet), ResourceType = typeof(AlkalmazottResource))]
public bool SzinEsBabMuveszetiTerulet { get; set; }
[Display(Name = nameof(AlkalmazottResource.KlasszikusZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> KlasszikusZeneIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.NepZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> NepZeneIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.JazzZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> JazzZeneIds { get; set; }
[Display(Name = nameof(AlkalmazottResource.ElektroAkusztikusZene), ResourceType = typeof(AlkalmazottResource))]
public List<int> ElektroAkusztikusZeneIds { get; set; }
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
if (!(ZenemuveszetiTerulet || TancmuveszetiTerulet || KepzoEsIparMuveszetiTerulet || SzinEsBabMuveszetiTerulet))
{
yield return new ValidationResult(string.Format(AlkalmazottResource.NincsMuveszetiAgMegadva));
}
if (ZenemuveszetiTerulet)
{
if (!(KlasszikusZeneIds.Any() || NepZeneIds.Any() || JazzZeneIds.Any() || ElektroAkusztikusZeneIds.Any()))
{
yield return new ValidationResult(string.Format(AlkalmazottResource.NincsZeneTipusMegadva));
}
}
}
public new KKAMITanarVegzettsegCo ToCo()
{
var co = new KKAMITanarVegzettsegCo();
co.EntityId = EntityId;
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.AMITanariVegzettsegTipusId = AMITanariVegzettsegTipusId;
co.ZenemuveszetiTerulet = ZenemuveszetiTerulet;
co.TancmuveszetiTerulet = TancmuveszetiTerulet;
co.KepzoEsIparMuveszetiTerulet = KepzoEsIparMuveszetiTerulet;
co.SzinEsBabMuveszetiTerulet = SzinEsBabMuveszetiTerulet;
co.KlasszikusZeneIds = KlasszikusZeneIds;
co.NepZeneIds = NepZeneIds;
co.JazzZeneIds = JazzZeneIds;
co.ElektroAkusztikusZeneIds = ElektroAkusztikusZeneIds;
return co;
}
public void FromCo(KKAMITanarVegzettsegCo co)
{
EntityId = co.EntityId;
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
AMITanariVegzettsegTipusId = co.AMITanariVegzettsegTipusId;
ZenemuveszetiTerulet = co.ZenemuveszetiTerulet;
TancmuveszetiTerulet = co.TancmuveszetiTerulet;
KepzoEsIparMuveszetiTerulet = co.KepzoEsIparMuveszetiTerulet;
SzinEsBabMuveszetiTerulet = co.SzinEsBabMuveszetiTerulet;
KlasszikusZeneIds = co.KlasszikusZeneIds;
NepZeneIds = co.NepZeneIds;
JazzZeneIds = co.JazzZeneIds;
ElektroAkusztikusZeneIds = co.ElektroAkusztikusZeneIds;
}
}
public class TanitoVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel
{
public TanitoVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.Tanito)
{
}
[Display(Name = nameof(AlkalmazottResource.Terulet), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.TeruletMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public List<int> MuveltsegiTeruletIds { get; set; }
public new KKTanitoVegzettsegCo ToCo()
{
var co = new KKTanitoVegzettsegCo();
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.MuveltsegiTeruletIds = MuveltsegiTeruletIds;
return co;
}
public void FromCo(KKTanitoVegzettsegCo co)
{
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
MuveltsegiTeruletIds = co.MuveltsegiTeruletIds;
}
}
public class GyogyPedagogusVegzettsegWizardModel : VegzettsegWizardPedagogusBaseModel
{
public GyogyPedagogusVegzettsegWizardModel() : base(KKKepesitesJellTipusEnum.Gyogypedagogus)
{
}
[Display(Name = nameof(AlkalmazottResource.Terulet), ResourceType = typeof(AlkalmazottResource))]
[Required(ErrorMessageResourceName = nameof(AlkalmazottResource.TeruletMegadasaKotelezo), ErrorMessageResourceType = typeof(AlkalmazottResource))]
public List<int> GyogypedagogusTeruletIds { get; set; }
public new KKGyogyPedagogusVegzettsegCo ToCo()
{
var co = new KKGyogyPedagogusVegzettsegCo();
co.AlkalmazottId = AlkalmazottId;
co.KepesitesTipusId = KepesitesTipusId;
co.GyogypedagogusTeruletIds = GyogypedagogusTeruletIds;
return co;
}
public void FromCo(KKGyogyPedagogusVegzettsegCo co)
{
AlkalmazottId = co.AlkalmazottId;
KepesitesTipusId = co.KepesitesTipusId;
GyogypedagogusTeruletIds = co.GyogypedagogusTeruletIds;
}
}
}