37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
using System;
|
|
using System.Data;
|
|
using Kreta.BusinessLogic.Classes;
|
|
using Kreta.Core;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public abstract class HaziFeladatBaseItemCo
|
|
{
|
|
public HaziFeladatBaseItemCo(DataRow row)
|
|
{
|
|
Id = SDAConvert.ToInt32(row["ID"]);
|
|
OraDatuma = SDAConvert.ToDateTime(row["OraDatuma"]);
|
|
OraSorszama = SDAConvert.ToInt32(row["OraSorszama"]);
|
|
TanarId = SDAConvert.ToInt32(row["TanarId"]);
|
|
TanarNev = SDAConvert.ToString(row["Tanar"]).ReplaceMultipleSpacesAndTrim();
|
|
TantargyId = SDAConvert.ToInt32(row["TantargyId"]);
|
|
TantargyNev = SDAConvert.ToString(row["Tantargy"]).ReplaceMultipleSpacesAndTrim();
|
|
OsztalyCsoportId = SDAConvert.ToInt32(row["OsztalyCsoportId"]);
|
|
OsztalyCsoportNev = SDAConvert.ToString(row["OsztalyCsoport"]).ReplaceMultipleSpacesAndTrim();
|
|
HataridoDatuma = SDAConvert.ToDateTime(row["HaziFeladatHataridoDatuma"]);
|
|
HazifeladatId = SDAConvert.ToInt32(row["HazifeladatId"]);
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
public DateTime? OraDatuma { get; set; }
|
|
public int OraSorszama { get; set; }
|
|
public int TanarId { get; set; }
|
|
public string TanarNev { get; set; }
|
|
public int TantargyId { get; set; }
|
|
public string TantargyNev { get; set; }
|
|
public int OsztalyCsoportId { get; set; }
|
|
public string OsztalyCsoportNev { get; set; }
|
|
public DateTime? HataridoDatuma { get; set; }
|
|
public int HazifeladatId { get; set; }
|
|
}
|
|
}
|