66 lines
2.4 KiB
C#
66 lines
2.4 KiB
C#
using System;
|
|
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
using Kreta.Resources;
|
|
|
|
namespace Kreta.BusinessLogic.Helpers
|
|
{
|
|
public class TanevRendjeItemCo
|
|
{
|
|
public TanevRendjeItemCo(DataRow dataRow)
|
|
{
|
|
Id = SDAConvert.ToInt32(dataRow["Id"]);
|
|
Datum = SDAConvert.ToDateTime(dataRow["Datum"]).Value.Date;
|
|
NapId = SDAConvert.ToInt32(dataRow["NapId"]);
|
|
NapNev = SDAConvert.ToString(dataRow["NapId_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
NapTipusId = SDAConvert.ToInt32(dataRow["NapTipusId"]);
|
|
NapTipusNev = SDAConvert.ToString(dataRow["NapTipusId_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
HetirendId = SDAConvert.ToInt32(dataRow["HetirendId"]);
|
|
HetirendNev = SDAConvert.ToString(dataRow["HetirendId_DNAME"]).ReplaceMultipleSpacesAndTrim();
|
|
Megjegyzes = SDAConvert.ToString(dataRow["Megjegyzes"]).ReplaceMultipleSpacesAndTrim();
|
|
VonatkozoOsztalyCsoportSzam = SDAConvert.ToInt32(dataRow["VonatkozoOsztalyCsoportSzam"]);
|
|
IsOsszesCsoportraVonatkozik = SDAConvert.ToBoolean(dataRow["IsOsszesCsoportraVonatkozik_BOOL"]);
|
|
IsUresOrarend = SDAConvert.ToBoolean(dataRow["IsUresOrarend_BOOL"]);
|
|
IsOrarendiNap = SDAConvert.ToBoolean(dataRow["IsOrarendiNap_BOOL"]);
|
|
IsOrarendiNapText = dataRow["IsOrarendiNap_BNAME"].ToString();
|
|
if (IsOrarendiNap && IsUresOrarend)
|
|
{
|
|
IsOrarendiNapText += IntezmenyResource.TanevrendjeUres;
|
|
}
|
|
TanevNev = SDAConvert.ToString(dataRow["TanevNev"]).ReplaceMultipleSpacesAndTrim();
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
|
|
public DateTime Datum { get; set; }
|
|
|
|
public int NapId { get; set; }
|
|
|
|
public string NapNev { get; set; }
|
|
|
|
public int NapTipusId { get; set; }
|
|
|
|
public string NapTipusNev { get; set; }
|
|
|
|
public int HetirendId { get; set; }
|
|
|
|
public string HetirendNev { get; set; }
|
|
|
|
public string Megjegyzes { get; set; }
|
|
|
|
public int VonatkozoOsztalyCsoportSzam { get; set; }
|
|
|
|
public bool IsOsszesCsoportraVonatkozik { get; set; }
|
|
|
|
public bool IsUresOrarend { get; set; }
|
|
|
|
public bool IsOrarendiNap { get; set; }
|
|
|
|
public string IsOrarendiNapText { get; set; }
|
|
|
|
public string TanevNev { get; set; }
|
|
|
|
public string ErintettOsztalyCsoportText { get; set; } = string.Empty;
|
|
}
|
|
}
|