49 lines
2.3 KiB
C#
49 lines
2.3 KiB
C#
using System;
|
|
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class TanorakItemCo
|
|
{
|
|
public TanorakItemCo(DataRow dataRow)
|
|
{
|
|
Id = SDAConvert.ToInt32(dataRow["ID"]);
|
|
Datum = SDAConvert.ToDateTime(dataRow["Datum"]);
|
|
NaplozasDatuma = SDAConvert.ToDateTime(dataRow["NaplozasDatuma"]);
|
|
OsztCsop = SDAConvert.ToNullableInt32(dataRow["OsztCsop"]);
|
|
OsztCsopNev = SDAConvert.ToString(dataRow["OsztCsopNev"]).ReplaceMultipleSpacesAndTrim();
|
|
Targy = SDAConvert.ToNullableInt32(dataRow["Targy"]);
|
|
TargyNev = SDAConvert.ToString(dataRow["TargyNev"]).ReplaceMultipleSpacesAndTrim();
|
|
Tanar = SDAConvert.ToInt32(dataRow["Tanar"]);
|
|
HTanar = SDAConvert.ToNullableInt32(dataRow["HTanar"]);
|
|
TanarNev = SDAConvert.ToString(dataRow["TanarNev"]).ReplaceMultipleSpacesAndTrim();
|
|
IsHelyetesitett = SDAConvert.ToBooleanFromTF(dataRow["IsHelyetesitett"]);
|
|
OraSorsz = SDAConvert.ToString(dataRow["OraSorsz"]).ReplaceMultipleSpacesAndTrim();
|
|
Tema = SDAConvert.ToString(dataRow["Tema"]).ReplaceMultipleSpacesAndTrim();
|
|
HetNapja = SDAConvert.ToInt32(dataRow["HetNapja"]);
|
|
IsEgyediNap = SDAConvert.ToBooleanFromTF(dataRow["IsEgyediNap"]);
|
|
OraKezdete = SDAConvert.ToDateTime(dataRow["OraKezdete"]);
|
|
EvesSorsz = SDAConvert.ToString(dataRow["EvesSorsz"]).ReplaceMultipleSpacesAndTrim();
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
public DateTime? Datum { get; set; }
|
|
public DateTime? NaplozasDatuma { get; set; }
|
|
public int? OsztCsop { get; set; }
|
|
public string OsztCsopNev { get; set; }
|
|
public int? Targy { get; set; }
|
|
public string TargyNev { get; set; }
|
|
public int Tanar { get; set; }
|
|
public int? HTanar { get; set; }
|
|
public string TanarNev { get; set; }
|
|
public bool IsHelyetesitett { get; set; }
|
|
public string OraSorsz { get; set; }
|
|
public string Tema { get; set; }
|
|
public int HetNapja { get; set; }
|
|
public bool IsEgyediNap { get; set; }
|
|
public DateTime? OraKezdete { get; set; }
|
|
public string EvesSorsz { get; set; }
|
|
}
|
|
}
|