49 lines
2.2 KiB
C#
49 lines
2.2 KiB
C#
using System;
|
|
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Enums.ManualEnums;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class DualisSzerzodesCo
|
|
{
|
|
public DualisSzerzodesCo() { }
|
|
|
|
public DualisSzerzodesCo(DataRow dataRow)
|
|
{
|
|
SzerzodesFileId = SDAConvert.ToInt32(dataRow["SzerzodesFileId"]);
|
|
TanuloId = SDAConvert.ToInt32(dataRow["ID"]);
|
|
TanuloNev = SDAConvert.ToString(dataRow["TanuloNev"]);
|
|
AnyaNev = SDAConvert.ToString(dataRow["AnyaNev"]);
|
|
SzuletesiHelye = SDAConvert.ToString(dataRow["SzuletesiHelye"]);
|
|
SzuletesiDatum = SDAConvert.ToDateTime(dataRow["SzuletesiDatum"]);
|
|
OktatasiAzonosito = SDAConvert.ToString(dataRow["OktatasiAzonosito"]);
|
|
FileId = SDAConvert.ToInt32(dataRow["FileId"]);
|
|
FileNev = SDAConvert.ToString(dataRow["FileNev"]);
|
|
TanarNev = SDAConvert.ToString(dataRow["TanarNev"]);
|
|
FeltoltesDatuma = SDAConvert.ToDateTime(dataRow["FeltoltesDatuma"]);
|
|
Statusz = SDAConvert.ToBoolean(dataRow["Statusz"]) ? FileStatuszEnum.Feltoltve : FileStatuszEnum.NincsFeltoltve;
|
|
DualisKepzohelyNev = SDAConvert.ToString(dataRow["DualisKepzohelyNev"]);
|
|
DualisKepzohelyAdoszama = SDAConvert.ToString(dataRow["DualisKepzohelyAdoszama"]);
|
|
TanarId = SDAConvert.ToInt32(dataRow["TanarId"]);
|
|
FeltoltoId = SDAConvert.ToInt32(dataRow["FeltoltoId"]);
|
|
}
|
|
|
|
public int SzerzodesFileId { get; set; }
|
|
public int FeltoltoId { get; set; }
|
|
public int TanuloId { get; set; }
|
|
public string TanuloNev { get; set; }
|
|
public string AnyaNev { get; set; }
|
|
public string SzuletesiHelye { get; set; }
|
|
public DateTime? SzuletesiDatum { get; set; }
|
|
public string OktatasiAzonosito { get; set; }
|
|
public int? FileId { get; set; }
|
|
public string FileNev { get; set; }
|
|
public DateTime? FeltoltesDatuma { get; set; }
|
|
public FileStatuszEnum Statusz { get; set; }
|
|
public int? TanarId { get; set; }
|
|
public string TanarNev { get; set; }
|
|
public string DualisKepzohelyNev { get; set; }
|
|
public string DualisKepzohelyAdoszama { get; set; }
|
|
}
|
|
}
|