kreta/Kreta.BusinessLogic/HelperClasses/NemNaplozottTanorakSearchCO.cs
2024-03-13 00:33:46 +01:00

50 lines
2 KiB
C#

using System;
using Kreta.Core;
using Kreta.DataAccessManual.ParameterClasses;
namespace Kreta.BusinessLogic.HelperClasses
{
public class NemNaplozottTanorakSearchCO
{
public int? OsztalyCsoportSrc { get; set; }
public int? TantargySrc { get; set; }
public int? TanarSrc { get; set; }
public bool? CsakAHelyettesiteseim { get; set; }
public bool? HelyettesitettOraimIs { get; set; }
public bool? JovobeniOrakMegjelenitese { get; set; }
public DateTime? DatumTol { get; set; }
public DateTime? DatumIg { get; set; }
public int? OraszamTol { get; set; }
public int? OraszamIg { get; set; }
public DateTime? OraKezdetTol { get; set; }
public DateTime? OraKezdetIg { get; set; }
public int? FeladatKategoriaId { get; set; }
public int? FeladatEllatasiHelyId { get; set; }
public bool IsCsakErtekelesZarasa { get; set; }
public DateTime NaplozarasDate { get; set; }
public NemNaplozottOrakPCO ConvertToPCO(int intezmenyId, int tanevId, DateTime start, DateTime end)
{
return new NemNaplozottOrakPCO
{
IntezmenyId = intezmenyId,
TanevId = tanevId,
Start = start,
End = end,
TanarId = this.TanarSrc,
OsztalyCsoportId = this.OsztalyCsoportSrc,
TantargyId = this.TantargySrc,
CsakAHelyettesiteseim = this.CsakAHelyettesiteseim.ToBool(),
HelyettesitettOraimIs = this.HelyettesitettOraimIs.ToBool(),
DatumTol = this.DatumTol,
DatumIg = this.DatumIg,
OraszamTol = this.OraszamTol,
OraszamIg = this.OraszamIg,
OraKezdetTol = this.OraKezdetTol,
OraKezdetIg = this.OraKezdetIg,
FeladatKategoriaId = this.FeladatKategoriaId,
FeladatEllatasiHelyId = this.FeladatEllatasiHelyId
};
}
}
}