76 lines
2.9 KiB
C#
76 lines
2.9 KiB
C#
using System;
|
|
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class OrarendItemCo
|
|
{
|
|
public OrarendItemCo() { }
|
|
|
|
public OrarendItemCo(DataRow dataRow)
|
|
{
|
|
Id = SDAConvert.ToInt32(dataRow["Id"]);
|
|
OsztalyCsoportId = SDAConvert.ToInt32(dataRow["OsztalyCsoportId"]);
|
|
OsztalyCsoportNev = SDAConvert.ToString(dataRow["OsztalyCsoportNev"]).ReplaceMultipleSpacesAndTrim();
|
|
TantargyId = SDAConvert.ToInt32(dataRow["TantargyId"]);
|
|
TantargyNev = SDAConvert.ToString(dataRow["TantargyNev"]).ReplaceMultipleSpacesAndTrim();
|
|
TanarId = SDAConvert.ToInt32(dataRow["TanarId"]);
|
|
TanarNev = SDAConvert.ToString(dataRow["TanarNev"]).ReplaceMultipleSpacesAndTrim();
|
|
TanarSzuletesiIdo = SDAConvert.ToDateTime(dataRow["TanarSzuletesiIdo"]).Value;
|
|
TeremId = SDAConvert.ToInt32(dataRow["TeremId"]);
|
|
TeremNev = SDAConvert.ToString(dataRow["TeremNev"]).ReplaceMultipleSpacesAndTrim();
|
|
HetirendTipusId = SDAConvert.ToInt32(dataRow["HetirendTipusId"]);
|
|
HetirendTipusNev = SDAConvert.ToString(dataRow["HetirendTipusNev"]).ReplaceMultipleSpacesAndTrim();
|
|
HetNapjaTipusId = SDAConvert.ToInt32(dataRow["HetNapjaTipusId"]);
|
|
OraSorszam = SDAConvert.ToNullableInt32(dataRow["OraSorszam"]);
|
|
OraKezdete = SDAConvert.ToDateTime(dataRow["OraKezdete"]).Value;
|
|
OraVege = SDAConvert.ToDateTime(dataRow["OraVege"]).Value;
|
|
IsTanoranKivuliFoglalkozas = SDAConvert.ToBooleanFromTF(dataRow["IsTanoranKivuliFoglalkozas"]);
|
|
OraErvenyessegKezdete = SDAConvert.ToDateTime(dataRow["OraErvenyessegKezdete"]).Value;
|
|
OraErvenyessegVege = SDAConvert.ToDateTime(dataRow["OraErvenyessegVege"]);
|
|
Importalt = SDAConvert.ToBooleanFromTF(dataRow["Importalt"]);
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
|
|
public int OsztalyCsoportId { get; set; }
|
|
|
|
public string OsztalyCsoportNev { get; set; }
|
|
|
|
public int TantargyId { get; set; }
|
|
|
|
public string TantargyNev { get; set; }
|
|
|
|
public int TanarId { get; set; }
|
|
|
|
public string TanarNev { get; set; }
|
|
|
|
public DateTime TanarSzuletesiIdo { get; set; }
|
|
|
|
public int TeremId { get; set; }
|
|
|
|
public string TeremNev { get; set; }
|
|
|
|
public int HetirendTipusId { get; set; }
|
|
|
|
public string HetirendTipusNev { get; set; }
|
|
|
|
public int HetNapjaTipusId { get; set; }
|
|
|
|
public int? OraSorszam { get; set; }
|
|
|
|
public DateTime OraKezdete { get; set; }
|
|
|
|
public DateTime OraVege { get; set; }
|
|
|
|
public bool IsTanoranKivuliFoglalkozas { get; set; }
|
|
|
|
public DateTime OraErvenyessegKezdete { get; set; }
|
|
|
|
public DateTime? OraErvenyessegVege { get; set; }
|
|
|
|
public bool Importalt { get; set; }
|
|
}
|
|
}
|