init
This commit is contained in:
+26
@@ -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)
|
||||
};
|
||||
}
|
||||
}
|
||||
+44
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.TantargyiAtlag;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.TantargyiAtlag
|
||||
{
|
||||
public class AtlagAlakulasaResponseDto
|
||||
{
|
||||
[Required, Description("Tanuló átlagba beleszámító értékeléseinek átlaga két tizedesjegyre kerekítve a (" + nameof(Datum) + ") propertyben jelzett időpontban.")]
|
||||
public decimal Atlag { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloAtlagDatum)]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
public static implicit operator AtlagAlakulasaResponseDto(AtlagAlakulasaResponse model) => new AtlagAlakulasaResponseDto
|
||||
{
|
||||
Atlag = model.Atlag,
|
||||
Datum = model.Datum.ToIso8601Utc()
|
||||
};
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.TantargyiAtlag;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.TantargyiAtlag
|
||||
{
|
||||
public class SajatTantargyiAtlagListRequestDto
|
||||
{
|
||||
[Required]
|
||||
public string OktatasiNevelesiFeladatUid { get; set; }
|
||||
|
||||
public string TantargyUid { get; set; }
|
||||
|
||||
public static implicit operator TantargyiAtlagListRequest(SajatTantargyiAtlagListRequestDto dto)
|
||||
=> new TantargyiAtlagListRequest
|
||||
{
|
||||
OktatasiNevelesiFeladatUid = new OktatasiNevelesiFeladatUid(dto.OktatasiNevelesiFeladatUid),
|
||||
IsAtlagAlakulasaIncluded = true,
|
||||
TantargyUid = !string.IsNullOrWhiteSpace(dto.TantargyUid) ? new TantargyUid(dto.TantargyUid) : null
|
||||
};
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.TantargyiAtlag;
|
||||
using Kreta.Ellenorzo.Domain.VN.Interfaces;
|
||||
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;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.TantargyiAtlag
|
||||
{
|
||||
public class SajatTantargyiAtlagListResponseDto : IDtoListDocumentation, ISortable
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargy)]
|
||||
public TantargyResponseDto Tantargy { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.TanuloAtlagErteke)]
|
||||
public decimal? Atlag { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloAtlagAlakulasa)]
|
||||
public List<AtlagAlakulasaResponseDto> AtlagAlakulasaIdoFuggvenyeben { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.SulyozottOsztalyzatOsszege)]
|
||||
public decimal? SulyozottOsztalyzatOsszege { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.SulyozottOsztalyzatSzama)]
|
||||
public decimal? SulyozottOsztalyzatSzama { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.RendezesiIndex)]
|
||||
public int SortIndex { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto("ListAktualisTanuloTantargyiAtlag", new SajatTantargyiAtlagListRequestDto
|
||||
{
|
||||
OktatasiNevelesiFeladatUid = new OktatasiNevelesiFeladatUid((int)OktatasiNevelesiFeladatEnum.technikum, OktatasiNevelesiFeladatEnum.technikum).UidRaw
|
||||
});
|
||||
|
||||
public static implicit operator SajatTantargyiAtlagListResponseDto(TantargyiAtlagListResponse model) => new SajatTantargyiAtlagListResponseDto
|
||||
{
|
||||
Uid = model.Tantargy.Uid.UidRaw,
|
||||
Tantargy = model.Tantargy,
|
||||
Atlag = model.Atlag,
|
||||
AtlagAlakulasaIdoFuggvenyeben = ModelToDto(model.AtlagAlakulasaIdoFuggvenyeben),
|
||||
SulyozottOsztalyzatOsszege = model.SulyozottOsztalyzatOsszege,
|
||||
SulyozottOsztalyzatSzama = model.SulyozottOsztalyzatSzama,
|
||||
SortIndex = model.SortIndex
|
||||
};
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.TantargyiAtlag;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles
|
||||
{
|
||||
public class TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagRequestDto
|
||||
{
|
||||
public TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagRequestDto(string uidRaw)
|
||||
{
|
||||
OsztalyCsoportUid = uidRaw;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Az osztály egyedi azonosítója, csak aktív lehet
|
||||
/// </summary>
|
||||
public string OsztalyCsoportUid { get; set; }
|
||||
|
||||
public static implicit operator TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagRequest(TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagRequestDto dto)
|
||||
=> new TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagRequest(dto.OsztalyCsoportUid);
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.TantargyiAtlag;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Dto.VN.Tantargy;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.TantargyiAtlag
|
||||
{
|
||||
public class TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargy)]
|
||||
public TantargyResponseDto Tantargy { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.TanuloAtlagErteke)]
|
||||
public decimal? TanuloAtlag { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyCsoportAtlag)]
|
||||
public decimal? OsztalyCsoportAtlag { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyCsoportAtlagtolValoElteres)]
|
||||
public decimal? OsztalyCsoportAtlagtolValoElteres { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListOsztalyAtlag", "414768");
|
||||
|
||||
public static implicit operator TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagResponseDto(TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagResponse model)
|
||||
=> new TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagResponseDto
|
||||
{
|
||||
Uid = model.Tantargy.Uid.UidRaw,
|
||||
Tantargy = model.Tantargy,
|
||||
TanuloAtlag = model.TanuloAtlag,
|
||||
OsztalyCsoportAtlag = model.OsztalyCsoportAtlag,
|
||||
OsztalyCsoportAtlagtolValoElteres = model.OsztalyCsoportAtlagtolValoElteres
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user