init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,50 @@
|
|||
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; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue