69 lines
2.1 KiB
C#
69 lines
2.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Resources;
|
|
using Kreta.Web.Attributes;
|
|
|
|
namespace Kreta.Web.Areas.Tantargy.Models
|
|
{
|
|
public class TanoraAdatokModel
|
|
{
|
|
public int? Id { get; set; }
|
|
|
|
[KretaDisplayName(273)] /*Dátum*/
|
|
public string Datum { get; set; }
|
|
|
|
[KretaDisplayName(270)] /*Óra sorszáma*/
|
|
public string OraSorszama { get; set; }
|
|
|
|
[KretaDisplayName(266)] /*Hét napja*/
|
|
public string HetNapja { get; set; }
|
|
|
|
[Display(Name = nameof(AdminisztracioResource.Tantargy), ResourceType = typeof(AdminisztracioResource))]
|
|
public string TargyNev { get; set; }
|
|
|
|
[KretaDisplayName(2892)] /*Tanár*/
|
|
public string TanarNev { get; set; }
|
|
|
|
[KretaDisplayName(1497)] /*Tanítási óra témája*/
|
|
public string Tema { get; set; }
|
|
|
|
[Display(Name = nameof(OsztalyCsoportResource.OsztalyCsoport), ResourceType = typeof(OsztalyCsoportResource))]
|
|
public string OsztCsopNev { get; set; }
|
|
|
|
[KretaDisplayName(267)] /*Helyiség*/
|
|
public string HelyNev { get; set; }
|
|
|
|
[KretaDisplayName(1924)] /*Óraszám/időpont*/
|
|
public string Oraszam { get; set; }
|
|
|
|
[Display(Name = nameof(TanmenetResource.Foglalkozas), ResourceType = typeof(TanmenetResource))]
|
|
public string FoglalkozasNev { get; set; }
|
|
|
|
[KretaDisplayName(1927)] /*Tanítási óra kezdete*/
|
|
public string OraKezdete { get; set; }
|
|
|
|
[KretaDisplayName(1928)] /*Tanítási óra vége*/
|
|
public string OraVege { get; set; }
|
|
|
|
public bool? Megtartott { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.MegtartottOra), ResourceType = typeof(OrarendResource))]
|
|
public string MegtartottString
|
|
{
|
|
get
|
|
{
|
|
if (Megtartott.HasValue)
|
|
{
|
|
return this.Megtartott.Value.GetDisplayName();
|
|
}
|
|
|
|
return OrarendResource.NemNaplozott;
|
|
}
|
|
}
|
|
|
|
public TanoraAdatokModel()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|