init
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user