This commit is contained in:
2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions
@@ -0,0 +1,26 @@
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.OsztalyAtlag;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.OsztalyAtlag
{
public class SajatOsztalyAtlagListRequestDto
{
/// <summary>
/// Oktatási nevelési feladat filter
/// </summary>
[Required]
public string OktatasiNevelesiFeladatUid { get; set; }
/// <summary>
/// Tantárgy Uid filter. Paraméter üresen hagyása esetén nincs szűrés alkalmazva.
/// </summary>
public string TantargyUid { get; set; }
public static implicit operator OsztalyAtlagListRequest(SajatOsztalyAtlagListRequestDto dto)
=> new OsztalyAtlagListRequest(dto.TantargyUid)
{
OktatasiNevelesiFeladatUid = new OktatasiNevelesiFeladatUid(dto.OktatasiNevelesiFeladatUid)
};
}
}
@@ -0,0 +1,44 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.OsztalyAtlag;
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
using Kreta.Ellenorzo.Dto.VN.Tantargy;
using Kreta.Enums;
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.OsztalyAtlag
{
public class SajatOsztalyAtlagListResponseDto : IDtoListDocumentation
{
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
public string Uid { get; set; }
[Description(DescriptionLookUp.OsztalyCsoportAtlag)]
public decimal? OsztalyCsoportAtlag { get; set; }
[Description(DescriptionLookUp.OsztalyCsoportAtlagtolValoElteres)]
public decimal? OsztalyCsoportAtlagtolValoElteres { get; set; }
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargy)]
public TantargyResponseDto Tantargy { get; set; }
[Description(DescriptionLookUp.TanuloAtlagErteke)]
public decimal? TanuloAtlag { get; set; }
public DocumentationExampleDto ListExample
=> new DocumentationExampleDto("ListOsztalyAtlag", new SajatOsztalyAtlagListRequestDto
{
OktatasiNevelesiFeladatUid = new OktatasiNevelesiFeladatUid((int)OktatasiNevelesiFeladatEnum.technikum, OktatasiNevelesiFeladatEnum.technikum).UidRaw
});
public static implicit operator SajatOsztalyAtlagListResponseDto(OsztalyAtlagListResponse model) => new SajatOsztalyAtlagListResponseDto
{
Uid = model.Uid,
OsztalyCsoportAtlag = model.OsztalyCsoportAtlag,
OsztalyCsoportAtlagtolValoElteres = model.OsztalyCsoportAtlagtolValoElteres,
Tantargy = model.Tantargy,
TanuloAtlag = model.TanuloAtlag
};
}
}