init
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Email;
|
||||
using Kreta.Ellenorzo.Dto.VN.Telefon;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott
|
||||
{
|
||||
public class AlkalmazottListResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.AlkalmazottNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TelefonLista)]
|
||||
public List<TelefonResponseDto> Telefonok { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EmailLista)]
|
||||
public List<EmailResponseDto> Emailek { get; set; }
|
||||
|
||||
public static implicit operator AlkalmazottListResponseDto(AlkalmazottListResponse model) => model == null ? null : new AlkalmazottListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
Telefonok = ModelToDto(model.Telefonok),
|
||||
Emailek = ModelToDto(model.Emailek)
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyfonokSimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
public static implicit operator OsztalyfonokSimplifiedResponseDto(OsztalyfonokSimplifiedResponse model) => model == null ? null : new OsztalyfonokSimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok
|
||||
{
|
||||
public class OsztalyfonokHelyettesSimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
public static implicit operator OsztalyfonokHelyettesSimplifiedResponseDto(OsztalyfonokHelyettesSimplifiedResponse model) => model == null ? null : new OsztalyfonokHelyettesSimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar.OsztalyFonok
|
||||
{
|
||||
public class OsztalyfonokListRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Osztályfőnök uid lista filter pontosvesszővel elválasztva
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Uids { get; set; }
|
||||
|
||||
public static implicit operator OsztalyfonokListRequest(OsztalyfonokListRequestDto dto)
|
||||
=> new OsztalyfonokListRequest(dto.Uids);
|
||||
}
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Dto.VN.OsztalyCsoport;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar.OsztalyFonok
|
||||
{
|
||||
public class OsztalyfonokListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasTanar)]
|
||||
public TanarListResponseDto Tanar { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Osztalyai)]
|
||||
public List<OsztalyfonokOsztalyCsoportListResponseDto> Osztalyai { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"GetOsztalyfonokok",
|
||||
new OsztalyfonokListRequestDto
|
||||
{
|
||||
Uids = "629615"
|
||||
});
|
||||
|
||||
public static implicit operator OsztalyfonokListResponseDto(OsztalyfonokListResponse model) => model == null ? null : new OsztalyfonokListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Tanar = model.Tanar,
|
||||
Osztalyai = ModelToDtoForOsztalyfonok(model.Osztalyai)
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar
|
||||
{
|
||||
public class TanarListResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.Alkalmazott)]
|
||||
public AlkalmazottListResponseDto Alkalmazott { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
public static implicit operator TanarListResponseDto(TanarListResponse model) => model == null ? null : new TanarListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Alkalmazott = model.Alkalmazott
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar
|
||||
{
|
||||
public class TanarSimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
public static implicit operator TanarSimplifiedResponseDto(TanarSimplifiedResponse model) => new TanarSimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class BankszamlaRequestDto : IExamplesProvider
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.BankszamlaSzam)]
|
||||
public string BankszamlaSzam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosTipusId)]
|
||||
public int? BankszamlaTulajdonosTipusId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosNeve)]
|
||||
public string BankszamlaTulajdonosNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.SzamlavezetoBank)]
|
||||
public string SzamlavezetoBank { get; set; }
|
||||
|
||||
public static implicit operator BankszamlaRequest(BankszamlaRequestDto dto) => new BankszamlaRequest
|
||||
{
|
||||
BankszamlaSzam = dto.BankszamlaSzam,
|
||||
BankszamlaTulajdonosTipusId = dto.BankszamlaTulajdonosTipusId,
|
||||
BankszamlaTulajdonosNeve = dto.BankszamlaTulajdonosNeve,
|
||||
SzamlavezetoBank = dto.SzamlavezetoBank
|
||||
};
|
||||
|
||||
public object GetExamples() => new BankszamlaRequestDto
|
||||
{
|
||||
BankszamlaSzam = "11111111-11111111-00000000",
|
||||
BankszamlaTulajdonosTipusId = 7885,
|
||||
BankszamlaTulajdonosNeve = "Antal Imre",
|
||||
SzamlavezetoBank = "CIB Bank"
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class BankszamlaResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.BankszamlaSzam)]
|
||||
public string BankszamlaSzam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosTipusId)]
|
||||
public int? BankszamlaTulajdonosTipusId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosNeve)]
|
||||
public string BankszamlaTulajdonosNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaSzamReadOnly)]
|
||||
public bool IsReadOnly { get; set; }
|
||||
|
||||
public static implicit operator BankszamlaResponseDto(BankszamlaResponse model) => new BankszamlaResponseDto
|
||||
{
|
||||
BankszamlaSzam = model.BankszamlaSzam,
|
||||
BankszamlaTulajdonosTipusId = model.BankszamlaTulajdonosTipusId,
|
||||
BankszamlaTulajdonosNeve = model.BankszamlaTulajdonosNeve,
|
||||
IsReadOnly = model.IsReadOnly
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class ElerhetosegRequestDto : IExamplesProvider
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakAzEmailCime)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakATelefonszama)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
public static implicit operator ElerhetosegRequest(ElerhetosegRequestDto dto) => new ElerhetosegRequest
|
||||
{
|
||||
EmailCim = dto.Email,
|
||||
Telefonszam = dto.Telefonszam
|
||||
};
|
||||
|
||||
public object GetExamples() => new ElerhetosegRequestDto
|
||||
{
|
||||
Email = "teszt@elerhetoseg.hu",
|
||||
Telefonszam = "+36001231235"
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
|
||||
{
|
||||
public class GondviseloAdatokResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Elotag { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Vezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
|
||||
public string SzuletesiVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Utonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
|
||||
public string SzuletesiUtonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
|
||||
public string AnyjaVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
|
||||
public string AnyjaUtonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetGondviseloAdatlap", null);
|
||||
|
||||
public static implicit operator GondviseloAdatokResponseDto(GondviseloAdatokResponse model) => new GondviseloAdatokResponseDto
|
||||
{
|
||||
Elotag = model.Elotag,
|
||||
Vezeteknev = model.Vezeteknev,
|
||||
Utonev = model.Utonev,
|
||||
SzuletesiVezeteknev = model.SzuletesiVezeteknev,
|
||||
SzuletesiUtonev = model.SzuletesiUtonev,
|
||||
AnyjaVezeteknev = model.AnyjaVezeteknev,
|
||||
AnyjaUtonev = model.AnyjaUtonev,
|
||||
SzuletesiHely = model.SzuletesiHely,
|
||||
SzuletesiDatum = model.SzuletesiDatum
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
|
||||
{
|
||||
public class GondviseloBaseAdatlapRequestDto : IExamplesProvider
|
||||
{
|
||||
[Description(DescriptionLookUp.FelhasznaloElotag)]
|
||||
public string Elotag { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloVezeteknev)]
|
||||
public string Vezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloUtonev)]
|
||||
public string Utonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiVezeteknev)]
|
||||
public string SzuletesiVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiUtonev)]
|
||||
public string SzuletesiUtonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaVezeteknev)]
|
||||
public string AnyjaVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaUtonev)]
|
||||
public string AnyjaUtonev { get; set; }
|
||||
|
||||
public static implicit operator GondviseloBaseAdatlapRequest(GondviseloBaseAdatlapRequestDto dto) => new GondviseloBaseAdatlapRequest
|
||||
{
|
||||
Elotag = dto.Elotag,
|
||||
Vezeteknev = dto.Vezeteknev,
|
||||
Utonev = dto.Utonev,
|
||||
SzuletesiVezeteknev = dto.SzuletesiVezeteknev,
|
||||
SzuletesiUtonev = dto.SzuletesiUtonev,
|
||||
SzuletesiHely = dto.SzuletesiHely,
|
||||
SzuletesiDatum = dto.SzuletesiDatum,
|
||||
AnyjaVezeteknev = dto.AnyjaVezeteknev,
|
||||
AnyjaUtonev = dto.AnyjaUtonev
|
||||
};
|
||||
|
||||
public object GetExamples() => new GondviseloBaseAdatlapRequestDto
|
||||
{
|
||||
Elotag = "Dr.",
|
||||
Vezeteknev = "Teszt",
|
||||
Utonev = "Gondviselő",
|
||||
SzuletesiVezeteknev = "GondviselőSzületésiVezetéknév",
|
||||
SzuletesiUtonev = "GondviselőSzületésiUtónév",
|
||||
SzuletesiHely = "Budapest",
|
||||
SzuletesiDatum = new DateTime(1975, 04, 15),
|
||||
AnyjaVezeteknev = "GondviselőAnyjaVezetéknév",
|
||||
AnyjaUtonev = "GondviselőAnyjaUtónév"
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
|
||||
{
|
||||
public class RegisztracioRequestDto : GondviseloBaseAdatlapRequestDto, IExamplesProvider
|
||||
{
|
||||
[Description(DescriptionLookUp.IsElfogadottAszf)]
|
||||
public bool IsElfogadottAszf { get; set; }
|
||||
|
||||
public static implicit operator GondviseloEszkozIgenylesRequest(RegisztracioRequestDto dto) => new GondviseloEszkozIgenylesRequest
|
||||
{
|
||||
Elotag = dto.Elotag,
|
||||
Vezeteknev = dto.Vezeteknev,
|
||||
Utonev = dto.Utonev,
|
||||
SzuletesiVezeteknev = dto.SzuletesiVezeteknev,
|
||||
SzuletesiUtonev = dto.SzuletesiUtonev,
|
||||
SzuletesiHely = dto.SzuletesiHely,
|
||||
SzuletesiDatum = dto.SzuletesiDatum,
|
||||
AnyjaVezeteknev = dto.AnyjaVezeteknev,
|
||||
AnyjaUtonev = dto.AnyjaUtonev,
|
||||
IsElfogadottAszf = dto.IsElfogadottAszf
|
||||
};
|
||||
|
||||
public new object GetExamples() => new RegisztracioRequestDto
|
||||
{
|
||||
Elotag = "Dr.",
|
||||
Vezeteknev = "Teszt",
|
||||
Utonev = "Gondviselő",
|
||||
SzuletesiVezeteknev = "GondviselőSzületésiVezetéknév",
|
||||
SzuletesiUtonev = "GondviselőSzületésiUtónév",
|
||||
SzuletesiHely = "Budapest",
|
||||
SzuletesiDatum = new DateTime(1975, 04, 15),
|
||||
AnyjaVezeteknev = "GondviselőAnyjaVezetéknév",
|
||||
AnyjaUtonev = "GondviselőAnyjaUtónév",
|
||||
IsElfogadottAszf = true
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class NapiErtesitesOsszefoglaloResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.Ertekelesek)]
|
||||
public int Ertekelesek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Mulasztasok)]
|
||||
public int Mulasztasok { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Feljegyzesek)]
|
||||
public int Feljegyzesek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Bejelentettszamonkeresek)]
|
||||
public int Bejelentettszamonkeresek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Hazifeladatok)]
|
||||
public int Hazifeladatok { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Uzenetek)]
|
||||
public int Uzenetek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Orarendvaltozasok)]
|
||||
public int Orarendvaltozasok { get; set; }
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetNapiErtesitesOsszefoglalo", null);
|
||||
|
||||
public static implicit operator NapiErtesitesOsszefoglaloResponseDto(NapiErtesitesOsszefoglaloResponse model) => new NapiErtesitesOsszefoglaloResponseDto
|
||||
{
|
||||
Ertekelesek = model.Ertekelesek,
|
||||
Mulasztasok = model.Mulasztasok,
|
||||
Feljegyzesek = model.Feljegyzesek,
|
||||
Bejelentettszamonkeresek = model.Bejelentettszamonkeresek,
|
||||
Hazifeladatok = model.Hazifeladatok,
|
||||
Uzenetek = model.Uzenetek,
|
||||
Orarendvaltozasok = model.Orarendvaltozasok
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo
|
||||
{
|
||||
public class GondviseloGetResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public Guid IdpUniqueId { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
[Required] public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakAzEmailCime + "; ha null, akkor nincs megadva")]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakATelefonszama + "; ha null, akkor nincs megadva")]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.IsTorvenyesKepviselo)]
|
||||
public bool IsTorvenyesKepviselo { get; set; }
|
||||
|
||||
public static implicit operator GondviseloGetResponseDto(GondviseloGetResponse model) => model == null ? null : new GondviseloGetResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
IdpUniqueId = model.IdpUniqueId,
|
||||
Nev = model.Nev,
|
||||
EmailCim = model.EmailCim,
|
||||
Telefonszam = model.Telefonszam,
|
||||
IsTorvenyesKepviselo = model.IsTorvenyesKepviselo
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo
|
||||
{
|
||||
public class OsztalyfonokGetResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakAPublikusEmailCime + "; ha null, akkor nincs megadva")]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakAPublikusTelefonszama + "; ha null, akkor nincs megadva")]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
public static implicit operator OsztalyfonokGetResponseDto(OsztalyfonokGetResponse model) => model == null ? null : new OsztalyfonokGetResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
EmailCim = model.EmailCim,
|
||||
Telefonszam = model.Telefonszam
|
||||
};
|
||||
}
|
||||
}
|
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Dto.VN.Intezmeny;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo
|
||||
{
|
||||
public class TanuloGetResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IdpUniqueId)]
|
||||
public Guid IdpUniqueId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanevUid)]
|
||||
public string TanevUid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IntezmenyNeve)]
|
||||
public string IntezmenyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IntezmenyAzonositoja)]
|
||||
public string IntezmenyAzonosito { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
|
||||
public string SzuletesiNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAlapertelmezettTelefon)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAlapertelmezettEmail)]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloLakcimei + ";<br>Ha nincs lakcím, akkor üres lista")]
|
||||
public List<string> Cimek { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
|
||||
public DateTime SzuletesiDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiEv)]
|
||||
public int SzuletesiEv { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHonap)]
|
||||
public int SzuletesiHonap { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNap)]
|
||||
public int SzuletesiNap { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsEszkozKiosztva)]
|
||||
public bool IsEszkozKiosztva { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloGondviseloinekListaja)]
|
||||
public HashSet<GondviseloGetResponseDto> Gondviselok { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Bankszamla)]
|
||||
public BankszamlaResponseDto Bankszamla { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IntezmenyAdatok)]
|
||||
public IntezmenyListResponseDto Intezmeny { get; set; }
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetTanuloAdatlap", null);
|
||||
|
||||
public static implicit operator TanuloGetResponseDto(TanuloGetResponse model) => new TanuloGetResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
IdpUniqueId = model.IdpUniqueId,
|
||||
TanevUid = model.TanevId.ToString(),
|
||||
IntezmenyNev = model.Intezmeny.IntezmenyAdatok.TeljesNev,
|
||||
IntezmenyAzonosito = model.Intezmeny.IntezmenyAdatok.Azonosito,
|
||||
Nev = model.TanuloAdat.Nev,
|
||||
SzuletesiNev = model.TanuloAdat.SzuletesiNev,
|
||||
SzuletesiHely = model.TanuloAdat.SzuletesiHely,
|
||||
AnyjaNeve = model.TanuloAdat.AnyjaNeve,
|
||||
Telefonszam = model.TanuloAdat.Telefonszam,
|
||||
EmailCim = model.TanuloAdat.EmailCim,
|
||||
Cimek = model.TanuloAdat.Cimek,
|
||||
SzuletesiDatum = model.TanuloAdat.SzuletesiDatum.ToIso8601Utc(),
|
||||
SzuletesiEv = model.TanuloAdat.SzuletesiDatum.Year,
|
||||
SzuletesiHonap = model.TanuloAdat.SzuletesiDatum.Month,
|
||||
SzuletesiNap = model.TanuloAdat.SzuletesiDatum.Day,
|
||||
IsEszkozKiosztva = model.TanuloAdat.IsEszkozKiosztva,
|
||||
Gondviselok = ModelToDto(model.GondviseloLista),
|
||||
Bankszamla = ModelToDto(model.TanuloAdat.Bankszamla),
|
||||
Intezmeny = ModelToDto(model.Intezmeny)
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user