50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class NyomtatvanyokFoglalkozasiAdatokCo
|
|
{
|
|
public NyomtatvanyokFoglalkozasiAdatokCo(DataRow dataRow)
|
|
{
|
|
OsztalycsoportId = SDAConvert.ToInt32(dataRow["OsztalyCsoportId"]);
|
|
TanoraId = SDAConvert.ToInt32(dataRow["TanoraId"]);
|
|
TargyId = SDAConvert.ToInt32(dataRow["TantargyId"]);
|
|
TeremId = SDAConvert.ToInt32(dataRow["TeremId"]);
|
|
|
|
EredetiTanarId = SDAConvert.ToInt32(dataRow["EredetiTanarId"]);
|
|
HelyettesId = SDAConvert.ToInt32(dataRow["HelyettesId"]);
|
|
BeiroTanarId = SDAConvert.ToInt32(dataRow["BeiroTanarId"]);
|
|
|
|
if (HelyettesId.IsEntityId())
|
|
{
|
|
TanarId = HelyettesId;
|
|
}
|
|
else if (EredetiTanarId.IsEntityId())
|
|
{
|
|
TanarId = EredetiTanarId;
|
|
}
|
|
else
|
|
{
|
|
TanarId = BeiroTanarId;
|
|
}
|
|
}
|
|
|
|
public int OsztalycsoportId { get; }
|
|
|
|
public int TanoraId { get; }
|
|
|
|
public int TargyId { get; }
|
|
|
|
public int TanarId { get; }
|
|
|
|
private int EredetiTanarId { get; }
|
|
|
|
private int HelyettesId { get; }
|
|
|
|
private int BeiroTanarId { get; }
|
|
|
|
public int TeremId { get; }
|
|
}
|
|
}
|