63 lines
2.4 KiB
C#
63 lines
2.4 KiB
C#
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class AlkalmazottElerhetosegCimItemCo
|
|
{
|
|
public AlkalmazottElerhetosegCimItemCo(DataRow dataRow)
|
|
{
|
|
Id = SDAConvert.ToString(dataRow["ID"]);
|
|
Orszag_DNAME = SDAConvert.ToString(dataRow["Orszag_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
Tipus_DNAME = SDAConvert.ToString(dataRow["Tipus_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
Iranyitoszam = SDAConvert.ToString(dataRow["Iranyitoszam"]).ReplaceMultipleSpacesAndTrim();
|
|
Varos = SDAConvert.ToString(dataRow["Varos"]).ReplaceMultipleSpacesAndTrim();
|
|
Kozterulet = SDAConvert.ToString(dataRow["Kozterulet"]).ReplaceMultipleSpacesAndTrim();
|
|
KozteruletJellegeNev = SDAConvert.ToString(dataRow["KozteruletJellegeNev"]).ReplaceMultipleSpacesAndTrim();
|
|
Hazszam = SDAConvert.ToString(dataRow["Hazszam"]).ReplaceMultipleSpacesAndTrim();
|
|
Emelet = SDAConvert.ToString(dataRow["Emelet"]).ReplaceMultipleSpacesAndTrim();
|
|
Ajto = SDAConvert.ToString(dataRow["Ajto"]).ReplaceMultipleSpacesAndTrim();
|
|
Alapertelmezett_BOOL = SDAConvert.ToBoolean(dataRow["Alapertelmezett_BOOL"]);
|
|
Alapertelmezett_BNAME = SDAConvert.ToString(dataRow["Alapertelmezett_BNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
|
|
var cimPontositas = string.Empty;
|
|
|
|
if (!string.IsNullOrWhiteSpace(Emelet))
|
|
{
|
|
cimPontositas = $"{Emelet} em. ";
|
|
}
|
|
|
|
if (!string.IsNullOrWhiteSpace(Ajto))
|
|
{
|
|
cimPontositas += $"{Ajto} ajto";
|
|
}
|
|
|
|
Cim = $"{Kozterulet} {KozteruletJellegeNev} {Hazszam} {cimPontositas}".ReplaceMultipleSpacesAndTrim();
|
|
}
|
|
|
|
public string Id { get; set; }
|
|
|
|
public string Orszag_DNAME { get; set; }
|
|
|
|
public string Tipus_DNAME { get; set; }
|
|
|
|
public string Iranyitoszam { get; set; }
|
|
|
|
public string Varos { get; set; }
|
|
|
|
public string Cim { get; set; }
|
|
|
|
public string Kozterulet { get; set; }
|
|
|
|
public string KozteruletJellegeNev { get; set; }
|
|
|
|
public string Hazszam { get; set; }
|
|
|
|
public string Emelet { get; set; }
|
|
|
|
public string Ajto { get; set; }
|
|
public bool Alapertelmezett_BOOL { get; set; }
|
|
public string Alapertelmezett_BNAME { get; set; }
|
|
}
|
|
}
|