init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
176
Kreta.BusinessLogic/HelperClasses/TanuloKirAdatCO.cs
Normal file
176
Kreta.BusinessLogic/HelperClasses/TanuloKirAdatCO.cs
Normal file
|
@ -0,0 +1,176 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Kreta.BusinessLogic.HelperClasses
|
||||
{
|
||||
[XmlRoot(ElementName = "KIRTanulok")]
|
||||
public class KIRImportTanulokCO
|
||||
{
|
||||
public KIRImportTanulokCO()
|
||||
{
|
||||
Tanulok = new List<TanuloKirAdatCO>();
|
||||
}
|
||||
|
||||
[XmlArray(ElementName = "ImportaltTanulok")]
|
||||
[XmlArrayItem("Tanulo", Type = typeof(TanuloKirAdatCO))]
|
||||
public List<TanuloKirAdatCO> Tanulok { get; set; }
|
||||
|
||||
public List<string> Validate()
|
||||
{
|
||||
var errors = new List<string>();
|
||||
|
||||
foreach (var tanulo in Tanulok)
|
||||
{
|
||||
if (!tanulo.IsValid)
|
||||
{
|
||||
errors.Add(tanulo.ErrorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
return errors;
|
||||
}
|
||||
}
|
||||
|
||||
public class TanuloKirAdatCO
|
||||
{
|
||||
public TanuloKirAdatCO()
|
||||
{
|
||||
Errors = new List<string>();
|
||||
}
|
||||
|
||||
public int ID { get; set; }
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
public string ViseltNevElotag { get; set; }
|
||||
public string ViseltNevVezetekNev { get; set; }
|
||||
public string ViseltNevKeresztNev { get; set; }
|
||||
public string ViseltNevNevSorrend { get; set; }
|
||||
public string AnyjaNeveElotag { get; set; }
|
||||
public string AnyjaNeveVezetekNev { get; set; }
|
||||
public string AnyjaNeveKeresztNev { get; set; }
|
||||
public string AnyjaNeveNevSorrend { get; set; }
|
||||
public string SzuletesiNevElotag { get; set; }
|
||||
public string SzuletesiNevVezetekNev { get; set; }
|
||||
public string SzuletesiNevKeresztNev { get; set; }
|
||||
public string SzuletesiNevNevSorrend { get; set; }
|
||||
public string Telefonszam { get; set; }
|
||||
public string AnyjaNeve { get; set; }
|
||||
public string SzuletesiNeve { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string BejelentkezesiNev { get; set; }
|
||||
public string Jelszo { get; set; }
|
||||
public string Salt { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "SzuletesiDatum")]
|
||||
public string SzuletesiDatumString { get; set; }
|
||||
public string SzuletesiHely { get; set; }
|
||||
public int? SzuletesiOrszag { get; set; }
|
||||
|
||||
public string KeresesiNev { get; set; }
|
||||
public string NyomtatasiNev { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Allampolgarsag")]
|
||||
public int? Allampolgarsag { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Allampolgarsag2")]
|
||||
public int? Allampolgarsag2 { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "ErvenyesDiakigazolvanySzama")]
|
||||
public string ErvenyesDiakigazolvanySzama { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "BelugyMiniszteriumSzemelyiadatEsLakcimNyilvantartasavalBeazonositott")]
|
||||
public string BelugyMiniszteriumSzemelyiadatEsLakcimNyilvantartasavalBeazonositott { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "UtolsoSzemelyiadatEsLakcimNyilvantartasFrissitesIdopontja")]
|
||||
public string UtolsoSzemelyiadatEsLakcimNyilvantartasFrissitesIdopontjaString { get; set; }
|
||||
[XmlIgnore]
|
||||
public DateTime? UtolsoSzemelyiadatEsLakcimNyilvantartasFrissitesIdopontja { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public int? Anyanyelv { get; set; }
|
||||
public int? Nem { get; set; }
|
||||
public string TAJSzam { get; set; }
|
||||
public string AllandoLakcim { get; set; }
|
||||
public string AllandoLakcimIranyitoSzam { get; set; }
|
||||
public string AllandoLakcimTelepules { get; set; }
|
||||
public string AllandoLakcimKozteruletNev { get; set; }
|
||||
public string AllandoLakcimKozteruletJellegNev { get; set; }
|
||||
public string AllandoLakcimHazszam { get; set; }
|
||||
public string AllandoLakcimPontositas { get; set; }
|
||||
public string TartozkodasiCim { get; set; }
|
||||
public string TartozkodasiCimIranyitoSzam { get; set; }
|
||||
public string TartozkodasiCimTelepules { get; set; }
|
||||
public string TartozkodasiCimKozteruletNev { get; set; }
|
||||
public string TartozkodasiCimKozteruletJellegNev { get; set; }
|
||||
public string TartozkodasiCimHazszam { get; set; }
|
||||
public string TartozkodasiCimPontositas { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "TankotelezettsegVege")]
|
||||
public string TankotelezettsegVegeString { get; set; }
|
||||
[XmlIgnore]
|
||||
public DateTime? TankotelezettsegVege { get; set; }
|
||||
|
||||
public string TankotelezettsegetTeljesito { get; set; }
|
||||
public string SajatosNevelesIgenyu { get; set; }
|
||||
public string BeilleszkedesselKuzd { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public string KozoktatasiIntezmenyNeve { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public string KozoktatasiIntezmenySzekhelye { get; set; }
|
||||
public string OMAzonosito { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public string UgyviteliHely { get; set; }
|
||||
public string JogviszonyStatusza { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public DateTime? JogviszonyKezdete { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "JogviszonyKezdete")]
|
||||
public string JogviszonyKezdeteString { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public DateTime? JogviszonyVarBefejezese { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "JogviszonyVarBefejezese")]
|
||||
public string JogviszonyVarBefejezeseString { get; set; }
|
||||
|
||||
public string JogviszonyJellege { get; set; }
|
||||
public string Vendegtanulo { get; set; }
|
||||
public string Magantanulo { get; set; }
|
||||
public string Osztaly { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public string IgenybevettSzolgaltatasok { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public List<string> Errors { get; set; }
|
||||
|
||||
[XmlIgnore]
|
||||
public bool IsValid
|
||||
{
|
||||
get
|
||||
{
|
||||
var errors = new List<string>();
|
||||
errors.AddRange(Errors);
|
||||
|
||||
if (errors.Count > 0)
|
||||
{
|
||||
ErrorMessage = string.Format("A(z) {0}. sorban {1}. ", LineNumber, string.Join(", ", errors));
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
[XmlIgnore]
|
||||
public string ErrorMessage { get; internal set; }
|
||||
[XmlIgnore]
|
||||
public object LineNumber { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue