40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class CsoportItemCo
|
|
{
|
|
public CsoportItemCo() { }
|
|
|
|
public CsoportItemCo(DataRow dataRow)
|
|
{
|
|
Id = SDAConvert.ToInt32(dataRow["Id"]);
|
|
OsztalyBontasId = SDAConvert.ToNullableInt32(dataRow["OsztalyBontasId"]);
|
|
string nev = SDAConvert.ToString(dataRow["Nev"]).ReplaceMultipleSpacesAndTrim();
|
|
Nev = nev;
|
|
NevComparableString = nev?.ToComparableString();
|
|
TipusId = SDAConvert.ToNullableInt32(dataRow["TipusId"]);
|
|
TipusNev = SDAConvert.ToString(dataRow["TipusId_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
Importalt = SDAConvert.ToBooleanFromTF(dataRow["Importalt"]);
|
|
SzervezetId = SDAConvert.ToNullableInt32(dataRow["SzervezetId"]);
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
|
|
public int? OsztalyBontasId { get; set; }
|
|
|
|
public string Nev { get; set; }
|
|
|
|
public string NevComparableString { get; set; }
|
|
|
|
public int? TipusId { get; set; }
|
|
|
|
public string TipusNev { get; set; }
|
|
|
|
public bool Importalt { get; set; }
|
|
|
|
public int? SzervezetId { get; set; }
|
|
}
|
|
}
|