This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,62 @@
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,
};
}
}
}