62 lines
2.5 KiB
C#
62 lines
2.5 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.BusinessLogic.HelperClasses;
|
|
using Kreta.Core;
|
|
using Kreta.Resources;
|
|
using Kreta.Web.Security;
|
|
|
|
namespace Kreta.Web.Areas.Hianyzas.Models
|
|
{
|
|
public class HianyzasokSearchModel
|
|
{
|
|
[Display(Name = nameof(HianyzasResource.MulasztasiIdoszak), ResourceType = typeof(HianyzasResource))]
|
|
public DateTime? IdoszakKezdete { get; set; }
|
|
public DateTime? IdoszakVege { get; set; }
|
|
|
|
[Display(Name = nameof(HianyzasResource.Ora), ResourceType = typeof(HianyzasResource))]
|
|
public int? Oraszam { get; set; }
|
|
|
|
[Display(Name = nameof(HianyzasResource.Tantargy), ResourceType = typeof(HianyzasResource))]
|
|
public int? TantargyId { get; set; }
|
|
|
|
[Display(Name = nameof(TantargyResource.Tema), ResourceType = typeof(TantargyResource))]
|
|
public string Tema { get; set; }
|
|
|
|
[Display(Name = nameof(HianyzasResource.MulasztasTipusa), ResourceType = typeof(HianyzasResource))]
|
|
public int? MulasztasTipus { get; set; }
|
|
|
|
[Display(Name = nameof(HianyzasResource.Igazolt), ResourceType = typeof(HianyzasResource))]
|
|
public int? Igazolt { get; set; }
|
|
|
|
[Display(Name = nameof(HianyzasResource.TanoraiCeluMulasztas), ResourceType = typeof(HianyzasResource))]
|
|
public string TanoraiCeluMulasztas { get; set; }
|
|
|
|
[Display(Name = nameof(HianyzasResource.IgazolasTipus), ResourceType = typeof(HianyzasResource))]
|
|
public int? IgazolasTipus { get; set; }
|
|
|
|
[Display(Name = nameof(HianyzasResource.RogzitesDatuma), ResourceType = typeof(HianyzasResource))]
|
|
public DateTime? RogzitesKezdete { get; set; }
|
|
public DateTime? RogzitesVege { get; set; }
|
|
|
|
public int? MulaszatasId { get; set; }
|
|
|
|
public MulasztasokCo ConvertToMulasztasokCo()
|
|
{
|
|
return new MulasztasokCo
|
|
{
|
|
Tol = this.IdoszakKezdete,
|
|
Ig = this.IdoszakVege,
|
|
TanuloId = ClaimData.FelhasznaloId,
|
|
TanoraiCeluMulasztas = this.TanoraiCeluMulasztas,
|
|
Oraszam = this.Oraszam,
|
|
TantargyId = this.TantargyId,
|
|
Tema = this.Tema,
|
|
MulTip = this.MulasztasTipus,
|
|
Igazolt = this.Igazolt.ToNullableBoolean(),
|
|
IgazolasTipus = this.IgazolasTipus,
|
|
RogzitesKezdete = this.RogzitesKezdete,
|
|
RogzitesVege = this.RogzitesVege,
|
|
};
|
|
}
|
|
}
|
|
}
|