init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,57 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Core;
|
||||
using Kreta.Resources;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses
|
||||
{
|
||||
public class TanuloJogviszonyGridItemCo
|
||||
{
|
||||
public TanuloJogviszonyGridItemCo(DataRow dataRow, bool pForSorolasPartial = false)
|
||||
{
|
||||
ID = SDAConvert.ToInt32(dataRow["JogviszonyId"]);
|
||||
JogviszonyTipusa = SDAConvert.ToString(dataRow[nameof(JogviszonyTipusa)]).ReplaceMultipleSpacesAndTrim();
|
||||
JogviszonyTipusaId = SDAConvert.ToInt32(dataRow[nameof(JogviszonyTipusaId)]);
|
||||
JogviszonyKezdete = new DateTime(SDAConvert.ToDateTime(dataRow[nameof(JogviszonyKezdete)]).Value.Ticks, DateTimeKind.Utc);
|
||||
JogviszonyKeletkezesenekJogcime = SDAConvert.ToString(dataRow[nameof(JogviszonyKeletkezesenekJogcime)]).ReplaceMultipleSpacesAndTrim();
|
||||
JogviszonyKeletkezesenekJogcimeId = SDAConvert.ToInt32(dataRow[nameof(JogviszonyKeletkezesenekJogcimeId)]);
|
||||
JogviszonyMegszunesenekJogcime = !pForSorolasPartial ? SDAConvert.ToString(dataRow[nameof(JogviszonyMegszunesenekJogcime)]).ReplaceMultipleSpacesAndTrim() : string.Empty;
|
||||
JogviszonyMegszunesenekJogcimeId = !pForSorolasPartial ? SDAConvert.ToNullableInt32(dataRow[nameof(JogviszonyMegszunesenekJogcimeId)]) : null;
|
||||
JogviszonyStatusza = !pForSorolasPartial ? SDAConvert.ToBooleanFromTF(dataRow[nameof(JogviszonyStatusza)]) ? TanuloResource.Aktiv : TanuloResource.Lezart : string.Empty;
|
||||
Megjegyzes = SDAConvert.ToString(dataRow[nameof(Megjegyzes)]).ReplaceMultipleSpacesAndTrim();
|
||||
TanuloId = pForSorolasPartial ? SDAConvert.ToNullableInt32(dataRow[nameof(TanuloId)]) : null;
|
||||
TanuloNeve = pForSorolasPartial ? SDAConvert.ToString(dataRow[nameof(TanuloNeve)]).ReplaceMultipleSpacesAndTrim() : string.Empty;
|
||||
if (!pForSorolasPartial && SDAConvert.ToDateTime(dataRow[nameof(JogviszonyVege)]).HasValue)
|
||||
{
|
||||
JogviszonyVege = new DateTime(SDAConvert.ToDateTime(dataRow[nameof(JogviszonyVege)]).Value.Ticks, DateTimeKind.Utc);
|
||||
}
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
|
||||
public int? TanuloId { get; set; }
|
||||
|
||||
public string TanuloNeve { get; set; }
|
||||
|
||||
public string JogviszonyTipusa { get; set; }
|
||||
public int JogviszonyTipusaId { get; set; }
|
||||
|
||||
public DateTime JogviszonyKezdete { get; set; }
|
||||
|
||||
public DateTime? JogviszonyVege { get; set; }
|
||||
|
||||
public string JogviszonyKeletkezesenekJogcime { get; set; }
|
||||
|
||||
public int JogviszonyKeletkezesenekJogcimeId { get; set; }
|
||||
|
||||
public string JogviszonyMegszunesenekJogcime { get; set; }
|
||||
|
||||
public int? JogviszonyMegszunesenekJogcimeId { get; set; }
|
||||
|
||||
public string JogviszonyStatusza { get; set; }
|
||||
|
||||
public string Megjegyzes { get; set; }
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue