66 lines
2.8 KiB
C#
66 lines
2.8 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Enums;
|
|
using Kreta.Resources;
|
|
using Kreta.Web.Security;
|
|
|
|
namespace Kreta.Web.Areas.Tantargy.Models
|
|
{
|
|
public class TantargyFelosztasAdatokModel
|
|
{
|
|
public string MunkakorTipus { get; set; }
|
|
public string FoglalkozasTipus { get; set; }
|
|
public string FoglalkozasKategoria { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.AlkalmazottNev), ResourceType = typeof(TantargyResource))]
|
|
public string MunkavallaloNev { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.MunkakorTipus), ResourceType = typeof(TantargyResource))]
|
|
public string MunkakorTipusNev
|
|
{
|
|
get
|
|
{
|
|
return string.IsNullOrWhiteSpace(MunkakorTipus) ? string.Empty : Convert.ToInt32(MunkakorTipus).GetDisplayName<MunkakorTipusEnum>(ClaimData.SelectedTanevID.Value);
|
|
}
|
|
}
|
|
|
|
[Display(Name = nameof(TantargyResource.OsztalyCsoport), ResourceType = typeof(TantargyResource))]
|
|
public string Csoport { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.Tantargy), ResourceType = typeof(TantargyResource))]
|
|
public string Tantargynev { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.FoglalkozasTipus), ResourceType = typeof(TantargyResource))]
|
|
public string FoglalkozasTipusNev
|
|
{
|
|
get
|
|
{
|
|
return string.IsNullOrWhiteSpace(FoglalkozasTipus) ? string.Empty : Convert.ToInt32(FoglalkozasTipus).GetDisplayName<FoglalkozasTipusEnum>(ClaimData.SelectedTanevID.Value);
|
|
}
|
|
}
|
|
|
|
[Display(Name = nameof(TantargyResource.HetiOraszam), ResourceType = typeof(TantargyResource))]
|
|
public string HetiOraszam { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.FoglakozasHelye), ResourceType = typeof(TantargyResource))]
|
|
public string FoglalkozasHelye { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.Tanev), ResourceType = typeof(TantargyResource))]
|
|
public string Tanev { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.Oraszamkorrekcio), ResourceType = typeof(TantargyResource))]
|
|
public string OsszevontOra { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.NemzetisegiOra), ResourceType = typeof(TantargyResource))]
|
|
public string NemzetisegiOra { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyfelosztasResource.MegbizasiOraszam), ResourceType = typeof(TantargyfelosztasResource))]
|
|
public string MegbizasiOraszam { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Tulora), ResourceType = typeof(OrarendResource))]
|
|
public string TuloraSzam { get; set; }
|
|
|
|
public bool IsFromSzervezet { get; set; }
|
|
}
|
|
}
|