This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,27 @@
using System;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny.Hetirend;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny.Hetirend
{
public class HetirendListRequestDto
{
/// <summary>
/// Záró időpont (UTC ISO 8601) (A filter zárt intervallumot határoz meg)
/// </summary>
[Required]
public DateTime OrarendElemVegNapDatuma { get; set; }
/// <summary>
/// Kezdő időpont (UTC ISO 8601) (A filter zárt intervallumot határoz meg)
/// </summary>
[Required]
public DateTime OrarendElemKezdoNapDatuma { get; set; }
public static implicit operator HetirendListRequest(HetirendListRequestDto dto) => new HetirendListRequest
{
OrarendElemVegNapDatuma = dto.OrarendElemVegNapDatuma.ToLocalTime(),
OrarendElemKezdoNapDatuma = dto.OrarendElemKezdoNapDatuma.ToLocalTime()
};
}
}

View file

@ -0,0 +1,48 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny.Hetirend;
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
using Kreta.Ellenorzo.Dto.VN.Utility;
using Kreta.Enums;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny.Hetirend
{
public class HetirendListResponseDto : IDtoListDocumentation
{
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
public string Uid { get; set; }
[Required, Description("Az entitás kezdő napja " + DescriptionLookUp.ShortDateTimeUtcIso)]
public DateTime KezdoNapDatuma { get; set; }
[Required, Description("Az entitás végének napja " + DescriptionLookUp.ShortDateTimeUtcIso)]
public DateTime VegNapDatuma { get; set; }
[Required, Description("A hét sorszáma a tanév kezdetétől számítva")]
public int HetSorszama { get; set; }
[Required, Description(DescriptionLookUp.EntitasTipusa)]
public AdatszotarResponseDto<HetiRendTipusEnum> Tipus { get; set; }
public DocumentationExampleDto ListExample
=> new DocumentationExampleDto(
"ListHetirend",
new HetirendListRequestDto
{
OrarendElemKezdoNapDatuma = new DateTime(2021, 3, 2, 0, 0, 0),
OrarendElemVegNapDatuma = new DateTime(2021, 3, 21, 0, 0, 0)
});
public static implicit operator HetirendListResponseDto(HetirendListResponse model) => new HetirendListResponseDto
{
Uid = model.Uid.UidRaw,
KezdoNapDatuma = model.KezdoNapDatuma.ToIso8601Utc(),
VegNapDatuma = model.VegNapDatuma.ToIso8601Utc(),
HetSorszama = model.HetSorszama,
Tipus = AdatszotarResponseDto<HetiRendTipusEnum>.Create(model.Tipus)
};
}
}

View file

@ -0,0 +1,37 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
using Kreta.Ellenorzo.Dto.VN.Intezmeny.Rendszermodul;
using Kreta.Ellenorzo.Dto.VN.Intezmeny.TestreszabasBeallitasok;
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny
{
public class IntezmenyListResponseDto : IDtoListDocumentation
{
public DocumentationExampleDto ListExample => new DocumentationExampleDto("GetIntezmeny", null);
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
public string Uid { get; set; }
[Required, Description(DescriptionLookUp.IntezmenyRovidNev)]
public string RovidNev { get; set; }
[Required, Description(DescriptionLookUp.Rendszermodul)]
public HashSet<RendszermodulListResponseDto> Rendszermodulok { get; set; }
[Required, Description(DescriptionLookUp.TestreszabasBeallitasok)]
public TestreszabasBeallitasokResponseDto TestreszabasBeallitasok { get; set; }
public static implicit operator IntezmenyListResponseDto(IntezmenyResponse model) => new IntezmenyListResponseDto
{
Uid = model.IntezmenyAdatok.Uid.UidRaw,
RovidNev = model.IntezmenyAdatok.RovidNev ?? model.IntezmenyAdatok.TeljesNev,
Rendszermodulok = ModelToDto(model.Rendszermodulok),
TestreszabasBeallitasok = model.TestreszabasBeallitasok
};
}
}

View file

@ -0,0 +1,32 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny.Rendszermodul;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
using Kreta.Ellenorzo.Enums.VN;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny.Rendszermodul
{
public class RendszermodulListResponseDto : IDtoListDocumentation
{
[Required, Description(DescriptionLookUp.IsAktivRendszermodul)]
public bool IsAktiv { get; set; }
[Description(DescriptionLookUp.EnumErtek), JsonConverter(typeof(StringEnumConverter))]
public RendszermodulTipus Tipus { get; set; }
[Description(DescriptionLookUp.RendszermodulURL)]
public string Url { get; set; }
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListRendszermodul", null);
public static implicit operator RendszermodulListResponseDto(RendszermodulListResponse model) => new RendszermodulListResponseDto
{
IsAktiv = model.IsAktiv,
Tipus = model.Tipus,
Url = model.Url
};
}
}

