This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,15 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.Email;
using Kreta.Ellenorzo.Domain.VN.Telefon;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott
{
public class AlkalmazottListRequest
{
public List<int> FelhasznaloIds { get; set; }
public EmailListRequest Email { get; set; }
public TelefonListRequest Telefon { get; set; }
}
}

View file

@ -0,0 +1,22 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.Email;
using Kreta.Ellenorzo.Domain.VN.Telefon;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott
{
public class AlkalmazottListResponse : IEqualityComparer<AlkalmazottListResponse>
{
public AlkalmazottUid Uid { get; set; }
public string Nev { get; set; }
public List<TelefonResponse> Telefonok { get; set; }
public List<EmailResponse> Emailek { get; set; }
public bool Equals(AlkalmazottListResponse x, AlkalmazottListResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(AlkalmazottListResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,20 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok
{
public class OsztalyfonokGetResponse : IEqualityComparer<OsztalyfonokGetResponse>
{
public OsztalyfonokUid Uid { get; set; }
public string EmailCim { get; set; }
public string Nev { get; set; }
public string Telefonszam { get; set; }
public bool Equals(OsztalyfonokGetResponse x, OsztalyfonokGetResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(OsztalyfonokGetResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,14 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok
{
public class OsztalyfonokHelyettesSimplifiedResponse : IEqualityComparer<OsztalyfonokHelyettesSimplifiedResponse>
{
public OsztalyfonokHelyettesUid Uid { get; set; }
public bool Equals(OsztalyfonokHelyettesSimplifiedResponse x, OsztalyfonokHelyettesSimplifiedResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(OsztalyfonokHelyettesSimplifiedResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,21 @@
using System;
using Kreta.Ellenorzo.Domain.VN.Indexers;
using Kreta.Ellenorzo.Domain.VN.Interfaces;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok
{
public class OsztalyfonokListRequest : IRequestUidsFilter<OsztalyfonokUid>
{
public OsztalyfonokListRequest(string uidsRaw = null)
{
Uids = new UidsCollection<OsztalyfonokUid>(uidsRaw, UidConverter);
}
public UidsCollection<OsztalyfonokUid> Uids { get; private set; }
public TanarListRequest Tanar { get; set; }
public static readonly Converter<string[], OsztalyfonokUid> UidConverter = uidRaw => new OsztalyfonokUid(uidRaw[0]);
}
}

View file

@ -0,0 +1,19 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok
{
public class OsztalyfonokListResponse : IEqualityComparer<OsztalyfonokListResponse>
{
public OsztalyfonokUid Uid { get; set; }
public TanarListResponse Tanar { get; set; }
public List<OsztalyCsoportListResponse> Osztalyai { get; set; }
public bool Equals(OsztalyfonokListResponse x, OsztalyfonokListResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(OsztalyfonokListResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,14 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok
{
public class OsztalyfonokSimplifiedResponse : IEqualityComparer<OsztalyfonokSimplifiedResponse>
{
public OsztalyfonokUid Uid { get; set; }
public bool Equals(OsztalyfonokSimplifiedResponse x, OsztalyfonokSimplifiedResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(OsztalyfonokSimplifiedResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,7 @@
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar
{
public class TanarListRequest
{
public AlkalmazottListRequest Alkalmazott { get; set; }
}
}

View file

@ -0,0 +1,16 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar
{
public class TanarListResponse : IEqualityComparer<TanarListResponse>
{
public TanarUid Uid { get; set; }
public AlkalmazottListResponse Alkalmazott { get; set; }
public bool Equals(TanarListResponse x, TanarListResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(TanarListResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,16 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar
{
public class TanarSimplifiedResponse : IEqualityComparer<TanarSimplifiedResponse>
{
public TanarUid Uid { get; set; }
public string Nev { get; set; }
public bool Equals(TanarSimplifiedResponse x, TanarSimplifiedResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(TanarSimplifiedResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,13 @@
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo
{
public class BankszamlaRequest
{
public string BankszamlaSzam { get; set; }
public int? BankszamlaTulajdonosTipusId { get; set; }
public string BankszamlaTulajdonosNeve { get; set; }
public string SzamlavezetoBank { get; set; }
}
}

View file

@ -0,0 +1,16 @@
using System;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo
{
[Serializable]
public class BankszamlaResponse
{
public string BankszamlaSzam { get; set; }
public int? BankszamlaTulajdonosTipusId { get; set; }
public string BankszamlaTulajdonosNeve { get; set; }
public bool IsReadOnly { get; set; }
}
}

View file

@ -0,0 +1,9 @@
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo
{
public class ElerhetosegRequest
{
public string EmailCim { get; set; }
public string Telefonszam { get; set; }
}
}

View file

@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Kreta.Ellenorzo.Domain.VN.Interfaces;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo
{
public class GondviseloEszkozIgenylesRequest : GondviseloBaseAdatlapRequest, IValidatableObject, IModelValidacio<GondviseloEszkozIgenylesRequest>
{
public bool IsElfogadottAszf { get; set; }
public new Dictionary<Predicate<GondviseloEszkozIgenylesRequest>, string> ModelValidaciok => new Dictionary<Predicate<GondviseloEszkozIgenylesRequest>, string>
{
{
x => !string.IsNullOrWhiteSpace(x.Elotag) && !Core.Constants.ElotagList.Contains(x.Elotag),
$"Az {nameof(Elotag)} paraméter nem szerepel a kiválasztható értékek között!"
},
{
x => string.IsNullOrWhiteSpace(x.Vezeteknev),
$"A {nameof(Vezeteknev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.Utonev),
$"Az {nameof(Utonev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.SzuletesiVezeteknev),
$"A {nameof(SzuletesiVezeteknev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.SzuletesiUtonev),
$"A {nameof(SzuletesiUtonev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.SzuletesiHely),
$"A {nameof(SzuletesiHely)} paraméter megadása kötelező!"
},
{
x => !x.SzuletesiDatum.HasValue,
$"A {nameof(SzuletesiDatum)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.AnyjaVezeteknev),
$"Az {nameof(AnyjaVezeteknev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.AnyjaUtonev),
$"Az {nameof(AnyjaUtonev)} paraméter megadása kötelező!"
},
{
x => !x.IsElfogadottAszf,
$"Az {nameof(IsElfogadottAszf)} paraméter értékenek true-nak kell lennie!"
}
};
public new IEnumerable<ValidationResult> Validate(ValidationContext validationContext) => ModelValidaciok.Where(x => x.Key.Invoke(this)).AsEnumerable().Select(x => new ValidationResult(x.Value));
}
}

View file

@ -0,0 +1,25 @@
using System;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo
{
public class GondviseloAdatokResponse
{
public string Elotag { get; set; }
public string Vezeteknev { get; set; }
public string SzuletesiVezeteknev { get; set; }
public string Utonev { get; set; }
public string SzuletesiUtonev { get; set; }
public string AnyjaVezeteknev { get; set; }
public string AnyjaUtonev { get; set; }
public string SzuletesiHely { get; set; }
public DateTime? SzuletesiDatum { get; set; }
}
}

View file

@ -0,0 +1,73 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Kreta.Ellenorzo.Domain.VN.Interfaces;
using Kreta.Ellenorzo.Domain.VN.Utility.ValidationAttributes;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo
{
public class GondviseloBaseAdatlapRequest : IValidatableObject, IModelValidacio<GondviseloBaseAdatlapRequest>
{
public string Elotag { get; set; }
public string Vezeteknev { get; set; }
public string Utonev { get; set; }
public string SzuletesiVezeteknev { get; set; }
public string SzuletesiUtonev { get; set; }
public string SzuletesiHely { get; set; }
[ShortDateTime]
public DateTime? SzuletesiDatum { get; set; }
public string AnyjaVezeteknev { get; set; }
public string AnyjaUtonev { get; set; }
public Dictionary<Predicate<GondviseloBaseAdatlapRequest>, string> ModelValidaciok => new Dictionary<Predicate<GondviseloBaseAdatlapRequest>, string>
{
{
x => !string.IsNullOrWhiteSpace(x.Elotag) && !Core.Constants.ElotagList.Contains(x.Elotag),
$"Az {nameof(Elotag)} paraméter nem szerepel a kiválasztható értékek között!"
},
{
x => string.IsNullOrWhiteSpace(x.Vezeteknev),
$"A {nameof(Vezeteknev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.Utonev),
$"Az {nameof(Utonev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.SzuletesiVezeteknev),
$"A {nameof(SzuletesiVezeteknev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.SzuletesiUtonev),
$"A {nameof(SzuletesiUtonev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.SzuletesiHely),
$"A {nameof(SzuletesiHely)} paraméter megadása kötelező!"
},
{
x => !x.SzuletesiDatum.HasValue,
$"A {nameof(SzuletesiDatum)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.AnyjaVezeteknev),
$"Az {nameof(AnyjaVezeteknev)} paraméter megadása kötelező!"
},
{
x => string.IsNullOrWhiteSpace(x.AnyjaUtonev),
$"Az {nameof(AnyjaUtonev)} paraméter megadása kötelező!"
}
};
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) => ModelValidaciok.Where(x => x.Key.Invoke(this)).AsEnumerable().Select(x => new ValidationResult(x.Value));
}
}

View file

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo
{
public class GondviseloResponse : IEqualityComparer<GondviseloResponse>
{
public GondviseloUid Uid { get; set; }
public Guid IdpUniqueId { get; set; }
public string Nev { get; set; }
public string EmailCim { get; set; }
public string Telefonszam { get; set; }
public bool IsTorvenyesKepviselo { get; set; }
public bool Equals(GondviseloResponse x, GondviseloResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(GondviseloResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,13 @@
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo
{
public class NapiErtesitesOsszefoglaloResponse
{
public int Ertekelesek { get; set; }
public int Mulasztasok { get; set; }
public int Feljegyzesek { get; set; }
public int Bejelentettszamonkeresek { get; set; }
public int Hazifeladatok { get; set; }
public int Uzenetek { get; set; }
public int Orarendvaltozasok { get; set; }
}
}

View file

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo
{
[Serializable]
public class GondviseloGetResponse : IEqualityComparer<GondviseloGetResponse>
{
public GondviseloUid Uid { get; set; }
public Guid IdpUniqueId { get; set; }
public string Nev { get; set; }
public string EmailCim { get; set; }
public string Telefonszam { get; set; }
public bool IsTorvenyesKepviselo { get; set; }
public bool Equals(GondviseloGetResponse x, GondviseloGetResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(GondviseloGetResponse obj) => obj.Uid.UidRaw.GetHashCode();
public static explicit operator GondviseloGetResponse(Gondviselo.GondviseloResponse model) => model == null ? null :
new GondviseloGetResponse
{
Uid = model.Uid,
IdpUniqueId = model.IdpUniqueId,
Nev = model.Nev,
EmailCim = model.EmailCim,
Telefonszam = model.Telefonszam,
IsTorvenyesKepviselo = model.IsTorvenyesKepviselo
};
}
}

View file

@ -0,0 +1,29 @@
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo
{
public class OsztalyfonokGetResponse : IEqualityComparer<OsztalyfonokGetResponse>
{
public OsztalyfonokUid Uid { get; set; }
public string EmailCim { get; set; }
public string Nev { get; set; }
public string Telefonszam { get; set; }
public bool Equals(OsztalyfonokGetResponse x, OsztalyfonokGetResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(OsztalyfonokGetResponse obj) => obj.Uid.UidRaw.GetHashCode();
public static explicit operator OsztalyfonokGetResponse(Alkalmazott.Tanar.Osztalyfonok.OsztalyfonokGetResponse model) => model == null ? null :
new OsztalyfonokGetResponse
{
Uid = model.Uid,
Nev = model.Nev,
EmailCim = model.EmailCim,
Telefonszam = model.Telefonszam
};
}
}

View file

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo
{
[Serializable]
public class TanuloAdatResponse
{
public Guid IdpUniqueId { get; set; }
public string Nev { get; set; }
public string SzuletesiNev { get; set; }
public string SzuletesiHely { get; set; }
public string AnyjaNeve { get; set; }
public string Telefonszam { get; set; }
public string EmailCim { get; set; }
public List<string> Cimek { get; set; }
public DateTime SzuletesiDatum { get; set; }
public BankszamlaResponse Bankszamla { get; set; }
public bool IsEszkozKiosztva { get; set; }
}
}

View file

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.Intezmeny;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo
{
[Serializable]
public class TanuloGetResponse : IEqualityComparer<TanuloGetResponse>
{
public int TanevId { get; set; }
public HashSet<GondviseloGetResponse> GondviseloLista { get; set; }
public TanuloUid Uid { get; set; }
public Guid IdpUniqueId { get; set; }
public IntezmenyResponse Intezmeny { get; set; }
public TanuloAdatResponse TanuloAdat { get; set; }
public bool Equals(TanuloGetResponse x, TanuloGetResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(TanuloGetResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}

View file

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo
{
[Serializable]
public class TanuloSimplifiedResponse : IEqualityComparer<TanuloSimplifiedResponse>
{
public TanuloUid Uid { get; set; }
public bool Equals(TanuloSimplifiedResponse x, TanuloSimplifiedResponse y) => x.Uid.Equals(x.Uid, y.Uid);
public int GetHashCode(TanuloSimplifiedResponse obj) => obj.Uid.UidRaw.GetHashCode();
}
}