64 lines
3.8 KiB
C#
64 lines
3.8 KiB
C#
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; } }
|
|
}
|
|
}
|