View file

@ -0,0 +1,46 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny.TanevRendje;
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.Utility;
using Kreta.Enums;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny.TanevRendje
{
public class TanevRendjeListResponseDto : IDtoListDocumentation
{
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
public string Uid { get; set; }
[Required, Description(DescriptionLookUp.EntitasDatumaShortDateTime)]
public DateTime Datum { get; set; }
[Required, Description("Meghatározza a " + nameof(Datum) + " property napjának naptípusát")]
public AdatszotarResponseDto<NapTipusEnum> Naptipus { get; set; }
[Description("Amennyiben a eltérő a " + nameof(Datum) + " property által meghatározott naptól eltérő lett megadva kap értéket, egyébként -> null")]
public AdatszotarResponseDto<HetNapjaTipusEnum> ElteroOrarendSzerintiTanitasiNap { get; set; }
[Required, Description("Az órarendi nap (" + nameof(Datum) + ") property által meghatározott HetirendElem típusa")]
public AdatszotarResponseDto<HetiRendTipusEnum> OrarendiNapHetirendje { get; set; }
[Description(DescriptionLookUp.EntitashozRogzitettOsztalyCsoportNullErtekkel)]
public OsztalyCsoportSimplifiedResponseDto OsztalyCsoport { get; set; }
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListTanevRendje", null);
public static implicit operator TanevRendjeListResponseDto(TanevRendjeListResponse model) => new TanevRendjeListResponseDto
{
Uid = model.Uid.UidRaw,
Datum = model.Datum.ToIso8601Utc(),
Naptipus = AdatszotarResponseDto<NapTipusEnum>.Create(model.Naptipus),
ElteroOrarendSzerintiTanitasiNap = AdatszotarResponseDto<HetNapjaTipusEnum>.Create(model.ElteroOrarendSzerintiTanitasiNap),
OrarendiNapHetirendje = AdatszotarResponseDto<HetiRendTipusEnum>.Create(model.OrarendiNapHetirendje),
OsztalyCsoport = model.OsztalyCsoport
};
}
}

View file

@ -0,0 +1,39 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Intezmeny.TestreszabasBeallitasok;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
using Kreta.Ellenorzo.Dto.VN.Utility;
namespace Kreta.Ellenorzo.Dto.VN.Intezmeny.TestreszabasBeallitasok
{
public class TestreszabasBeallitasokResponseDto : IDtoDocumentation
{
[Required, Description(DescriptionLookUp.IsDiakRogzithetHaziFeladatot)]
public bool IsDiakRogzithetHaziFeladatot { get; set; }
[Required, Description(DescriptionLookUp.IsTanorakTemajaMegtekinthetoEllenozoben)]
public bool IsTanorakTemajaMegtekinthetoEllenorzoben { get; set; }
[Required, Description(DescriptionLookUp.IsOsztalyAtlagMegjeleniteseEllenorzoben)]
public bool IsOsztalyAtlagMegjeleniteseEllenorzoben { get; set; }
[Required, Description(DescriptionLookUp.ErtekelesekMegjelenitesenekKesleltetesenekMerteke)]
public int ErtekelesekMegjelenitesenekKesleltetesenekMerteke { get; set; }
[Required, Description(DescriptionLookUp.KovetkezoTelepitesDatuma)]
public DateTime KovetkezoTelepitesDatuma { get; set; }
public DocumentationExampleDto Example => new DocumentationExampleDto("GetTestreszabasBeallitasok", null);
public static implicit operator TestreszabasBeallitasokResponseDto(TestreszabasBeallitasokResponse model) => new TestreszabasBeallitasokResponseDto
{
IsDiakRogzithetHaziFeladatot = model.IsDiakRogzithetHaziFeladatot,
IsTanorakTemajaMegtekinthetoEllenorzoben = model.IsTanorakTemajaMegtekinthetoEllenorzoben,
IsOsztalyAtlagMegjeleniteseEllenorzoben = model.IsOsztalyAtlagMegjeleniteseEllenorzoben,
ErtekelesekMegjelenitesenekKesleltetesenekMerteke = model.ErtekelesekMegjelenitesenekKesleltetesenekMerteke,
KovetkezoTelepitesDatuma = model.KovetkezoTelepitesDatuma.ToIso8601Utc()
};
}
}