init
This commit is contained in:
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
|
||||
};
|
||||
}
|
||||
}
|
|
@ -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()
|
||||
};
|
||||
}
|
||||
}
|
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles
|
||||
{
|
||||
public class ErtekelesListRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Végdátum (ShortDateTime, UTC ISO 8601) is még a lekérdezés része (zárt intervallumon működik a szűrés)
|
||||
/// </summary>
|
||||
public DateTime? DatumIg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Kezdő dátum (ShortDateTime, UTC ISO 8601) is már a lekérdezés része (zárt intervallumon működik a szűrés)
|
||||
/// </summary>
|
||||
public DateTime? DatumTol { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Uid filter (Id,ErtekelesJelleg)
|
||||
/// </summary>
|
||||
public string Uid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// TantargyUid filter pontosvesszővel elválasztva
|
||||
/// </summary>
|
||||
public string TantargyUids { get; set; }
|
||||
|
||||
public static implicit operator ErtekelesListRequest(ErtekelesListRequestDto dto)
|
||||
=> dto == null ? new ErtekelesListRequestDto() : new ErtekelesListRequest(dto.Uid, dto.TantargyUids)
|
||||
{
|
||||
DatumTol = dto.DatumTol,
|
||||
DatumIg = dto.DatumIg
|
||||
};
|
||||
}
|
||||
}
|
|
@ -0,0 +1,106 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Dto.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Tantargy;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using Kreta.Enums;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using ErtekelesErtekFajta = Kreta.Ellenorzo.Enums.VN.ErtekelesErtekFajta;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ertekeles
|
||||
{
|
||||
public class ErtekelesListResponseDto : IDtoListDocumentation, IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasDatumaShortDateTime)]
|
||||
public DateTime RogzitesDatuma { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasLetrehozasanakDatuma)]
|
||||
public DateTime KeszitesDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasLattamozasanakDatuma)]
|
||||
public DateTime? LattamozasDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitashozRogzitettTantargy)]
|
||||
public TantargyResponseDto Tantargy { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasTemaja + "; az értékelés rögzítőjének nem kötelező megadnia.")]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasTipusa + "; Admin vehet fel egyedi értékelés típust")]
|
||||
public AdatszotarResponseDto<ErtekelesTipusEnum> Tipus { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasModja + "; Admin vehet fel egyedi értékelés módot. Null, amennyiben a " + nameof(Tipus) + " != " + nameof(ErtekelesTipusEnum.evkozi_jegy_ertekeles) +
|
||||
" vagy a " + nameof(Jelleg) + " != " + nameof(ErtekelesJelleg.Ertekeles))]
|
||||
public AdatszotarResponseDto<ErtekelesModEnum> Mod { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesErtekFajta)]
|
||||
public AdatszotarResponseDto<ErtekelesErtekFajta> ErtekFajta { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitastRogzitoTanarNeve)]
|
||||
public string ErtekeloTanarNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasJellege), JsonConverter(typeof(StringEnumConverter))]
|
||||
public ErtekelesJelleg Jelleg { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzamErtek +
|
||||
"<br>Akkor van értéke, ha az " + nameof(ErtekFajta) + " " + nameof(ErtekelesErtekFajta.Osztalyzat) + " vagy " + nameof(ErtekelesErtekFajta.Szazalekos) + ", egyébként Null.")]
|
||||
public int? SzamErtek { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesSzovegesErtek + ";<br> decoded HTML - ként küldi a BE")]
|
||||
public string SzovegesErtek { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSulya)]
|
||||
public int? SulySzazalekErteke { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzovegesErtekelesRovidNev)]
|
||||
public string SzovegesErtekelesRovidNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettOsztalyCsoport)]
|
||||
public OsztalyCsoportSimplifiedResponseDto OsztalyCsoport { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.RendezesiIndex)]
|
||||
public int SortIndex { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListErtekeles",
|
||||
new ErtekelesListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 9, 10, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 9, 18, 0, 0, 0)
|
||||
});
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetErtekeles", $"29316526{Constant.UidInnerDelimiter}Ertekeles");
|
||||
|
||||
public static implicit operator ErtekelesListResponseDto(ErtekelesListResponse model) => model == null ? null : new ErtekelesListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
RogzitesDatuma = model.Datum.ToIso8601Utc(),
|
||||
KeszitesDatuma = model.KeszitesDatum.ToIso8601Utc(),
|
||||
LattamozasDatuma = model.LattamozasDatuma?.ToIso8601Utc(),
|
||||
Tantargy = model.Tantargy,
|
||||
Tema = model.Tema,
|
||||
Tipus = AdatszotarResponseDto<ErtekelesTipusEnum>.Create(model.Tipus),
|
||||
Mod = AdatszotarResponseDto<ErtekelesModEnum>.Create(model.Mod),
|
||||
ErtekFajta = AdatszotarResponseDto<ErtekelesErtekFajta>.Create(model.ErtekFajta),
|
||||
ErtekeloTanarNeve = model.ErtekeloTanar.Nev,
|
||||
Jelleg = model.Uid.Jelleg,
|
||||
SzamErtek = model.SzamErtek,
|
||||
SzovegesErtek = model.SzovegesErtek,
|
||||
SulySzazalekErteke = model.SulySzazalekErteke,
|
||||
SzovegesErtekelesRovidNev = model.SzovegesErtekelesRovidNev,
|
||||
OsztalyCsoport = model.OsztalyCsoport,
|
||||
SortIndex = model.SortIndex
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue