init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
145
Kreta.BusinessLogic/HelperClasses/TantargyfelosztasItemCo.cs
Normal file
145
Kreta.BusinessLogic/HelperClasses/TantargyfelosztasItemCo.cs
Normal file
|
@ -0,0 +1,145 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Core;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses
|
||||
{
|
||||
public class TantargyfelosztasItemCo
|
||||
{
|
||||
public TantargyfelosztasItemCo() { }
|
||||
|
||||
public TantargyfelosztasItemCo(DataRow dataRow, bool isSzerkesztheto)
|
||||
{
|
||||
Id = SDAConvert.ToInt32(dataRow["Id"]);
|
||||
Nev = SDAConvert.ToString(dataRow["Nev"]).ReplaceMultipleSpacesAndTrim();
|
||||
NevAlkalmazottNelkul = SDAConvert.ToString(dataRow["NevAlkalmazottNelkul"]).ReplaceMultipleSpacesAndTrim();
|
||||
TipusId = SDAConvert.ToInt32(dataRow["TipusId"]);
|
||||
OsztalyCsoportId = SDAConvert.ToInt32(dataRow["OsztalyCsoportId"]);
|
||||
string osztalyCsoportNev = SDAConvert.ToString(dataRow["OsztalyCsoportNev"]).ReplaceMultipleSpacesAndTrim();
|
||||
OsztalyCsoportNev = osztalyCsoportNev;
|
||||
OsztalyCsoportNevComparableString = osztalyCsoportNev?.ToComparableString();
|
||||
TantargyId = SDAConvert.ToInt32(dataRow["TantargyId"]);
|
||||
string tantargyNev = SDAConvert.ToString(dataRow["TantargyNev"]).ReplaceMultipleSpacesAndTrim();
|
||||
TantargyNev = tantargyNev;
|
||||
TantargyNevComparableString = tantargyNev?.ToComparableString();
|
||||
TanarId = SDAConvert.ToInt32(dataRow["TanarId"]);
|
||||
string tanarNev = SDAConvert.ToString(dataRow["TanarNev"]).ReplaceMultipleSpacesAndTrim();
|
||||
TanarNev = tanarNev;
|
||||
TanarNevComparableString = tanarNev?.ToComparableString();
|
||||
var tanarSzuletesiIdo = SDAConvert.ToDateTime(dataRow["TanarSzuletesiIdo"]).Value;
|
||||
TanarSzuletesiIdo = tanarSzuletesiIdo;
|
||||
TanarSzuletesiIdoComparableString = tanarSzuletesiIdo.ToString(Constants.ToStringPattern.SortableDateTimePattern).ToComparableString();
|
||||
Oraszam = SDAConvert.ToDouble(dataRow["Oraszam"]);
|
||||
Tuloraszam = SDAConvert.ToDouble(dataRow["Tuloraszam"]);
|
||||
IsOsszevontOra = SDAConvert.ToBooleanFromTF(dataRow["IsOsszevontOra"]);
|
||||
IsNemzetisegiOra = SDAConvert.ToBooleanFromTF(dataRow["IsNemzetisegiOra"]);
|
||||
MegbizasiOraszam = SDAConvert.ToDouble(dataRow["MegbizasiOraszam"]);
|
||||
Importalt = SDAConvert.ToBooleanFromTF(dataRow["Importalt"]);
|
||||
SzervezetId = SDAConvert.ToInt32(dataRow["SzervezetId"]);
|
||||
|
||||
if (dataRow.Table.Columns.Contains("FeladatEllatasihelyId"))
|
||||
{
|
||||
FeladatEllatasihelyId = SDAConvert.ToInt32(dataRow["FeladatEllatasihelyId"]);
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("MukodesiHelyNev"))
|
||||
{
|
||||
MukodesiHelyNev = SDAConvert.ToString(dataRow["MukodesiHelyNev"]).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("OktatasiNevelesiFeladatTipusId"))
|
||||
{
|
||||
OktatasiNevelesiFeladatTipusId = SDAConvert.ToInt32(dataRow["OktatasiNevelesiFeladatTipusId"]);
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("FeladatKategoriaId"))
|
||||
{
|
||||
FeladatKategoriaId = SDAConvert.ToInt32(dataRow["FeladatKategoriaId"]);
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("TanarNevElotagNelkul"))
|
||||
{
|
||||
TanarNevElotagNelkul = SDAConvert.ToString(dataRow["TanarNevElotagNelkul"]).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("TanevNev"))
|
||||
{
|
||||
TanevNev = SDAConvert.ToString(dataRow["TanevNev"]).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("DualisKepzohelyNeve"))
|
||||
{
|
||||
DualisKepzohelyNeve = SDAConvert.ToString(dataRow["DualisKepzohelyNeve"]).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("DualisKepzohelyAdoszama"))
|
||||
{
|
||||
DualisKepzohelyAdoszama = SDAConvert.ToString(dataRow["DualisKepzohelyAdoszama"]).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
if (dataRow.Table.Columns.Contains("RogzitoId"))
|
||||
{
|
||||
RogzitoId = SDAConvert.ToInt32(dataRow["RogzitoId"]);
|
||||
}
|
||||
IsSzerkesztheto = isSzerkesztheto;
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Nev { get; set; }
|
||||
|
||||
public string NevAlkalmazottNelkul { get; set; }
|
||||
|
||||
public int TipusId { get; set; }
|
||||
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
public string OsztalyCsoportNev { get; set; }
|
||||
|
||||
public string OsztalyCsoportNevComparableString { get; set; }
|
||||
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
public string TantargyNev { get; set; }
|
||||
|
||||
public string TantargyNevComparableString { get; set; }
|
||||
|
||||
public int TanarId { get; set; }
|
||||
|
||||
public string TanarNevComparableString { get; set; }
|
||||
|
||||
public string TanarNev { get; set; }
|
||||
|
||||
public DateTime TanarSzuletesiIdo { get; set; }
|
||||
|
||||
public string TanarSzuletesiIdoComparableString { get; set; }
|
||||
|
||||
public double Oraszam { get; set; }
|
||||
|
||||
public double TtfKorrekcioOraszam { get; set; }
|
||||
|
||||
public double Tuloraszam { get; set; }
|
||||
|
||||
public bool IsOsszevontOra { get; set; }
|
||||
|
||||
public bool IsNemzetisegiOra { get; set; }
|
||||
|
||||
public double MegbizasiOraszam { get; set; }
|
||||
|
||||
public bool Importalt { get; set; }
|
||||
|
||||
public int FeladatEllatasihelyId { get; set; }
|
||||
|
||||
public int FeladatKategoriaId { get; set; }
|
||||
|
||||
public string MukodesiHelyNev { get; set; }
|
||||
|
||||
public int OktatasiNevelesiFeladatTipusId { get; set; }
|
||||
|
||||
public string TanarNevElotagNelkul { get; set; }
|
||||
|
||||
public string TanevNev { get; set; }
|
||||
|
||||
public string DualisKepzohelyNeve { get; set; }
|
||||
|
||||
public string DualisKepzohelyAdoszama { get; set; }
|
||||
|
||||
public int RogzitoId { get; set; }
|
||||
public bool IsSzerkesztheto { get; set; }
|
||||
|
||||
public int? SzervezetId { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue