init
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.BusinessLogic.HelperClasses;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.Web.Areas.Hianyzas.Models
|
||||
{
|
||||
public class FelmentesekSearchModel
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public FelmentesekSearchModel() { }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.TanuloNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string TanuloNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.TanuloOsztalya), ResourceType = typeof(FelmentesResource))]
|
||||
public int? OsztalyId { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.Tantargy), ResourceType = typeof(FelmentesResource))]
|
||||
public int? TantargyIdSearch { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.KezdeteDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? KezdeteDateFrom { get; set; }
|
||||
public DateTime? KezdeteDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.VegeDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? VegeDateFrom { get; set; }
|
||||
public DateTime? VegeDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.IsTanoraLatogatasaAloli), ResourceType = typeof(FelmentesResource))]
|
||||
public int? IsTanoraLatogatasaAloli { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.IsErtekelesAloli), ResourceType = typeof(FelmentesResource))]
|
||||
public int? IsErtekelesAloli { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.IsSzovegesenErtekelheto), ResourceType = typeof(FelmentesResource))]
|
||||
public int? IsSzovegesenErtekelheto { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.FelmentesOka), ResourceType = typeof(FelmentesResource))]
|
||||
public string FelmentesOka { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.RogzitesDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? RogzitesDateFrom { get; set; }
|
||||
public DateTime? RogzitesDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.RogzitoNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string RogzitoNeve { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.ModositasDate), ResourceType = typeof(FelmentesResource))]
|
||||
public DateTime? ModositasDateFrom { get; set; }
|
||||
public DateTime? ModositasDateTo { get; set; }
|
||||
|
||||
[Display(Name = nameof(FelmentesResource.ModositoNeve), ResourceType = typeof(FelmentesResource))]
|
||||
public string ModositoNeve { get; set; }
|
||||
|
||||
public bool? Torolt { get; set; }
|
||||
|
||||
public FelmentesSearchCo ToCo()
|
||||
{
|
||||
var felmentesSearchCo = new FelmentesSearchCo
|
||||
{
|
||||
ID = ID,
|
||||
TanuloNeve = TanuloNeve,
|
||||
TanuloOsztalyId = OsztalyId,
|
||||
TantargyId = TantargyIdSearch,
|
||||
KezdeteDateFrom = KezdeteDateFrom,
|
||||
KezdeteDateTo = KezdeteDateTo,
|
||||
VegeDateFrom = VegeDateFrom,
|
||||
VegeDateTo = VegeDateTo,
|
||||
IsTanoraLatogatasaAloli = IsTanoraLatogatasaAloli,
|
||||
IsErtekelesAloli = IsErtekelesAloli,
|
||||
IsSzovegesenErtekelheto = IsSzovegesenErtekelheto,
|
||||
FelmentesOka = FelmentesOka,
|
||||
RogzitesDateFrom = RogzitesDateFrom,
|
||||
RogzitesDateTo = RogzitesDateTo.HasValue ? RogzitesDateTo.Value.AddDays(1) : (DateTime?)null,
|
||||
RogzitoNeve = RogzitoNeve,
|
||||
ModositasDateFrom = ModositasDateFrom,
|
||||
ModositasDateTo = ModositasDateTo.HasValue ? ModositasDateTo.Value.AddDays(1) : (DateTime?)null,
|
||||
ModositoNeve = ModositoNeve,
|
||||
Torolt = Torolt
|
||||
};
|
||||
return felmentesSearchCo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user