init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
27
Kreta.Core/Domain/DetailedErrorItem.cs
Normal file
27
Kreta.Core/Domain/DetailedErrorItem.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Core.Enum;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class DetailedErrorItem
|
||||
{
|
||||
public DetailedErrorItem(string propertyName, string message, BlExceptionType exceptionType)
|
||||
{
|
||||
PropertyName = propertyName;
|
||||
Message = message;
|
||||
ExceptionType = exceptionType;
|
||||
}
|
||||
|
||||
[Required, Description("FE property azonosítására vagy entitás azonosítására szolgáló érték")]
|
||||
public string PropertyName { get; set; }
|
||||
|
||||
[Required, Description("Ember által olvasható hibaüzenet<br>kliens dönti el, hogy megjeleníti-e a felhasználó számára")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[Required, Description("Az exception típusa; röviden az ok, ami kiváltotta"), JsonConverter(typeof(StringEnumConverter))]
|
||||
public BlExceptionType ExceptionType { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Kreta.Core.Domain.EqualityComparer
|
||||
{
|
||||
public class KirFelhasznaloEqualityComparer : IEqualityComparer<KirFelhasznalo>
|
||||
{
|
||||
public bool Equals(KirFelhasznalo x, KirFelhasznalo y)
|
||||
{
|
||||
if (x == null && y == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (x == null || y == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
x.SzuletesiHely.Equals(y.SzuletesiHely, StringComparison.OrdinalIgnoreCase) &&
|
||||
x.SzuletesiNev.Equals(y.SzuletesiNev, StringComparison.OrdinalIgnoreCase) &&
|
||||
x.SzuletesiDatum.Equals(y.SzuletesiDatum) &&
|
||||
x.AnyjaNeve.Equals(y.AnyjaNeve, StringComparison.OrdinalIgnoreCase) &&
|
||||
x.OktatasiAzonosito.Equals(y.OktatasiAzonosito, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public int GetHashCode(KirFelhasznalo obj)
|
||||
{
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return obj.SzuletesiHely.GetHashCode() ^
|
||||
obj.SzuletesiNev.GetHashCode() ^
|
||||
obj.SzuletesiDatum.GetHashCode() ^
|
||||
obj.AnyjaNeve.GetHashCode() ^
|
||||
obj.OktatasiAzonosito.GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
39
Kreta.Core/Domain/FelhasznaloElerhetosegCO.cs
Normal file
39
Kreta.Core/Domain/FelhasznaloElerhetosegCO.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class FelhasznaloElerhetosegTelCO
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public int FelhasznaloId { get; set; }
|
||||
|
||||
public string Telefonszam { get; set; }
|
||||
public bool Alapertelmezett { get; set; }
|
||||
public string Leiras { get; set; }
|
||||
public int TelefonTipusa { get; set; }
|
||||
}
|
||||
|
||||
public class FelhasznaloElerhetosegEmailCO
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public int FelhasznaloId { get; set; }
|
||||
|
||||
public string EmailCim { get; set; }
|
||||
public bool Alapertelmezett { get; set; }
|
||||
public int EmailTipusa { get; set; }
|
||||
}
|
||||
|
||||
public class FelhasznaloElerhetosegCimCO
|
||||
{
|
||||
public int? ID { get; set; }
|
||||
public int FelhasznaloId { get; set; }
|
||||
public int? Orszag { get; set; }
|
||||
public int? CimTipus { get; set; }
|
||||
public string Iranyitoszam { get; set; }
|
||||
public string HelysegNev { get; set; }
|
||||
public string KozteruletNev { get; set; }
|
||||
public string KozteruletTipusNev { get; set; }
|
||||
public string Hazszam { get; set; }
|
||||
public string Emelet { get; set; }
|
||||
public string Ajto { get; set; }
|
||||
public bool Alapertelmezett { get; set; }
|
||||
}
|
||||
}
|
11
Kreta.Core/Domain/Interface/IKirAlkalmazott.cs
Normal file
11
Kreta.Core/Domain/Interface/IKirAlkalmazott.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Core.Domain.Interface
|
||||
{
|
||||
public interface IKirAlkalmazott : IKirFelhasznalo
|
||||
{
|
||||
DateTime? AlkalmazasKezdete { get; set; }
|
||||
DateTime? AlkalmazasMegszunese { get; set; }
|
||||
string FoglalkoztatasTipusa { get; set; }
|
||||
}
|
||||
}
|
34
Kreta.Core/Domain/Interface/IKirFelhasznalo.cs
Normal file
34
Kreta.Core/Domain/Interface/IKirFelhasznalo.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Core.Domain.Interface
|
||||
{
|
||||
public interface IKirFelhasznalo
|
||||
{
|
||||
int Id { get; set; }
|
||||
string NevElotag { get; set; }
|
||||
string Vezeteknev { get; set; }
|
||||
string Utonev { get; set; }
|
||||
string SzuletesiNev { get; set; }
|
||||
string NyomtatasiNev { get; set; }
|
||||
bool NevSorrend { get; set; }
|
||||
string SzuletesiVezeteknev { get; set; }
|
||||
string SzuletesiUtonev { get; set; }
|
||||
string SzuletesiNevSorrenddel { get; set; }
|
||||
bool SzuletesiNevSorrend { get; set; }
|
||||
string AnyjaVezetekNeve { get; set; }
|
||||
string AnyjaUtoneve { get; set; }
|
||||
string AnyjaNeveSorrenddel { get; set; }
|
||||
bool AnyjaNeveSorrend { get; set; }
|
||||
DateTime? SzuletesiDatum { get; set; }
|
||||
string OktatasiAzonosito { get; set; }
|
||||
string SzuletesiOrszag { get; set; }
|
||||
string Allampolgarsag { get; set; }
|
||||
string Allampolgarsag2 { get; set; }
|
||||
string SzuletesiHely { get; set; }
|
||||
string AnyjaNeve { get; set; }
|
||||
string Nem { get; set; }
|
||||
string Email { get; set; }
|
||||
string Telefonszam { get; set; }
|
||||
string TajSzam { get; set; }
|
||||
}
|
||||
}
|
18
Kreta.Core/Domain/Interface/IKirTanulo.cs
Normal file
18
Kreta.Core/Domain/Interface/IKirTanulo.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
|
||||
namespace Kreta.Core.Domain.Interface
|
||||
{
|
||||
public interface IKirTanulo : IKirFelhasznalo
|
||||
{
|
||||
DateTime? TankotelezettsegVege { get; set; }
|
||||
bool TankotelezettsegetTeljesito { get; set; }
|
||||
bool SajatosNevelesIgenyu { get; set; }
|
||||
bool BeilleszkedesselKuzd { get; set; }
|
||||
bool JogviszonyStatusza { get; set; }
|
||||
DateTime? JogviszonyKezdete { get; set; }
|
||||
DateTime? JogviszonyVarBefejezese { get; set; }
|
||||
string JogviszonyJellege { get; set; }
|
||||
bool Vendegtanulo { get; set; }
|
||||
bool Magantanulo { get; set; }
|
||||
}
|
||||
}
|
50
Kreta.Core/Domain/KirAlkalmazott.cs
Normal file
50
Kreta.Core/Domain/KirAlkalmazott.cs
Normal file
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using Kreta.Core.Domain.Interface;
|
||||
using Kreta.Core.KIR.Domain.Model.KirExport;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirAlkalmazott : KirFelhasznalo, IKirAlkalmazott, IEquatable<KirAlkalmazott>
|
||||
{
|
||||
public DateTime? AlkalmazasKezdete { get; set; }
|
||||
public DateTime? AlkalmazasMegszunese { get; set; }
|
||||
public string FoglalkoztatasTipusa { get; set; }
|
||||
|
||||
public bool Equals(KirAlkalmazott other)
|
||||
=> other != null &&
|
||||
base.Equals(other) &&
|
||||
AlkalmazasKezdete == other.AlkalmazasKezdete &&
|
||||
AlkalmazasMegszunese == other.AlkalmazasMegszunese &&
|
||||
FoglalkoztatasTipusa == other.FoglalkoztatasTipusa;
|
||||
|
||||
public static implicit operator KirAlkalmazott(AlkalmazottModel alkalmazottModel) => new KirAlkalmazott
|
||||
{
|
||||
Allampolgarsag = alkalmazottModel.Allampolgarsag,
|
||||
Allampolgarsag2 = alkalmazottModel.Allampolgarsag2,
|
||||
AllandoLakcim = alkalmazottModel.AllandoLakcim,
|
||||
TartozkodasiCim = alkalmazottModel.TartozkodasiCim,
|
||||
AnyjaNeve = alkalmazottModel.AnyjaNeve,
|
||||
AnyjaUtoneve = alkalmazottModel.AnyjaKeresztNeve,
|
||||
AnyjaNeveSorrend = alkalmazottModel.AnyjaNeveSorrend,
|
||||
AnyjaVezetekNeve = alkalmazottModel.AnyjaVezetekNeve,
|
||||
Email = alkalmazottModel.EmailCim,
|
||||
AlkalmazasMegszunese = alkalmazottModel.JogviszonyBefejezese,
|
||||
AlkalmazasKezdete = alkalmazottModel.JogviszonyKezdete,
|
||||
FoglalkoztatasTipusa = alkalmazottModel.JogviszonyTipusa,
|
||||
OktatasiAzonosito = alkalmazottModel.OktatasiAzonosito,
|
||||
SzuletesiDatum = alkalmazottModel.SzuletesiDatum,
|
||||
SzuletesiHely = alkalmazottModel.SzuletesiHely,
|
||||
SzuletesiNev = $"{alkalmazottModel.SzuletesiVezetekNev} {alkalmazottModel.SzuletesiKeresztNev}",
|
||||
SzuletesiUtonev = alkalmazottModel.SzuletesiKeresztNev,
|
||||
SzuletesiNevSorrend = alkalmazottModel.SzuletesiNevSorrend,
|
||||
SzuletesiVezeteknev = alkalmazottModel.SzuletesiVezetekNev,
|
||||
SzuletesiOrszag = alkalmazottModel.SzuletesiOrszag,
|
||||
Telefonszam = alkalmazottModel.Telefonszam,
|
||||
NevElotag = alkalmazottModel.ViseltNevElotag,
|
||||
Utonev = alkalmazottModel.ViseltKeresztNev,
|
||||
NevSorrend = alkalmazottModel.ViseltNevSorrend,
|
||||
Vezeteknev = alkalmazottModel.ViseltVezetekNev,
|
||||
Nem = alkalmazottModel.Nem
|
||||
};
|
||||
}
|
||||
}
|
68
Kreta.Core/Domain/KirAlkalmazottAlapadatok.cs
Normal file
68
Kreta.Core/Domain/KirAlkalmazottAlapadatok.cs
Normal file
|
@ -0,0 +1,68 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirAlkalmazottAlapadatok : KirAlkalmazottBase
|
||||
{
|
||||
[JsonProperty(Order = 1)]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public string NevElotag { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public string Vezeteknev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 4)]
|
||||
public string Utonev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 5)]
|
||||
public string SzuletesiVezeteknev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 6)]
|
||||
public string SzuletesiUtonev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 7)]
|
||||
public string AnyjaNeveVezeteknev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 8)]
|
||||
public string AnyjaNeveUtonev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 2)]
|
||||
public string Nem { get; set; }
|
||||
|
||||
[JsonProperty(Order = 10)]
|
||||
public new DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
[JsonProperty(Order = 9)]
|
||||
public new string SzuletesiHely { get; set; }
|
||||
|
||||
[JsonProperty(Order = 10)]
|
||||
public string SzuletesiOrszag { get; set; }
|
||||
|
||||
[JsonProperty(Order = 11)]
|
||||
public string Allampolgarsag { get; set; }
|
||||
|
||||
[JsonProperty(Order = 12)]
|
||||
public string Allampolgarsag2 { get; set; }
|
||||
|
||||
public static implicit operator KirAlkalmazottAlapadatok(KirAlkalmazott kirAlkalmazott) => new KirAlkalmazottAlapadatok
|
||||
{
|
||||
AnyjaNeveUtonev = kirAlkalmazott.AnyjaUtoneve,
|
||||
NevElotag = kirAlkalmazott.NevElotag,
|
||||
AnyjaNeveVezeteknev = kirAlkalmazott.AnyjaVezetekNeve,
|
||||
OktatasiAzonosito = kirAlkalmazott.OktatasiAzonosito,
|
||||
SzuletesiDatum = kirAlkalmazott.SzuletesiDatum,
|
||||
SzuletesiHely = kirAlkalmazott.SzuletesiHely,
|
||||
SzuletesiUtonev = kirAlkalmazott.SzuletesiUtonev,
|
||||
SzuletesiVezeteknev = kirAlkalmazott.SzuletesiVezeteknev,
|
||||
Utonev = kirAlkalmazott.Utonev,
|
||||
Vezeteknev = kirAlkalmazott.Vezeteknev,
|
||||
Allampolgarsag = kirAlkalmazott.Allampolgarsag,
|
||||
Allampolgarsag2 = kirAlkalmazott.Allampolgarsag2,
|
||||
SzuletesiOrszag = kirAlkalmazott.SzuletesiOrszag,
|
||||
Nem = kirAlkalmazott.Nem
|
||||
};
|
||||
}
|
||||
}
|
20
Kreta.Core/Domain/KirAlkalmazottBase.cs
Normal file
20
Kreta.Core/Domain/KirAlkalmazottBase.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public abstract class KirAlkalmazottBase
|
||||
{
|
||||
[JsonIgnore]
|
||||
public string SzuletesiNev { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string SzuletesiHely { get; set; }
|
||||
}
|
||||
}
|
59
Kreta.Core/Domain/KirAlkalmazottElerhetosegek.cs
Normal file
59
Kreta.Core/Domain/KirAlkalmazottElerhetosegek.cs
Normal file
|
@ -0,0 +1,59 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirAlkalmazottElerhetosegek : KirAlkalmazottBase
|
||||
{
|
||||
[JsonProperty(Order = 11)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[JsonProperty(Order = 12)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 1)]
|
||||
public string AllandoLakcimIranyitoszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 2)]
|
||||
public string AllandoLakcimVaros { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public string AllandoLakcimKozteruletNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 4)]
|
||||
public string AllandoLakcimKozteruletJellegeNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 5)]
|
||||
public string AllandoLakcimHazszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 6)]
|
||||
public string TartozkodasiCimIranyitoszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 7)]
|
||||
public string TartozkodasiCimVaros { get; set; }
|
||||
|
||||
[JsonProperty(Order = 8)]
|
||||
public string TartozkodasiCimKozteruletNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 9)]
|
||||
public string TartozkodasiCimKozteruletJellegeNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 10)]
|
||||
public string TartozkodasiCimHazszam { get; set; }
|
||||
|
||||
public static implicit operator KirAlkalmazottElerhetosegek(KirAlkalmazott kirAlkalmazott) => new KirAlkalmazottElerhetosegek
|
||||
{
|
||||
Email = kirAlkalmazott.Email,
|
||||
Telefonszam = kirAlkalmazott.Telefonszam,
|
||||
AllandoLakcimHazszam = kirAlkalmazott.AllandoLakcim.Hazszam,
|
||||
AllandoLakcimIranyitoszam = kirAlkalmazott.AllandoLakcim.Iranyitoszam,
|
||||
AllandoLakcimKozteruletNev = kirAlkalmazott.AllandoLakcim.KozteruletNev,
|
||||
AllandoLakcimKozteruletJellegeNev = kirAlkalmazott.AllandoLakcim.KozteruletJellege,
|
||||
AllandoLakcimVaros = kirAlkalmazott.AllandoLakcim.Varos,
|
||||
TartozkodasiCimIranyitoszam = kirAlkalmazott.TartozkodasiCim.Iranyitoszam,
|
||||
TartozkodasiCimVaros = kirAlkalmazott.TartozkodasiCim.Varos,
|
||||
TartozkodasiCimKozteruletNev = kirAlkalmazott.TartozkodasiCim.KozteruletNev,
|
||||
TartozkodasiCimKozteruletJellegeNev = kirAlkalmazott.TartozkodasiCim.KozteruletJellege,
|
||||
TartozkodasiCimHazszam = kirAlkalmazott.TartozkodasiCim.Hazszam
|
||||
};
|
||||
}
|
||||
}
|
24
Kreta.Core/Domain/KirAlkalmazottMunkaugyiAdatok.cs
Normal file
24
Kreta.Core/Domain/KirAlkalmazottMunkaugyiAdatok.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirAlkalmazottMunkaugyiAdatok : KirAlkalmazottBase
|
||||
{
|
||||
[JsonProperty(Order = 1)]
|
||||
public DateTime? AlkalmazasKezdete { get; set; }
|
||||
|
||||
[JsonProperty(Order = 2)]
|
||||
public DateTime? AlkalmazasMegszunese { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public string FoglalkoztatasTipusa { get; set; }
|
||||
|
||||
public static implicit operator KirAlkalmazottMunkaugyiAdatok(KirAlkalmazott kirAlkalmazott) => new KirAlkalmazottMunkaugyiAdatok
|
||||
{
|
||||
AlkalmazasKezdete = kirAlkalmazott.AlkalmazasKezdete,
|
||||
AlkalmazasMegszunese = kirAlkalmazott.AlkalmazasMegszunese,
|
||||
FoglalkoztatasTipusa = kirAlkalmazott.FoglalkoztatasTipusa
|
||||
};
|
||||
}
|
||||
}
|
24
Kreta.Core/Domain/KirCim.cs
Normal file
24
Kreta.Core/Domain/KirCim.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using Kreta.Core.KIR.Domain.Model.KirExport;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirCim
|
||||
{
|
||||
public int FelhasznaloId { get; set; }
|
||||
public string Iranyitoszam { get; set; }
|
||||
public string Varos { get; set; }
|
||||
public string KozteruletNev { get; set; }
|
||||
public string KozteruletJellege { get; set; }
|
||||
public string Hazszam { get; set; }
|
||||
|
||||
public static implicit operator KirCim(CimModel cimModel) => new KirCim
|
||||
{
|
||||
Iranyitoszam = cimModel?.Iranyitoszam,
|
||||
Varos = cimModel?.Telepules,
|
||||
KozteruletNev = cimModel?.KozteruletNev,
|
||||
KozteruletJellege = cimModel?.KozteruletJellege,
|
||||
//AllandoLakcimPontositas = cimModel.Pontositas,
|
||||
Hazszam = cimModel?.Hazszam
|
||||
};
|
||||
}
|
||||
}
|
103
Kreta.Core/Domain/KirFelhasznalo.cs
Normal file
103
Kreta.Core/Domain/KirFelhasznalo.cs
Normal file
|
@ -0,0 +1,103 @@
|
|||
using System;
|
||||
using Kreta.Core.CustomAttributes;
|
||||
using Kreta.Core.Domain.Interface;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirFelhasznalo : IKirFelhasznalo, IEquatable<KirFelhasznalo>
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string NevElotag { get; set; }
|
||||
public string Vezeteknev { get; set; }
|
||||
public string Utonev { get; set; }
|
||||
public string SzuletesiNev { get; set; }
|
||||
public string NyomtatasiNev { get; set; }
|
||||
public bool NevSorrend { get; set; }
|
||||
public string SzuletesiVezeteknev { get; set; }
|
||||
public string SzuletesiUtonev { get; set; }
|
||||
//Nem biztos hogy erre szükség van
|
||||
public string SzuletesiNevSorrenddel { get; set; }
|
||||
public bool SzuletesiNevSorrend { get; set; }
|
||||
public string AnyjaVezetekNeve { get; set; }
|
||||
public string AnyjaUtoneve { get; set; }
|
||||
public string AnyjaNeveSorrenddel { get; set; }
|
||||
public bool AnyjaNeveSorrend { get; set; }
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
public string SzuletesiOrszag { get; set; }
|
||||
public string Allampolgarsag { get; set; }
|
||||
public string Allampolgarsag2 { get; set; }
|
||||
public string SzuletesiHely { get; set; }
|
||||
public string AnyjaNeve { get; set; }
|
||||
public string Nem { get; set; }
|
||||
public string TajSzam { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Ignore()]
|
||||
public KirCim AllandoLakcim { get; set; }
|
||||
|
||||
[Ignore()]
|
||||
public KirCim TartozkodasiCim { get; set; }
|
||||
|
||||
public bool Equals(KirFelhasznalo other)
|
||||
=> other != null &&
|
||||
SzuletesiUtonev == other.SzuletesiUtonev &&
|
||||
OktatasiAzonosito == other.OktatasiAzonosito &&
|
||||
NevElotag == other.NevElotag &&
|
||||
Vezeteknev == other.Vezeteknev &&
|
||||
Utonev == other.Utonev &&
|
||||
SzuletesiVezeteknev == other.SzuletesiVezeteknev &&
|
||||
AnyjaVezetekNeve == other.AnyjaVezetekNeve &&
|
||||
AnyjaUtoneve == other.AnyjaUtoneve &&
|
||||
SzuletesiOrszag == other.SzuletesiOrszag &&
|
||||
Allampolgarsag == other.Allampolgarsag &&
|
||||
Allampolgarsag2 == other.Allampolgarsag2 &&
|
||||
Nem == other.Nem &&
|
||||
Email == other.Email &&
|
||||
Telefonszam == other.Telefonszam;
|
||||
|
||||
public static FelhasznaloElerhetosegCimCO ModelToAllandoLakcimToElerhetosegCimCo(KirFelhasznalo kirFelhasznalo)
|
||||
=> new FelhasznaloElerhetosegCimCO
|
||||
{
|
||||
FelhasznaloId = kirFelhasznalo.Id,
|
||||
Alapertelmezett = true,
|
||||
CimTipus = (int)CimTipusEnum.allando_lakcim,
|
||||
Hazszam = kirFelhasznalo.AllandoLakcim.Hazszam,
|
||||
Iranyitoszam = kirFelhasznalo.AllandoLakcim.Iranyitoszam,
|
||||
KozteruletTipusNev = kirFelhasznalo.AllandoLakcim.KozteruletJellege,
|
||||
KozteruletNev = kirFelhasznalo.AllandoLakcim.KozteruletNev,
|
||||
HelysegNev = kirFelhasznalo.AllandoLakcim.Varos
|
||||
};
|
||||
|
||||
public static FelhasznaloElerhetosegCimCO ModelToTartozkodasiCimToElerhetosegCimCo(KirFelhasznalo kirFelhasznalo)
|
||||
=> new FelhasznaloElerhetosegCimCO
|
||||
{
|
||||
FelhasznaloId = kirFelhasznalo.Id,
|
||||
Alapertelmezett = true,
|
||||
CimTipus = (int)CimTipusEnum.tartozkodasi_hely,
|
||||
Hazszam = kirFelhasznalo.TartozkodasiCim.Hazszam,
|
||||
Iranyitoszam = kirFelhasznalo.TartozkodasiCim.Iranyitoszam,
|
||||
KozteruletTipusNev = kirFelhasznalo.TartozkodasiCim.KozteruletJellege,
|
||||
KozteruletNev = kirFelhasznalo.TartozkodasiCim.KozteruletNev,
|
||||
HelysegNev = kirFelhasznalo.TartozkodasiCim.Varos
|
||||
};
|
||||
|
||||
public static implicit operator FelhasznaloElerhetosegTelCO(KirFelhasznalo kirFelhasznalo)
|
||||
=> new FelhasznaloElerhetosegTelCO
|
||||
{
|
||||
Alapertelmezett = true,
|
||||
Telefonszam = kirFelhasznalo.Telefonszam,
|
||||
TelefonTipusa = (int)TelefonTipusEnum.Ismeretlen
|
||||
};
|
||||
|
||||
public static implicit operator FelhasznaloElerhetosegEmailCO(KirFelhasznalo kirFelhasznalo)
|
||||
=> new FelhasznaloElerhetosegEmailCO
|
||||
{
|
||||
Alapertelmezett = true,
|
||||
EmailCim = kirFelhasznalo.Email,
|
||||
EmailTipusa = (int)EmailTipusEnum.Na
|
||||
};
|
||||
}
|
||||
}
|
59
Kreta.Core/Domain/KirFelhasznaloElerhetosegek.cs
Normal file
59
Kreta.Core/Domain/KirFelhasznaloElerhetosegek.cs
Normal file
|
@ -0,0 +1,59 @@
|
|||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirFelhasznaloElerhetosegek : KirAlkalmazottBase
|
||||
{
|
||||
[JsonProperty(Order = 11)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[JsonProperty(Order = 12)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 1)]
|
||||
public string AllandoLakcimIranyitoszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 2)]
|
||||
public string AllandoLakcimVaros { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public string AllandoLakcimKozteruletNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 4)]
|
||||
public string AllandoLakcimKozteruletJellegeNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 5)]
|
||||
public string AllandoLakcimHazszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 6)]
|
||||
public string TartozkodasiCimIranyitoszam { get; set; }
|
||||
|
||||
[JsonProperty(Order = 7)]
|
||||
public string TartozkodasiCimVaros { get; set; }
|
||||
|
||||
[JsonProperty(Order = 8)]
|
||||
public string TartozkodasiCimKozteruletNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 9)]
|
||||
public string TartozkodasiCimKozteruletJellegeNev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 10)]
|
||||
public string TartozkodasiCimHazszam { get; set; }
|
||||
|
||||
public static implicit operator KirFelhasznaloElerhetosegek(KirFelhasznalo kirFelhasznalo) => new KirFelhasznaloElerhetosegek
|
||||
{
|
||||
Email = kirFelhasznalo.Email,
|
||||
Telefonszam = kirFelhasznalo.Telefonszam,
|
||||
AllandoLakcimHazszam = kirFelhasznalo.AllandoLakcim.Hazszam,
|
||||
AllandoLakcimIranyitoszam = kirFelhasznalo.AllandoLakcim.Iranyitoszam,
|
||||
AllandoLakcimKozteruletNev = kirFelhasznalo.AllandoLakcim.KozteruletNev,
|
||||
AllandoLakcimKozteruletJellegeNev = kirFelhasznalo.AllandoLakcim.KozteruletJellege,
|
||||
AllandoLakcimVaros = kirFelhasznalo.AllandoLakcim.Varos,
|
||||
TartozkodasiCimIranyitoszam = kirFelhasznalo.TartozkodasiCim.Iranyitoszam,
|
||||
TartozkodasiCimVaros = kirFelhasznalo.TartozkodasiCim.Varos,
|
||||
TartozkodasiCimKozteruletNev = kirFelhasznalo.TartozkodasiCim.KozteruletNev,
|
||||
TartozkodasiCimKozteruletJellegeNev = kirFelhasznalo.TartozkodasiCim.KozteruletJellege,
|
||||
TartozkodasiCimHazszam = kirFelhasznalo.TartozkodasiCim.Hazszam
|
||||
};
|
||||
}
|
||||
}
|
67
Kreta.Core/Domain/KirTanulo.cs
Normal file
67
Kreta.Core/Domain/KirTanulo.cs
Normal file
|
@ -0,0 +1,67 @@
|
|||
using System;
|
||||
using Kreta.Core.Domain.Interface;
|
||||
using Kreta.Core.KIR.Domain.Model.KirExport;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirTanulo : KirFelhasznalo, IKirTanulo, IEquatable<KirTanulo>
|
||||
{
|
||||
public DateTime? TankotelezettsegVege { get; set; }
|
||||
public bool TankotelezettsegetTeljesito { get; set; }
|
||||
public bool SajatosNevelesIgenyu { get; set; }
|
||||
public bool BeilleszkedesselKuzd { get; set; }
|
||||
public bool JogviszonyStatusza { get; set; }
|
||||
public DateTime? JogviszonyKezdete { get; set; }
|
||||
public DateTime? JogviszonyVarBefejezese { get; set; }
|
||||
public string JogviszonyJellege { get; set; }
|
||||
public bool Vendegtanulo { get; set; }
|
||||
public bool Magantanulo { get; set; }
|
||||
|
||||
public bool Equals(KirTanulo other)
|
||||
=> other != null &&
|
||||
base.Equals(other) &&
|
||||
TankotelezettsegVege == other.TankotelezettsegVege &&
|
||||
TankotelezettsegetTeljesito == other.TankotelezettsegetTeljesito &&
|
||||
SajatosNevelesIgenyu == other.SajatosNevelesIgenyu &&
|
||||
BeilleszkedesselKuzd == other.BeilleszkedesselKuzd &&
|
||||
JogviszonyStatusza == other.JogviszonyStatusza &&
|
||||
JogviszonyKezdete == other.JogviszonyKezdete &&
|
||||
JogviszonyVarBefejezese == other.JogviszonyVarBefejezese &&
|
||||
JogviszonyJellege == other.JogviszonyJellege &&
|
||||
Vendegtanulo == other.Vendegtanulo &&
|
||||
Magantanulo == other.Magantanulo;
|
||||
|
||||
public static implicit operator KirTanulo(TanuloModel tanuloModel) => new KirTanulo
|
||||
{
|
||||
AllandoLakcim = tanuloModel.AllandoLakcim,
|
||||
TartozkodasiCim = tanuloModel.TartozkodasiCim,
|
||||
Allampolgarsag = tanuloModel.Allampolgarsag,
|
||||
Allampolgarsag2 = tanuloModel.Allampolgarsag2,
|
||||
AnyjaNeve = tanuloModel.AnyjaNeve,
|
||||
AnyjaUtoneve = tanuloModel.AnyjaKeresztNeve,
|
||||
AnyjaNeveSorrend = tanuloModel.AnyjaNeveSorrend,
|
||||
AnyjaVezetekNeve = tanuloModel.AnyjaVezetekNeve,
|
||||
TankotelezettsegVege = tanuloModel.TankotelezettsegVege,
|
||||
TankotelezettsegetTeljesito = tanuloModel.TankotelezettsegetTeljesito,
|
||||
SajatosNevelesIgenyu = tanuloModel.SajatosNevelesIgenyu,
|
||||
BeilleszkedesselKuzd = tanuloModel.BeilleszkedesselKuzd,
|
||||
JogviszonyStatusza = tanuloModel.JogviszonyStatusza,
|
||||
JogviszonyKezdete = tanuloModel.JogviszonyKezdete,
|
||||
JogviszonyVarBefejezese = tanuloModel.JogviszonyVarBefejezese,
|
||||
OktatasiAzonosito = tanuloModel.OktatasiAzonosito,
|
||||
SzuletesiDatum = tanuloModel.SzuletesiDatum,
|
||||
SzuletesiHely = tanuloModel.SzuletesiHely,
|
||||
SzuletesiNev = $"{tanuloModel.SzuletesiVezetekNev} {tanuloModel.SzuletesiKeresztNev}",
|
||||
SzuletesiUtonev = tanuloModel.SzuletesiKeresztNev,
|
||||
SzuletesiNevSorrend = tanuloModel.SzuletesiNevSorrend,
|
||||
SzuletesiVezeteknev = tanuloModel.SzuletesiVezetekNev,
|
||||
SzuletesiOrszag = tanuloModel.SzuletesiOrszag,
|
||||
Telefonszam = tanuloModel.Telefonszam,
|
||||
NevElotag = tanuloModel.ViseltNevElotag,
|
||||
Utonev = tanuloModel.ViseltKeresztNev,
|
||||
NevSorrend = tanuloModel.ViseltNevSorrend,
|
||||
Vezeteknev = tanuloModel.ViseltVezetekNev,
|
||||
Nem = tanuloModel.Nem
|
||||
};
|
||||
}
|
||||
}
|
68
Kreta.Core/Domain/KirTanuloAlapadatok.cs
Normal file
68
Kreta.Core/Domain/KirTanuloAlapadatok.cs
Normal file
|
@ -0,0 +1,68 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirTanuloAlapadatok : KirTanuloBase
|
||||
{
|
||||
[JsonProperty(Order = 1)]
|
||||
public string OktatasiAzonosito { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public string NevElotag { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public string Vezeteknev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 4)]
|
||||
public string Utonev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 5)]
|
||||
public string SzuletesiVezeteknev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 6)]
|
||||
public string SzuletesiUtonev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 7)]
|
||||
public string AnyjaNeveVezeteknev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 8)]
|
||||
public string AnyjaNeveUtonev { get; set; }
|
||||
|
||||
[JsonProperty(Order = 2)]
|
||||
public string Nem { get; set; }
|
||||
|
||||
[JsonProperty(Order = 10)]
|
||||
public new DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
[JsonProperty(Order = 9)]
|
||||
public new string SzuletesiHely { get; set; }
|
||||
|
||||
[JsonProperty(Order = 10)]
|
||||
public string SzuletesiOrszag { get; set; }
|
||||
|
||||
[JsonProperty(Order = 11)]
|
||||
public string Allampolgarsag { get; set; }
|
||||
|
||||
[JsonProperty(Order = 12)]
|
||||
public string Allampolgarsag2 { get; set; }
|
||||
|
||||
public static implicit operator KirTanuloAlapadatok(KirTanulo kirAlkalmazott) => new KirTanuloAlapadatok
|
||||
{
|
||||
AnyjaNeveUtonev = kirAlkalmazott.AnyjaUtoneve,
|
||||
NevElotag = kirAlkalmazott.NevElotag,
|
||||
AnyjaNeveVezeteknev = kirAlkalmazott.AnyjaVezetekNeve,
|
||||
OktatasiAzonosito = kirAlkalmazott.OktatasiAzonosito,
|
||||
SzuletesiDatum = kirAlkalmazott.SzuletesiDatum,
|
||||
SzuletesiHely = kirAlkalmazott.SzuletesiHely,
|
||||
SzuletesiUtonev = kirAlkalmazott.SzuletesiUtonev,
|
||||
SzuletesiVezeteknev = kirAlkalmazott.SzuletesiVezeteknev,
|
||||
Utonev = kirAlkalmazott.Utonev,
|
||||
Vezeteknev = kirAlkalmazott.Vezeteknev,
|
||||
Allampolgarsag = kirAlkalmazott.Allampolgarsag,
|
||||
Allampolgarsag2 = kirAlkalmazott.Allampolgarsag2,
|
||||
SzuletesiOrszag = kirAlkalmazott.SzuletesiOrszag,
|
||||
Nem = kirAlkalmazott.Nem
|
||||
};
|
||||
}
|
||||
}
|
20
Kreta.Core/Domain/KirTanuloBase.cs
Normal file
20
Kreta.Core/Domain/KirTanuloBase.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public abstract class KirTanuloBase
|
||||
{
|
||||
[JsonIgnore]
|
||||
public string SzuletesiNev { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public string SzuletesiHely { get; set; }
|
||||
}
|
||||
}
|
36
Kreta.Core/Domain/KirTanuloJogviszonyAdatok.cs
Normal file
36
Kreta.Core/Domain/KirTanuloJogviszonyAdatok.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Core.Domain
|
||||
{
|
||||
public class KirTanuloJogviszonyAdatok : KirTanuloBase
|
||||
{
|
||||
[JsonProperty(Order = 1)]
|
||||
public bool JogviszonyStatusza { get; set; }
|
||||
|
||||
[JsonProperty(Order = 2)]
|
||||
public DateTime? JogviszonyKezdete { get; set; }
|
||||
|
||||
[JsonProperty(Order = 3)]
|
||||
public DateTime? JogviszonyVarBefejezese { get; set; }
|
||||
|
||||
[JsonProperty(Order = 4)]
|
||||
public string JogviszonyJellege { get; set; }
|
||||
|
||||
[JsonProperty(Order = 5)]
|
||||
public bool Vendegtanulo { get; set; }
|
||||
|
||||
[JsonProperty(Order = 6)]
|
||||
public bool Magantanulo { get; set; }
|
||||
|
||||
public static implicit operator KirTanuloJogviszonyAdatok(KirTanulo kirTanulo) => new KirTanuloJogviszonyAdatok
|
||||
{
|
||||
JogviszonyStatusza = kirTanulo.JogviszonyStatusza,
|
||||
JogviszonyKezdete = kirTanulo.JogviszonyKezdete,
|
||||
JogviszonyVarBefejezese = kirTanulo.JogviszonyVarBefejezese,
|
||||
JogviszonyJellege = kirTanulo.JogviszonyJellege,
|
||||
Vendegtanulo = kirTanulo.Vendegtanulo,
|
||||
Magantanulo = kirTanulo.Magantanulo
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue