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

41 lines
1.9 KiB
C#

using System;
using System.Data;
using Kreta.BusinessLogic.Classes;
using Kreta.Core;
namespace Kreta.BusinessLogic.HelperClasses
{
public class OralatogatasItemCo
{
public OralatogatasItemCo(DataRow dataRow)
{
Id = SDAConvert.ToInt32(dataRow["ID"]);
Date = SDAConvert.ToDateTime(dataRow["Datum"]).Value;
Ora = SDAConvert.ToInt32(dataRow["Oraszam"]);
Latogato = SDAConvert.ToString(dataRow["Alkalmazott"]).ReplaceMultipleSpacesAndTrim();
LatogatoID = SDAConvert.ToInt32(dataRow["AlkalmazottId"]);
Beosztas = SDAConvert.ToString(dataRow["Beosztas"]).ReplaceMultipleSpacesAndTrim();
LatogatottPedagogus = SDAConvert.ToString(dataRow["LatogatottPedagogus"]).ReplaceMultipleSpacesAndTrim();
Tantargy = SDAConvert.ToString(dataRow["Tantargy"]).ReplaceMultipleSpacesAndTrim();
OsztalyCsoport = SDAConvert.ToString(dataRow["OsztalyCsoport"]).ReplaceMultipleSpacesAndTrim();
TanitasiOraId = SDAConvert.ToInt32(dataRow["TanitasiOraId"]);
LatogatoElotagNelkul = SDAConvert.ToString(dataRow["AlkalmazottElotagNelkul"]).ReplaceMultipleSpacesAndTrim();
IsSajatErtekeles = SDAConvert.ToBooleanFromTF(dataRow["IsSajatErtekeles"]);
}
public int Id { get; set; }
public DateTime Date { get; set; }
public int Ora { get; set; }
public string Latogato { get; set; }
public int LatogatoID { get; set; }
public string Beosztas { get; set; }
public string LatogatottPedagogus { get; set; }
public string Tantargy { get; set; }
public string OsztalyCsoport { get; set; }
public string Megjegyzes { get; set; }
public bool NemKotottMunkaidos { get; set; }
public bool IsSajatErtekeles { get; set; }
public int TanitasiOraId { get; set; }
public string LatogatoElotagNelkul { get; set; }
}
}