543 lines
31 KiB
C#
543 lines
31 KiB
C#
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
|
|
};
|
|
}
|
|
}
|
|
}
|