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

55 lines
2.9 KiB
C#

using System;
using System.Data;
using Kreta.BusinessLogic.Classes;
using Kreta.Core;
namespace Kreta.BusinessLogic.HelperClasses
{
public class FeljegyzesekItemCo
{
public FeljegyzesekItemCo(DataRow dataRow)
{
Id = SDAConvert.ToInt32(dataRow["ID"]);
Datum = SDAConvert.ToDateTime(dataRow["Datum"]).Value;
Megjegyzes = SDAConvert.ToString(dataRow["Megjegyzes"]).ReplaceMultipleSpacesAndTrim();
Tartalom = SDAConvert.ToString(dataRow["Tartalom"]).ReplaceMultipleSpacesAndTrim();
TipusId = SDAConvert.ToInt32(dataRow["Tipus"]);
TipusNev = SDAConvert.ToString(dataRow["Tipus_DNAME"]);
FeljegyzoId = SDAConvert.ToInt32(dataRow["FeljegyzoId"]);
TantargyId = SDAConvert.ToNullableInt32(dataRow["TantargyId"]);
TanuloId = SDAConvert.ToInt32(dataRow["TanuloId"]);
TanuloNev = SDAConvert.ToString(dataRow["TanuloNev"]).ReplaceMultipleSpacesAndTrim();
TanuloNevElotagNelkul = SDAConvert.ToString(dataRow["TanuloNevElotagNelkul"]).ReplaceMultipleSpacesAndTrim();
TanuloSzuletesiDatum = SDAConvert.ToDateTime(dataRow["SzuletesiDatum"]).Value;
OktatasiAzonosito = SDAConvert.ToString(dataRow["OktatasiAzonosito"]);
FeljegyzoNev = SDAConvert.ToString(dataRow["FeljegyzoNev"]).ReplaceMultipleSpacesAndTrim();
FeljegyzoNevElotagNelkul = SDAConvert.ToString(dataRow["FeljegyzoNevElotagNelkul"]).ReplaceMultipleSpacesAndTrim();
OsztalyCsoportId = SDAConvert.ToInt32(dataRow["OsztalyCsoportId"]);
OsztalyCsoportNev = SDAConvert.ToString(dataRow["OsztalyCsoportNev"]).ReplaceMultipleSpacesAndTrim();
OsztalyNev = SDAConvert.ToString(dataRow["OsztalyNev"]).ReplaceMultipleSpacesAndTrim();
Cim = SDAConvert.ToString(dataRow["Cim"]).ReplaceMultipleSpacesAndTrim();
FeljegyzesRogzitesenekDatuma = SDAConvert.ToDateTime(dataRow["RogzitesDatuma"]).Value.Date;
}
public int Id { get; set; }
public DateTime Datum { get; set; }
public string Megjegyzes { get; set; }
public string Tartalom { get; set; }
public int TipusId { get; set; }
public string TipusNev { get; set; }
public int FeljegyzoId { get; set; }
public int? TantargyId { get; set; }
public int TanuloId { get; set; }
public string TanuloNev { get; set; }
public string TanuloNevElotagNelkul { get; set; }
public DateTime TanuloSzuletesiDatum { get; set; }
public string OktatasiAzonosito { get; set; }
public string FeljegyzoNev { get; set; }
public string FeljegyzoNevElotagNelkul { get; set; }
public int OsztalyCsoportId { get; set; }
public string OsztalyCsoportNev { get; set; }
public string OsztalyNev { get; set; }
public string Cim { get; set; }
public DateTime FeljegyzesRogzitesenekDatuma { get; set; }
}
}