init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
|||
using System.Data;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Core;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses.MulasztasiErtesitokCOs
|
||||
{
|
||||
public class GondviseloAdatokCo : MulasztasFejCo
|
||||
{
|
||||
public GondviseloAdatokCo(DataRow row) : base(row)
|
||||
{
|
||||
GondviseloId = SDAConvert.ToInt32(row.Field<int>("GondviseloId"));
|
||||
GondviseloNeve = SDAConvert.ToString(row.Field<string>("GondviseloNev")).ReplaceMultipleSpacesAndTrim();
|
||||
GondviseloAllandoCim = SDAConvert.ToString(row.Field<string>("GondviseloAllandoCim")).ReplaceMultipleSpacesAndTrim();
|
||||
GondviseloTelefon = SDAConvert.ToString(row.Field<string>("GondviseloTelefon")).ReplaceMultipleSpacesAndTrim();
|
||||
GondviseloRokonsagiFoka = SDAConvert.ToString(row.Field<string>("GondviseloRokonsagiFoka")).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
|
||||
public int GondviseloId { get; set; }
|
||||
public string GondviseloNeve { get; set; }
|
||||
public string GondviseloAllandoCim { get; set; }
|
||||
public string GondviseloTelefon { get; set; }
|
||||
public string GondviseloRokonsagiFoka { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Core;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses.MulasztasiErtesitokCOs
|
||||
{
|
||||
public class MulasztasAdatCo
|
||||
{
|
||||
public MulasztasAdatCo(DataRow row)
|
||||
{
|
||||
TanuloId = SDAConvert.ToInt32(row.Field<int>("TanuloId"));
|
||||
TanuloCsoportId = SDAConvert.ToInt32(row.Field<int>("TanuloCsoportId"));
|
||||
OsztalyCsoportId = SDAConvert.ToInt32(row.Field<int>("OsztalyCsoportId"));
|
||||
OsztalyCsoportNeve = SDAConvert.ToString(row.Field<string>("OsztalyCsoportNev")).ReplaceMultipleSpacesAndTrim();
|
||||
Tipusa = SDAConvert.ToString(row.Field<string>("Tipusa")).ReplaceMultipleSpacesAndTrim();
|
||||
Igazolt = SDAConvert.ToBooleanFromTF(row.Field<string>("Igazolt"));
|
||||
IgazolasTipusa = SDAConvert.ToString(row.Field<string>("IgazolasTipusa")).ReplaceMultipleSpacesAndTrim();
|
||||
KesesPercben = SDAConvert.ToInt32(row.Field<int?>("KesesPercben"));
|
||||
Datum = SDAConvert.ToDateTime(row.Field<DateTime>("Datum")).Value;
|
||||
Oraszam = SDAConvert.ToString(row.Field<string>("Oraszam")).ReplaceMultipleSpacesAndTrim();
|
||||
TantargyId = SDAConvert.ToInt32(row.Field<int>("TantargyId"));
|
||||
TantargyNeve = SDAConvert.ToString(row.Field<string>("TantargyNev")).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
public int TanuloCsoportId { get; set; }
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
public string OsztalyCsoportNeve { get; set; }
|
||||
public string Tipusa { get; set; }
|
||||
public bool Igazolt { get; set; }
|
||||
public string IgazolasTipusa { get; set; }
|
||||
public int? KesesPercben { get; set; }
|
||||
public DateTime Datum { get; set; }
|
||||
public string Oraszam { get; set; }
|
||||
public int TantargyId { get; set; }
|
||||
public string TantargyNeve { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Kreta.BusinessLogic.Classes;
|
||||
using Kreta.Core;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses.MulasztasiErtesitokCOs
|
||||
{
|
||||
public class MulasztasFejCo
|
||||
{
|
||||
public MulasztasFejCo(DataRow row)
|
||||
{
|
||||
TanuloId = SDAConvert.ToInt32(row.Field<int>("TanuloId"));
|
||||
TanuloCsoportId = SDAConvert.ToInt32(row.Field<int>("TanuloCsoportId"));
|
||||
TanuloNeve = SDAConvert.ToString(row.Field<string>("TANULONEV")).ReplaceMultipleSpacesAndTrim();
|
||||
AnyjaNeve = SDAConvert.ToString(row.Field<string>("ANYJANEVE")).ReplaceMultipleSpacesAndTrim();
|
||||
SzuletesiHely = SDAConvert.ToString(row.Field<string>("SZULETESIHELY")).ReplaceMultipleSpacesAndTrim();
|
||||
SzuletesiIdo = SDAConvert.ToDateTime(row.Field<DateTime>("SZULETESIDATUM")).Value;
|
||||
TorzslapSzam = SDAConvert.ToString(row.Field<string>("TorzslapSzam")).ReplaceMultipleSpacesAndTrim(string.Empty);
|
||||
IntezmenyVezetoNeve = SDAConvert.ToString(row.Field<string>("INT_IGAZGATO_NEV")).ReplaceMultipleSpacesAndTrim();
|
||||
IntezmenyNeve = SDAConvert.ToString(row.Field<string>("INT_NEV")).ReplaceMultipleSpacesAndTrim();
|
||||
IntezmenyOMKod = SDAConvert.ToString(row.Field<string>("INT_OMKOD")).ReplaceMultipleSpacesAndTrim();
|
||||
IntezmenyVarosNeve = SDAConvert.ToString(row.Field<string>("INT_VAROS")).ReplaceMultipleSpacesAndTrim();
|
||||
IntezmenyCime = SDAConvert.ToString(row.Field<string>("INT_CIM")).ReplaceMultipleSpacesAndTrim();
|
||||
OsztalyCsoportNeve = SDAConvert.ToString(row.Field<string>("OSZTALYCSOPORT_NEV")).ReplaceMultipleSpacesAndTrim();
|
||||
OsztalyfonokNeve = SDAConvert.ToString(row.Field<string>("OSZTFO_NEV")).ReplaceMultipleSpacesAndTrim(string.Empty);
|
||||
Igazolt = SDAConvert.ToInt32(row.Field<int>("IGAZOLT"));
|
||||
Igazolatlan = SDAConvert.ToInt32(row.Field<int>("IGAZOLATLAN"));
|
||||
OsszesMulasztas = SDAConvert.ToInt32(row.Field<int>("OsszesMulasztas"));
|
||||
OsszesIgazolt = SDAConvert.ToInt32(row.Field<int>("OsszesIgazolt"));
|
||||
OsszesIgazolatlan = SDAConvert.ToInt32(row.Field<int>("OsszesIgazolatlan"));
|
||||
TanuloAllandoCim = SDAConvert.ToString(row.Field<string>("TanuloAllandoCim")).ReplaceMultipleSpacesAndTrim(string.Empty);
|
||||
TanuloTartozkodasiCim = SDAConvert.ToString(row.Field<string>("TanuloTartozkodasiCim")).ReplaceMultipleSpacesAndTrim(string.Empty);
|
||||
TanuloOktatasiAzonosito = SDAConvert.ToString(row.Field<string>("TanuloOktAzon")).ReplaceMultipleSpacesAndTrim(string.Empty);
|
||||
HozottIgazolt = SDAConvert.ToInt32(row.Field<int>("HozottIgazolt"));
|
||||
HozottIgazolatlan = SDAConvert.ToInt32(row.Field<int>("HozottIgazolatlan"));
|
||||
HozottIgazoltKeses = SDAConvert.ToInt32(row.Field<int>("HozottIgazoltKeses"));
|
||||
HozottIgazolatlanKeses = SDAConvert.ToInt32(row.Field<int>("HozottIgazolatlanKeses"));
|
||||
BelepesDatum = SDAConvert.ToDateTime(row.Field<DateTime>("BelepesDatum")).Value;
|
||||
TanevNeve = SDAConvert.ToString(row.Field<string>("TanevNeve")).ReplaceMultipleSpacesAndTrim();
|
||||
}
|
||||
|
||||
public int TanuloId { get; set; }
|
||||
public int TanuloCsoportId { get; set; }
|
||||
public string TanuloNeve { get; set; }
|
||||
public string AnyjaNeve { get; set; }
|
||||
public string SzuletesiHely { get; set; }
|
||||
public DateTime SzuletesiIdo { get; set; }
|
||||
public string TorzslapSzam { get; set; }
|
||||
public string IntezmenyVezetoNeve { get; set; }
|
||||
public string IntezmenyNeve { get; set; }
|
||||
public string IntezmenyOMKod { get; set; }
|
||||
public string IntezmenyVarosNeve { get; set; }
|
||||
public string IntezmenyCime { get; set; }
|
||||
public string OsztalyCsoportNeve { get; set; }
|
||||
public string OsztalyfonokNeve { get; set; }
|
||||
public int Igazolt { get; set; }
|
||||
public int Igazolatlan { get; set; }
|
||||
public int OsszesMulasztas { get; set; }
|
||||
public int OsszesIgazolt { get; set; }
|
||||
public int OsszesIgazolatlan { get; set; }
|
||||
public string TanuloAllandoCim { get; set; }
|
||||
public string TanuloTartozkodasiCim { get; set; }
|
||||
public string TanuloOktatasiAzonosito { get; set; }
|
||||
public int HozottIgazolt { get; set; }
|
||||
public int HozottIgazolatlan { get; set; }
|
||||
public int HozottIgazoltKeses { get; set; }
|
||||
public int HozottIgazolatlanKeses { get; set; }
|
||||
public DateTime BelepesDatum { get; set; }
|
||||
public string TanevNeve { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using Kreta.BusinessLogic.Classes.AsposeHelpers;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses.MulasztasiErtesitokCOs
|
||||
{
|
||||
public class MulasztasiErtesitoCo
|
||||
{
|
||||
public MulasztasiErtesitoCo(DataSet ds, AsposeDocumentParameters parameters)
|
||||
{
|
||||
_mulasztasFejCoList = ds.Tables["MulasztasFej"].AsEnumerable().Select(row => new MulasztasFejCo(row)).ToList();
|
||||
_mulasztasAdatCoList = ds.Tables["MulasztasAdat"].AsEnumerable().Select(row => new MulasztasAdatCo(row)).ToList();
|
||||
_gondviseloAdatokCoList = ds.Tables["GondviseloAdatok"].AsEnumerable().Select(row => new GondviseloAdatokCo(row)).ToList();
|
||||
|
||||
TanuloMulasztasErtesitoDictionary = new Dictionary<(int, int), TanuloMulasztasErtesitoCo>();
|
||||
foreach (var mulasztasFejCo in _mulasztasFejCoList)
|
||||
{
|
||||
TanuloMulasztasErtesitoDictionary.Add((mulasztasFejCo.TanuloId, mulasztasFejCo.TanuloCsoportId), new TanuloMulasztasErtesitoCo
|
||||
{
|
||||
MulasztasFej = mulasztasFejCo,
|
||||
MulasztasAdatList = _mulasztasAdatCoList.Where(x => x.TanuloId == mulasztasFejCo.TanuloId && x.TanuloCsoportId == mulasztasFejCo.TanuloCsoportId).ToList(),
|
||||
GondviseloAdatokList = _gondviseloAdatokCoList.Where(x => x.TanuloId == mulasztasFejCo.TanuloId && x.TanuloCsoportId == mulasztasFejCo.TanuloCsoportId).ToList(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private readonly List<MulasztasFejCo> _mulasztasFejCoList;
|
||||
private readonly List<MulasztasAdatCo> _mulasztasAdatCoList;
|
||||
private readonly List<GondviseloAdatokCo> _gondviseloAdatokCoList;
|
||||
|
||||
public Dictionary<(int, int), TanuloMulasztasErtesitoCo> TanuloMulasztasErtesitoDictionary { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses.MulasztasiErtesitokCOs
|
||||
{
|
||||
public class TanuloMulasztasErtesitoCo
|
||||
{
|
||||
public MulasztasFejCo MulasztasFej { get; set; }
|
||||
public List<MulasztasAdatCo> MulasztasAdatList { get; set; }
|
||||
public List<GondviseloAdatokCo> GondviseloAdatokList { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue