55 lines
2.7 KiB
C#
55 lines
2.7 KiB
C#
using System;
|
|
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class MulasztasItemCo
|
|
{
|
|
public int ID { get; set; }
|
|
public string TanuloNev { get; set; }
|
|
public string TanuloNevElotagNelkul { get; set; }
|
|
public string OktatasiAzonosito { get; set; }
|
|
public DateTime? Datum { get; set; }
|
|
public int Oraszam { get; set; }
|
|
public string OsztCsopNev { get; set; }
|
|
public string TargyNev { get; set; }
|
|
public string MulTip_DNAME { get; set; }
|
|
public int KesesPerc { get; set; }
|
|
public string Igazolt { get; set; }
|
|
public bool? Igazolt_BOOL { get; set; }
|
|
public string Igazolt_BNAME { get; set; }
|
|
public int? IgazolasTipus { get; set; }
|
|
public string IgazolasTipus_DNAME { get; set; }
|
|
public bool IsMulasztasKezelheto { get; set; }
|
|
public string IsOnlineOra_BNAME { get; set; }
|
|
public string IgazolasMegjegyzes { get; set; }
|
|
|
|
public MulasztasItemCo(DataRow row)
|
|
{
|
|
ID = SDAConvert.ToInt32(row["ID"]);
|
|
TanuloNev = SDAConvert.ToString(row["TanuloNev"]).ReplaceMultipleSpacesAndTrim();
|
|
TanuloNevElotagNelkul = SDAConvert.ToString(row["TanuloNevElotagNelkul"]).ReplaceMultipleSpacesAndTrim();
|
|
OktatasiAzonosito = SDAConvert.ToString(row["OktatasiAzonosito"]).ReplaceMultipleSpacesAndTrim();
|
|
Datum = SDAConvert.ToDateTime(row["Datum"]);
|
|
Oraszam = SDAConvert.ToInt32(row["Oraszam"]);
|
|
OsztCsopNev = SDAConvert.ToString(row["OsztCsopNev"]).ReplaceMultipleSpacesAndTrim();
|
|
TargyNev = SDAConvert.ToString(row["TargyNev"]).ReplaceMultipleSpacesAndTrim();
|
|
MulTip_DNAME = SDAConvert.ToString(row["MulTip_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
KesesPerc = SDAConvert.ToInt32(row["KesesPerc"]);
|
|
Igazolt = SDAConvert.ToString(row["Igazolt"]).ReplaceMultipleSpacesAndTrim();
|
|
Igazolt_BOOL = SDAConvert.ToBoolean(row["Igazolt_BOOL"]);
|
|
Igazolt_BNAME = SDAConvert.ToString(row["Igazolt_BNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
IgazolasTipus = SDAConvert.ToInt32(row["IgazolasTipus"]);
|
|
IgazolasTipus_DNAME = SDAConvert.ToString(row["IgazolasTipus_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
IsOnlineOra_BNAME = SDAConvert.ToString(row["IsOnlineOra_BNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
IgazolasMegjegyzes = SDAConvert.ToString(row["IgazolasMegjegyzes"]).ReplaceMultipleSpacesAndTrim();
|
|
|
|
if (row.Table.Columns.Contains("IsMulasztasKezelheto"))
|
|
{
|
|
IsMulasztasKezelheto = SDAConvert.ToBoolean(row["IsMulasztasKezelheto"]);
|
|
}
|
|
}
|
|
}
|
|
}
|