74 lines
3.4 KiB
C#
74 lines
3.4 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.BusinessLogic.HelperClasses;
|
|
using Kreta.Resources;
|
|
|
|
namespace Kreta.Web.Areas.Orarend.Models
|
|
{
|
|
public class NemNaplozottTanorakSearchModel
|
|
{
|
|
[Display(Name = nameof(OrarendResource.OsztalyCsoport), ResourceType = typeof(OrarendResource))]
|
|
public int? OsztalyCsoportSrc { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Tantargy), ResourceType = typeof(OrarendResource))]
|
|
public int? TantargySrc { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Pedagogus), ResourceType = typeof(OrarendResource))]
|
|
public int? TanarSrc { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.CsakAHelyettesiteseim), ResourceType = typeof(OrarendResource))]
|
|
public bool? CsakAHelyettesiteseim { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.HelyettesitettOraimIs), ResourceType = typeof(OrarendResource))]
|
|
public bool? HelyettesitettOraimIs { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.JovobeniOrakMegjelenitese), ResourceType = typeof(OrarendResource))]
|
|
public bool? JovobeniOrakMegjelenitese { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
|
public DateTime? DatumSrcTol { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Datum), ResourceType = typeof(OrarendResource))]
|
|
public DateTime? DatumSrcIg { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
|
public int? OraszamSrcTol { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.Oraszam), ResourceType = typeof(OrarendResource))]
|
|
public int? OraszamSrcIg { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
|
public DateTime? OraKezdetSrcTol { get; set; }
|
|
|
|
[Display(Name = nameof(OrarendResource.OraKezdete), ResourceType = typeof(OrarendResource))]
|
|
public DateTime? OraKezdetSrcIg { get; set; }
|
|
|
|
public DateTime NaplozarasDate { get; set; }
|
|
|
|
public bool IsCsakErtekelesZarasa { get; set; }
|
|
|
|
[Display(Name = nameof(OsztalyCsoportResource.EllatottKoznevelesiFeladatTipus), ResourceType = typeof(OsztalyCsoportResource))]
|
|
public int? FeladatKategoriaId { get; set; }
|
|
|
|
[Display(Name = nameof(CommonResource.Feladatellatasihely), ResourceType = typeof(CommonResource))]
|
|
public int? FeladatEllatasiHelyId { get; set; }
|
|
|
|
public static NemNaplozottTanorakSearchCO ConvertModelToCo(NemNaplozottTanorakSearchModel model) => new NemNaplozottTanorakSearchCO
|
|
{
|
|
OsztalyCsoportSrc = model.OsztalyCsoportSrc,
|
|
TantargySrc = model.TantargySrc,
|
|
TanarSrc = model.TanarSrc,
|
|
CsakAHelyettesiteseim = model.CsakAHelyettesiteseim,
|
|
HelyettesitettOraimIs = model.HelyettesitettOraimIs,
|
|
JovobeniOrakMegjelenitese = model.JovobeniOrakMegjelenitese,
|
|
DatumTol = model.DatumSrcTol,
|
|
DatumIg = model.DatumSrcIg,
|
|
OraszamTol = model.OraszamSrcTol,
|
|
OraszamIg = model.OraszamSrcIg,
|
|
OraKezdetTol = model.OraKezdetSrcTol,
|
|
OraKezdetIg = model.OraKezdetSrcIg,
|
|
FeladatKategoriaId = model.FeladatKategoriaId,
|
|
FeladatEllatasiHelyId = model.FeladatEllatasiHelyId
|
|
};
|
|
}
|
|
}
|