49 lines
1.8 KiB
C#
49 lines
1.8 KiB
C#
using System;
|
|
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class TanoraItemCo
|
|
{
|
|
public int ID { get; set; }
|
|
public DateTime Datum { get; set; }
|
|
|
|
public int? Ora { get; set; }
|
|
|
|
public string OraSorszam { get; set; }
|
|
|
|
public string TanarNev { get; set; }
|
|
|
|
public string Megjegyzes { get; set; }
|
|
|
|
public string OsztCsopNev { get; set; }
|
|
|
|
public string TargyNev { get; set; }
|
|
|
|
public string Tema { get; set; }
|
|
|
|
public DateTime NaplozasDatuma { get; set; }
|
|
|
|
public string HFRogzitve { get; set; }
|
|
|
|
public string OnlineOra { get; set; }
|
|
|
|
public TanoraItemCo(DataRow dataRow)
|
|
{
|
|
ID = SDAConvert.ToInt32(dataRow["ID"]);
|
|
Datum = SDAConvert.ToDateTime(dataRow["Datum"]).Value;
|
|
Ora = SDAConvert.ToInt32(dataRow["Ora"]);
|
|
OraSorszam = SDAConvert.ToString(dataRow["OraSorszTxt"]).ReplaceMultipleSpacesAndTrim();
|
|
TanarNev = SDAConvert.ToString(dataRow["TanarNev"]).ReplaceMultipleSpacesAndTrim();
|
|
Megjegyzes = SDAConvert.ToString(dataRow["Megjegyzes"]).ReplaceMultipleSpacesAndTrim();
|
|
OsztCsopNev = SDAConvert.ToString(dataRow["OsztCsopNev"]).ReplaceMultipleSpacesAndTrim();
|
|
TargyNev = SDAConvert.ToString(dataRow["TargyNev"]).ReplaceMultipleSpacesAndTrim();
|
|
Tema = SDAConvert.ToString(dataRow["Tema"]).ReplaceMultipleSpacesAndTrim();
|
|
NaplozasDatuma = SDAConvert.ToDateTime(dataRow["NaplozasDatuma"]).Value;
|
|
HFRogzitve = SDAConvert.ToBooleanFromTF(dataRow["HFRogzitve"]).GetDisplayName();
|
|
OnlineOra = SDAConvert.ToBooleanFromTF(dataRow["OnlineOra"]).GetDisplayName();
|
|
}
|
|
}
|
|
}
|