init
This commit is contained in:
@@ -0,0 +1,177 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{757DB990-1AD3-4B0A-82FB-353DD961042F}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Kreta.Ellenorzo.Dto</RootNamespace>
|
||||
<AssemblyName>Kreta.Ellenorzo.Dto</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>..\Kreta.Ellenorzo.WebApi\App_Data\Kreta.Ellenorzo.Dto.xml</DocumentationFile>
|
||||
<NoWarn>1591</NoWarn>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AutoFixture, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b24654c590009d4f, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\AutoFixture.4.2.0\lib\net452\AutoFixture.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Swashbuckle.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd1bb07a5ac7c7bc, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\Swashbuckle.Core.5.6.0\lib\net40\Swashbuckle.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Swashbuckle.Examples, Version=3.12.0.0, Culture=neutral, PublicKeyToken=aa1e9c5053bfbe95, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\Swashbuckle.Examples.3.12.0\lib\net40\Swashbuckle.Examples.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net.Http.Formatting, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\Microsoft.AspNet.WebApi.Client.5.2.6\lib\net45\System.Net.Http.Formatting.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.WebRequest" />
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.Web.Http, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\..\packages\Microsoft.AspNet.WebApi.Core.5.2.6\lib\net45\System.Web.Http.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\..\Tools\SharedAssemblyInfo.cs">
|
||||
<Link>Properties\SharedAssemblyInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="VN\Attributes\SwaggerChangeTypeAttribute.cs" />
|
||||
<Compile Include="VN\Converter\UidConverter.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Gondviselo\GondviseloBaseAdatlapRequestDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\NapiErtesitesOsszefoglaloResponseDto.cs" />
|
||||
<Compile Include="VN\Lep\EloadasResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Gondviselo\GondviseloAdatokResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Gondviselo\RegisztracioRequestDto.cs" />
|
||||
<Compile Include="VN\HaziFeladat\Csatolmany\CsatolmanySimplifiedResponseDto.cs" />
|
||||
<Compile Include="VN\Documentation\DescriptionLookUp.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="VN\BejelentettSzamonkeres\BejelentettSzamonkeresListResponseDto.cs" />
|
||||
<Compile Include="VN\BejelentettSzamonkeres\BejelentettSzamonkeresListRequestDto.cs" />
|
||||
<Compile Include="VN\Constant.cs" />
|
||||
<Compile Include="VN\Converter\ResponseModelConverter.cs" />
|
||||
<Compile Include="VN\Documentation\DocumentationExampleDto.cs" />
|
||||
<Compile Include="VN\Adatszotar\AdatszotarResponseDto.cs" />
|
||||
<Compile Include="VN\Email\EmailResponseDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\Atlag\OsztalyAtlag\SajatOsztalyAtlagListRequestDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\Atlag\OsztalyAtlag\SajatOsztalyAtlagListResponseDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\Atlag\TantargyiAtlag\SajatTantargyiAtlagListRequestDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\Atlag\TantargyiAtlag\TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagRequestDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\Atlag\TantargyiAtlag\TanuloOsztalyCsoporthozViszonyitottTantargyiAtlagResponseDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\Atlag\TantargyiAtlag\SajatTantargyiAtlagListResponseDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\ErtekelesListResponseDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\ErtekelesListRequestDto.cs" />
|
||||
<Compile Include="VN\Exception\EllenorzoExceptionResponseDto.cs" />
|
||||
<Compile Include="VN\Faliujsag\FaliujsagListRequestDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Alkalmazott\AlkalmazottListResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Alkalmazott\Tanar\Osztalyfonok\OsztalyfonokHelyettesSimplifiedResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Alkalmazott\Tanar\Osztalyfonok\OsztalyfonokListRequestDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Alkalmazott\Tanar\Osztalyfonok\OsztalyfonokListResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Alkalmazott\Tanar\TanarListResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Alkalmazott\Tanar\TanarSimplifiedResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\BankszamlaResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\BankszamlaRequestDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\ElerhetosegRequestDto.cs" />
|
||||
<Compile Include="VN\Fogadoora\FogadooraIdopontResponseDto.cs" />
|
||||
<Compile Include="VN\Fogadoora\FogadooraIdopontJelentkezesCreateRequestDto.cs" />
|
||||
<Compile Include="VN\Fogadoora\FogadooraListRequestDto.cs" />
|
||||
<Compile Include="VN\Fogadoora\FogadooraListResponseDto.cs" />
|
||||
<Compile Include="VN\Fogadoora\FogadooraResponseDto.cs" />
|
||||
<Compile Include="VN\Fogadoora\Idopont\FogadooraIdopontJelentkezesDeleteRequestDto.cs" />
|
||||
<Compile Include="VN\HaziFeladat\HaziFeladatDetailResponseDto.cs" />
|
||||
<Compile Include="VN\Interfaces\IDtoListDocumentation.cs" />
|
||||
<Compile Include="VN\Interfaces\IDtoDocumentation.cs" />
|
||||
<Compile Include="VN\Intezmeny\Hetirend\HetirendListRequestDto.cs" />
|
||||
<Compile Include="VN\Intezmeny\Hetirend\HetirendListResponseDto.cs" />
|
||||
<Compile Include="VN\Intezmeny\IntezmenyListResponseDto.cs" />
|
||||
<Compile Include="VN\Intezmeny\Rendszermodul\RendszermodulListResponseDto.cs" />
|
||||
<Compile Include="VN\Intezmeny\TanevRendje\TanevRendjeListResponseDto.cs" />
|
||||
<Compile Include="VN\Intezmeny\TestreszabasBeallitasok\TestreszabasBeallitasokResponseDto.cs" />
|
||||
<Compile Include="VN\Csatolmany\CsatolmanySimplifiedResponseDto.cs" />
|
||||
<Compile Include="VN\Lep\GondviseloEngedelyezesRequestDto.cs" />
|
||||
<Compile Include="VN\Orarend\OrarendElemGetRequestDto.cs" />
|
||||
<Compile Include="VN\Ora\TanitasiOra\TanitasiOraResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Alkalmazott\Tanar\Osztalyfonok\OsztalyfonokSimplifiedResponseDto.cs" />
|
||||
<Compile Include="VN\OsztalyCsoport\OsztalyCsoportSimplifiedResponseDto.cs" />
|
||||
<Compile Include="VN\OsztalyCsoport\OsztalyCsoportResponseDto.cs" />
|
||||
<Compile Include="VN\OsztalyCsoport\OsztalyCsoportTagsagResponseDto.cs" />
|
||||
<Compile Include="VN\OsztalyCsoport\OsztalyfonokOsztalyCsoportListResponseDto.cs" />
|
||||
<Compile Include="VN\OsztalyCsoport\TanuloOsztalyCsoportListResponseDto.cs" />
|
||||
<Compile Include="VN\Ertekeles\Atlag\TantargyiAtlag\AtlagAlakulasaResponseDto.cs" />
|
||||
<Compile Include="VN\Tantargy\TantargyResponseDto.cs" />
|
||||
<Compile Include="VN\Feljegyzes\FeljegyzesListRequestDto.cs" />
|
||||
<Compile Include="VN\Feljegyzes\FeljegyzesListResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Tanulo\GondviseloGetResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Tanulo\OsztalyfonokGetResponseDto.cs" />
|
||||
<Compile Include="VN\Felhasznalo\Tanulo\TanuloGetResponseDto.cs" />
|
||||
<Compile Include="VN\Faliujsag\FaliujsagListResponseDto.cs" />
|
||||
<Compile Include="VN\Mulasztas\MulasztasListRequestDto.cs" />
|
||||
<Compile Include="VN\Mulasztas\MulasztasListResponseDto.cs" />
|
||||
<Compile Include="VN\HaziFeladat\HaziFeladatListRequestDto.cs" />
|
||||
<Compile Include="VN\HaziFeladat\HaziFeladatListResponseDto.cs" />
|
||||
<Compile Include="VN\Orarend\OrarendElemListRequestDto.cs" />
|
||||
<Compile Include="VN\Orarend\OrarendElemListResponseDto.cs" />
|
||||
<Compile Include="VN\Telefon\TelefonResponseDto.cs" />
|
||||
<Compile Include="VN\Terem\TeremSimplifiedResponseDto.cs" />
|
||||
<Compile Include="VN\UniqueIdentifier\OrarendElemUidDto.cs" />
|
||||
<Compile Include="VN\Utility\Extensions.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Kreta.Core\Kreta.Core.csproj">
|
||||
<Project>{57418D3E-CAF1-482C-9B18-85D147ABD495}</Project>
|
||||
<Name>Kreta.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Kreta.Ellenorzo.Domain\Kreta.Ellenorzo.Domain.csproj">
|
||||
<Project>{920ddac6-e3e7-4928-a9b3-2d84daf6d5b4}</Project>
|
||||
<Name>Kreta.Ellenorzo.Domain</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Kreta.Ellenorzo.Enum\Kreta.Ellenorzo.Enums.csproj">
|
||||
<Project>{E8717728-75CA-4F4A-B23D-53C593FF0840}</Project>
|
||||
<Name>Kreta.Ellenorzo.Enums</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Kreta.Enums\Kreta.Enums.csproj">
|
||||
<Project>{1D5E0AC2-DFAB-4D32-9AD1-B5788A7D06BD}</Project>
|
||||
<Name>Kreta.Enums</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Adatszotar;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Adatszotar
|
||||
{
|
||||
public class AdatszotarResponseDto<T> where T : Enum
|
||||
{
|
||||
private AdatszotarResponseDto()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adatszótár elem uid vagy enum int value
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Uid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Adatszótár neve vagy enum value; Egyedileg admin által rögzített adatszótár elem esetén AdatszotarElem
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Nev { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Felhasználó számára megjeleníthető szöveges érték
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string Leiras { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
|
||||
public static AdatszotarResponseDto<T> Create(Adatszotar<T> model)
|
||||
=> model == null ? null :
|
||||
new AdatszotarResponseDto<T>
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Uid.Nev,
|
||||
Leiras = model.Leiras
|
||||
};
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
|
||||
public static Adatszotar<T> Create(AdatszotarResponseDto<T> dto)
|
||||
=> dto == null ? null : new Adatszotar<T>(Convert.ToInt32(dto.Uid));
|
||||
|
||||
public static implicit operator int(AdatszotarResponseDto<T> @enum) => Convert.ToInt32(@enum.Uid);
|
||||
|
||||
public static implicit operator int?(AdatszotarResponseDto<T> @enum) => Convert.ToInt32(@enum?.Uid);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Property)]
|
||||
public sealed class SwaggerChangeTypeAttribute : Attribute
|
||||
{
|
||||
public Type NewType { get; set; }
|
||||
|
||||
public SwaggerChangeTypeAttribute(Type newType)
|
||||
{
|
||||
NewType = newType;
|
||||
}
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Kreta.Ellenorzo.Domain.VN.BejelentettSzamonkeres;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.BejelentettSzamonkeres
|
||||
{
|
||||
public class BejelentettSzamonkeresListRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Végdátum (UTC ISO 8601, BE ShortDateTime-ra normalizálja) 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 (UTC ISO 8601, BE ShortDateTime-ra normalizálja) 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 lista filter pontosvesszővel elválasztva
|
||||
/// </summary>
|
||||
public string Uids { get; set; }
|
||||
|
||||
public static implicit operator BejelentettSzamonkeresListRequest(BejelentettSzamonkeresListRequestDto dto)
|
||||
=> dto == null ? new BejelentettSzamonkeresListRequest() : new BejelentettSzamonkeresListRequest(dto.Uids)
|
||||
{
|
||||
DatumTol = dto.DatumTol?.Date,
|
||||
DatumIg = dto.DatumIg?.Date
|
||||
};
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.BejelentettSzamonkeres;
|
||||
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;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.BejelentettSzamonkeres
|
||||
{
|
||||
public class BejelentettSzamonkeresListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasDatumaShortDateTime)]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasLetrehozasanakDatuma)]
|
||||
public DateTime BejelentesDatuma { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitastRogzitoTanarNeve)]
|
||||
public string RogzitoTanarNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasOraszamaAzAdottNapon)]
|
||||
public int OrarendiOraOraszama { get; set; }
|
||||
|
||||
////[Required, Description(DescriptionLookUp.EntitasMelyikNapraEsik)]
|
||||
////public AdatszotarResponseDto<HetNapjaTipusEnum> HetNapja { get; set; }
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargy)]
|
||||
public TantargyResponseDto Tantargy { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargyNeve)]
|
||||
public string TantargyNeve { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.BejelentettSzamonkeresTemaja)]
|
||||
public string Temaja { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasModja)]
|
||||
public AdatszotarResponseDto<ErtekelesModEnum> Modja { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettOsztalyCsoport)]
|
||||
public OsztalyCsoportSimplifiedResponseDto OsztalyCsoport { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListBejelentettSzamonkeres",
|
||||
new BejelentettSzamonkeresListRequestDto
|
||||
{
|
||||
Uids = $"10460{Constant.UidDelimiter}10461",
|
||||
DatumTol = new DateTime(2021, 9, 2, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 9, 21, 0, 0, 0)
|
||||
});
|
||||
|
||||
public static implicit operator BejelentettSzamonkeresListResponseDto(BejelentettSzamonkeresListResponse model) => new BejelentettSzamonkeresListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Datum = model.Datum.ToIso8601Utc(),
|
||||
BejelentesDatuma = model.BejelentesDatuma.ToIso8601Utc(),
|
||||
////HetNapja = AdatszotarResponseDto<HetNapjaTipusEnum>.Create(model.HetNapja),
|
||||
RogzitoTanarNeve = model.RogzitoTanar.Nev,
|
||||
OrarendiOraOraszama = model.OrarendiOraOraszama,
|
||||
Tantargy = model.Tantargy,
|
||||
TantargyNeve = model.Tantargy.Nev,
|
||||
Temaja = model.SzamonkeresTemaja,
|
||||
Modja = AdatszotarResponseDto<ErtekelesModEnum>.Create(model.SzamonkeresModja),
|
||||
OsztalyCsoport = model.OsztalyCsoport
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace Kreta.Ellenorzo.Dto.VN
|
||||
{
|
||||
public static class Constant
|
||||
{
|
||||
public static readonly string ResponseSuffix = "Dto";
|
||||
|
||||
public static readonly char UidDelimiter = ';';
|
||||
|
||||
public static readonly char UidInnerDelimiter = ',';
|
||||
|
||||
public static readonly string WebApiDefaultNamespace = "Kreta.Ellenorzo.WebApi.VN.Controllers";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Kreta.Ellenorzo.Domain.VN.BejelentettSzamonkeres;
|
||||
using Kreta.Ellenorzo.Domain.VN.Csatolmany;
|
||||
using Kreta.Ellenorzo.Domain.VN.Email;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.OsztalyAtlag;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ertekeles.Atlag.TantargyiAtlag;
|
||||
using Kreta.Ellenorzo.Domain.VN.Faliujsag;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Domain.VN.Feljegyzes;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Domain.VN.HaziFeladat;
|
||||
using Kreta.Ellenorzo.Domain.VN.Intezmeny;
|
||||
using Kreta.Ellenorzo.Domain.VN.Intezmeny.Hetirend;
|
||||
using Kreta.Ellenorzo.Domain.VN.Intezmeny.Rendszermodul;
|
||||
using Kreta.Ellenorzo.Domain.VN.Intezmeny.TanevRendje;
|
||||
using Kreta.Ellenorzo.Domain.VN.Lep;
|
||||
using Kreta.Ellenorzo.Domain.VN.Mulasztas;
|
||||
using Kreta.Ellenorzo.Domain.VN.Orarend;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Domain.VN.Telefon;
|
||||
using Kreta.Ellenorzo.Dto.VN.BejelentettSzamonkeres;
|
||||
using Kreta.Ellenorzo.Dto.VN.Csatolmany;
|
||||
using Kreta.Ellenorzo.Dto.VN.Email;
|
||||
using Kreta.Ellenorzo.Dto.VN.Ertekeles;
|
||||
using Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.OsztalyAtlag;
|
||||
using Kreta.Ellenorzo.Dto.VN.Ertekeles.Atlag.TantargyiAtlag;
|
||||
using Kreta.Ellenorzo.Dto.VN.Faliujsag;
|
||||
using Kreta.Ellenorzo.Dto.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar.OsztalyFonok;
|
||||
using Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Feljegyzes;
|
||||
using Kreta.Ellenorzo.Dto.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Dto.VN.HaziFeladat;
|
||||
using Kreta.Ellenorzo.Dto.VN.Intezmeny;
|
||||
using Kreta.Ellenorzo.Dto.VN.Intezmeny.Hetirend;
|
||||
using Kreta.Ellenorzo.Dto.VN.Intezmeny.Rendszermodul;
|
||||
using Kreta.Ellenorzo.Dto.VN.Intezmeny.TanevRendje;
|
||||
using Kreta.Ellenorzo.Dto.VN.Lep;
|
||||
using Kreta.Ellenorzo.Dto.VN.Mulasztas;
|
||||
using Kreta.Ellenorzo.Dto.VN.Orarend;
|
||||
using Kreta.Ellenorzo.Dto.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Telefon;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Converter
|
||||
{
|
||||
/// <summary>
|
||||
/// Author: Kovács Kornél (DevKornél) Created On: 2019.06.
|
||||
/// This registers the converter functions called ModelToDto, but it's not mandatory to do.
|
||||
/// </summary>
|
||||
public static class ResponseModelConverter
|
||||
{
|
||||
public static HashSet<BejelentettSzamonkeresListResponseDto> ModelToDto(IEnumerable<BejelentettSzamonkeresListResponse> model)
|
||||
=> model.ConvertAll(new Converter<BejelentettSzamonkeresListResponse, BejelentettSzamonkeresListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static List<SajatTantargyiAtlagListResponseDto> ModelToDto(List<TantargyiAtlagListResponse> model)
|
||||
=> model.ConvertAll(new Converter<TantargyiAtlagListResponse, SajatTantargyiAtlagListResponseDto>((x) => x));
|
||||
|
||||
public static HashSet<SajatOsztalyAtlagListResponseDto> ModelToDto(HashSet<OsztalyAtlagListResponse> model)
|
||||
=> model.ConvertAll(new Converter<OsztalyAtlagListResponse, SajatOsztalyAtlagListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<ErtekelesListResponseDto> ModelToDto(HashSet<ErtekelesListResponse> model)
|
||||
=> model.ConvertAll(new Converter<ErtekelesListResponse, ErtekelesListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static List<TelefonResponseDto> ModelToDto(List<TelefonResponse> model) => model.ConvertAll(new Converter<TelefonResponse, TelefonResponseDto>((x) => x));
|
||||
|
||||
public static List<EmailResponseDto> ModelToDto(List<EmailResponse> model) => model.ConvertAll(new Converter<EmailResponse, EmailResponseDto>((x) => x));
|
||||
|
||||
public static HashSet<OsztalyfonokListResponseDto> ModelToDto(IEnumerable<OsztalyfonokListResponse> model)
|
||||
=> model.ConvertAll(new Converter<OsztalyfonokListResponse, OsztalyfonokListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<OsztalyCsoportTagsagResponseDto> ModelToDto(IEnumerable<OsztalyCsoportTagsagResponse> model)
|
||||
=> model.ConvertAll(new Converter<OsztalyCsoportTagsagResponse, OsztalyCsoportTagsagResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<FaliujsagListResponseDto> ModelToDto(IEnumerable<FaliujsagListResponse> model)
|
||||
=> model.ConvertAll(new Converter<FaliujsagListResponse, FaliujsagListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<FeljegyzesListResponseDto> ModelToDto(IEnumerable<FeljegyzesListResponse> model) => model.ConvertAll(new Converter<FeljegyzesListResponse, FeljegyzesListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<GondviseloGetResponseDto> ModelToDto(IEnumerable<GondviseloGetResponse> model) => model.ConvertAll(new Converter<GondviseloGetResponse, GondviseloGetResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<FogadooraListResponseDto> ModelToDto(IEnumerable<FogadooraListResponse> model)
|
||||
=> model.ConvertAll(new Converter<FogadooraListResponse, FogadooraListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static List<FogadooraResponseDto> ModelToDto(List<FogadooraResponse> model)
|
||||
=> model.ConvertAll(new Converter<FogadooraResponse, FogadooraResponseDto>((x) => x));
|
||||
|
||||
public static List<FogadooraIdopontResponseDto> ModelToDto(List<FogadooraIdopontResponse> model)
|
||||
=> model.ConvertAll(new Converter<FogadooraIdopontResponse, FogadooraIdopontResponseDto>((x) => x));
|
||||
|
||||
public static HashSet<HaziFeladatListResponseDto> ModelToDto(IEnumerable<HaziFeladatListResponse> model)
|
||||
=> model.ConvertAll(new Converter<HaziFeladatListResponse, HaziFeladatListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static IEnumerable<HaziFeladat.Csatolmany.CsatolmanySimplifiedResponseDto> ModelToDto(IEnumerable<Domain.VN.HaziFeladat.Csatolmany.CsatolmanySimplifiedResponse> model)
|
||||
=> model.ConvertAll(new Converter<Domain.VN.HaziFeladat.Csatolmany.CsatolmanySimplifiedResponse, HaziFeladat.Csatolmany.CsatolmanySimplifiedResponseDto>((x) => x));
|
||||
|
||||
public static HashSet<HetirendListResponseDto> ModelToDto(IEnumerable<HetirendListResponse> model) => model.ConvertAll(new Converter<HetirendListResponse, HetirendListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<MulasztasListResponseDto> ModelToDto(IEnumerable<MulasztasListResponse> model) => model.ConvertAll(new Converter<MulasztasListResponse, MulasztasListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<OrarendElemListResponseDto> ModelToDto(IEnumerable<OrarendElemListResponse> model) => model.ConvertAll(new Converter<OrarendElemListResponse, OrarendElemListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<TanevRendjeListResponseDto> ModelToDto(IEnumerable<TanevRendjeListResponse> model)
|
||||
=> model.ConvertAll(new Converter<TanevRendjeListResponse, TanevRendjeListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static HashSet<RendszermodulListResponseDto> ModelToDto(IEnumerable<RendszermodulListResponse> model)
|
||||
=> model.ConvertAll(new Converter<RendszermodulListResponse, RendszermodulListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static List<AtlagAlakulasaResponseDto> ModelToDto(List<AtlagAlakulasaResponse> model)
|
||||
=> model.ConvertAll(new Converter<AtlagAlakulasaResponse, AtlagAlakulasaResponseDto>((x) => x));
|
||||
|
||||
public static HashSet<TanuloOsztalyCsoportListResponseDto> ModelToDtoForTanulo(IEnumerable<OsztalyCsoportListResponse> model)
|
||||
=> model.ConvertAll(new Converter<OsztalyCsoportListResponse, TanuloOsztalyCsoportListResponseDto>((x) => x)).ToHashSet();
|
||||
|
||||
public static List<OsztalyfonokOsztalyCsoportListResponseDto> ModelToDtoForOsztalyfonok(List<OsztalyCsoportListResponse> model)
|
||||
=> model.ConvertAll(new Converter<OsztalyCsoportListResponse, OsztalyfonokOsztalyCsoportListResponseDto>((x) => x));
|
||||
|
||||
public static IntezmenyListResponseDto ModelToDto(IntezmenyResponse model) => model;
|
||||
|
||||
public static BankszamlaResponseDto ModelToDto(BankszamlaResponse model) => model;
|
||||
|
||||
public static CsatolmanySimplifiedResponseDto ModelToDto(CsatolmanySimplifiedResponse model) => model;
|
||||
|
||||
public static IEnumerable<CsatolmanySimplifiedResponseDto> ModelToDto(IEnumerable<CsatolmanySimplifiedResponse> model) => model?.ConvertAll(ModelToDto);
|
||||
|
||||
public static List<EloadasResponseDto> ModelToDto(List<EloadasResponse> model)
|
||||
=> model.ConvertAll(new Converter<EloadasResponse, EloadasResponseDto>((x) => x));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Kreta.Core.Exceptions;
|
||||
using Kreta.Ellenorzo.Domain.VN.Interfaces;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Converter
|
||||
{
|
||||
/// <summary>
|
||||
/// Author: Kovács Kornél (DevKornél) Created On: 2019.10.
|
||||
/// This converts the Uid dto model prop to a string value.
|
||||
/// </summary>
|
||||
public class UidConverter<T> : JsonConverter where T : IReadonlyUidRaw
|
||||
{
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
{
|
||||
writer.WriteValue(value is IReadonlyUidRaw propertyValue ? propertyValue.UidRaw : throw new BlException(Core.Enum.BlExceptionType.ElvartErtekNemTalalhato));
|
||||
}
|
||||
|
||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) => throw new NotImplementedException();
|
||||
|
||||
public override bool CanRead => false;
|
||||
|
||||
public override bool CanConvert(Type objectType) => objectType == typeof(string);
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Csatolmany;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Csatolmany
|
||||
{
|
||||
public class CsatolmanySimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.CsatolmanyUid)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.CsatolmanyNev)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
public static implicit operator CsatolmanySimplifiedResponseDto(CsatolmanySimplifiedResponse model) => model == null ? null : new CsatolmanySimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,426 @@
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Documentation
|
||||
{
|
||||
internal static class DescriptionLookUp
|
||||
{
|
||||
public const string AdatszotarElem = "Adatszótár elem";
|
||||
|
||||
public const string LeirasNotComplete = "Dokumentációt nincs kész!!!";
|
||||
|
||||
public const string OsztalyCsoportNullErtek = "Amennyiben az intézményhez rögzített entitásról van szó, null értéket kap.";
|
||||
|
||||
public const string AdatszotarIdVagyEnumIntValue = "Adatszótár id vagy enum int value";
|
||||
|
||||
public const string AdatszotarNeveVagyEnumValue = "Adatszótár neve vagy enum value;<br>Egyedileg admin által rögzített adatszótár elem esetén 'AdatszotarElem'";
|
||||
|
||||
public const string AmiOsztalyCsoportNullEsetenTanulohozRogzitve = "null esetén tanulóhoz lett rögzítve az entitás";
|
||||
|
||||
public const string AlkalmazottNeve = "Az alkalmazott neve";
|
||||
|
||||
public const string Alkalmazott = "Alkalmazott";
|
||||
|
||||
public const string BejelentettSzamonkeresTemaja = "Bejelentett számonkérés témája, amiből lesz a számonkérés, ha nincs kitöltve, akkor null";
|
||||
|
||||
public const string EntitasAllapota = "Entitás állapota";
|
||||
|
||||
public const string EntitasCime = "Az entitás címe";
|
||||
|
||||
public const string EntitasDatumaShortDateTime = "Az entitás dátuma " + ShortDateTimeUtcIso;
|
||||
|
||||
public const string EntitasFeladatSzovege = "A feladat szövege";
|
||||
|
||||
public const string EntitashozRogzitettOsztalyCsoport = "Osztály/csoport, ami az entitáshoz lett rögzítve. ";
|
||||
|
||||
public const string EntitashozRogzitettOsztalyCsoportNullErtekkel = "Osztály/csoport, ami az entitáshoz lett rögzítve. " + OsztalyCsoportNullErtek;
|
||||
|
||||
public const string EntitashozRogzitettOsztalyCsoportNeve = "Osztály/csoport neve, ami az entitáshoz lett rögzítve";
|
||||
|
||||
public const string EntitashozRogzitettTanitasiOraId = "Tanítási óra id-ja, ami az entitáshoz lett rögzítve; null esetén órarendi órához lett rögzítve";
|
||||
|
||||
public const string EntitashozRogzitettTantargy = "Tantárgy, ami az entitáshoz lett rögzítve";
|
||||
|
||||
public const string EntitashozRogzitettTantargyNeve = "Tantárgy neve, ami az entitáshoz lett rögzítve";
|
||||
|
||||
public const string EntitashozRogzitettTeremNeve = "Terem neve, ami az entitáshoz lett rögzítve";
|
||||
|
||||
public const string EntitasJellege = "Entitás jellege";
|
||||
|
||||
public const string EntitasLattamozasanakDatuma = "Az entitás láttamozásának dátuma (" + UtcIso8601 + "). Null, ha nincs láttamozva. Ez a feature kivezetve.";
|
||||
|
||||
public const string EntitasLetrehozasanakDatuma = "Az entitás létrehozásának dátuma " + UtcIso8601;
|
||||
|
||||
public const string EntitasMegnevezese = "Entitás megnevezése";
|
||||
|
||||
public const string EntitasMelyikNapraEsik = "Az entitás melyik napra esik (Hétfő, kedd, ...)";
|
||||
|
||||
public const string EntitasModja = "Entitás módja";
|
||||
|
||||
public const string Email = "E-mail cím";
|
||||
|
||||
public const string EmailTipus = "E-mail cím típusa, enum value";
|
||||
|
||||
public const string EntitasNapjaShortDateTime = "Az entitás napjának dátuma " + ShortDateTimeUtcIso;
|
||||
|
||||
public const string EntitasOraszamaAzAdottNapon = "Az entitás hanyadik órán lesz az adott napon";
|
||||
|
||||
public const string OraEvesSorszama = "Az óra éves sorszáma (naplózott óra esetén van csak értéke, egyébként null)";
|
||||
|
||||
public const string EntitasTartalma = "Entitás tartalma";
|
||||
|
||||
public const string EntitasTemaja = "Az entitás témája, lehet null.";
|
||||
|
||||
public const string EntitasTipusa = "Entitás típusa";
|
||||
|
||||
public const string EntitastRogzitoTanar = "Tanár, aki az entitást rögzítette, lehet helyettesítő tanár is.";
|
||||
|
||||
public const string EntitastRogzitoTanarNeve = "Tanár neve, aki az entitást rögzítette, lehet helyettesítő tanár is.";
|
||||
|
||||
public const string EntitasTanar = "Tanár entitás, lehet helyettesítő tanár is.";
|
||||
|
||||
public const string EmailLista = "Email lista";
|
||||
|
||||
public const string EntitastRogzitoTanarUid = "Tanár uid-ja, aki az entitást rögzítette, lehet helyettesítő tanár is.";
|
||||
|
||||
public const string EnumErtek = "Enum érték";
|
||||
|
||||
public const string ErtekelesErtekFajta = "Az értékelés értékének fajtája";
|
||||
|
||||
public const string ErtekelesSulya = "Admin által megadott értékelés súly;" +
|
||||
"<br>Meghatározza, hogy a számérték mekkora súllyal számít bele az átlagba;<br>Ha az ErtekFajta nem Osztalyzat vagy a Jelleg nem Ertekeles, akkor null;" +
|
||||
"<br>Továbbá akkor is null, ha az értékelés nem számít bele az átlagba;";
|
||||
|
||||
public const string ErtekelesSzamErtek = "Az értékelés számmal kifejezhető értéke.";
|
||||
|
||||
public const string ErtekelesSzovegesErtek = "Felhasználó számára szövegesen megjeleníthető érték az értékelésnél";
|
||||
|
||||
public const string ErtekelesSzovegesErtekelesRovidNev = "A szöveges értékelés rövid neve (Csak szöveges értékelés esetén lehet értéke. Egyéb esetben, vagy ha nem írnak be semmit, akkor null)";
|
||||
|
||||
public const string FaliujsagErvenyessegKezdete = "Faliújság elem ettől a naptól kezdve látható a tanuló és gondviselő számára " + ShortDateTimeUtcIso;
|
||||
|
||||
public const string FaliujsagErvenyessegVege = "Faliújság elem ettől a naptól kezdve nem látható a tanuló és gondviselő számára " + ShortDateTimeUtcIso;
|
||||
|
||||
public const string FelhasznaloAnyjaNeve = "A felhasználó anyukájának a neve";
|
||||
|
||||
public const string FelhasznaloAlapertelmezettTelefon = "A felhasználó alapértelmezett telefonszáma";
|
||||
|
||||
public const string FelhasznaloAlapertelmezettEmail = "A felhasználó alapértelmezett e-mail címe";
|
||||
|
||||
public const string FelhasznaloLakcimei = "A felhasználó lakcímeinek listája";
|
||||
|
||||
public const string FelhasznalonakANeve = "A felhasználó neve";
|
||||
|
||||
public const string FelhasznalonakAPublikusEmailCime = "A felhasználó publikus e-mail címe";
|
||||
|
||||
public const string FelhasznalonakAPublikusTelefonszama = "A felhasználó publikus telefonszáma";
|
||||
|
||||
public const string FelhasznalonakATelefonszama = "A felhasználó telefonszáma";
|
||||
|
||||
public const string FelhasznalonakAzEmailCime = "A felhasználó e-mail címe";
|
||||
|
||||
public const string FelhasznaloSzamaraMegjelenithetoSzovegesErtek = "Felhasználó számára megjeleníthető szöveges érték";
|
||||
|
||||
public const string FelhasznaloSzuletesiDatuma = "A felhasználó születési dátuma";
|
||||
|
||||
public const string FelhasznaloSzuletesiEv = "A felhasználó születési éve";
|
||||
|
||||
public const string FelhasznaloSzuletesiHonap = "A felhasználó születési hónapja";
|
||||
|
||||
public const string FelhasznaloSzuletesiNap = "A felhasználó születési napja";
|
||||
|
||||
public const string FelhasznaloSzuletesiHelye = "A felhasználó születési helye";
|
||||
|
||||
public const string FelhasznaloSzuletesiNeve = "A felhasználó születési neve";
|
||||
|
||||
public const string FelhasznaloElotag = "A felhasználó nevének előtagja";
|
||||
|
||||
public const string FelhasznaloVezeteknev = "A felhasználó vezetékneve";
|
||||
|
||||
public const string FelhasznaloUtonev = "A felhasználó utóneve";
|
||||
|
||||
public const string FelhasznaloSzuletesiVezeteknev = "A felhasználó születési vezetékneve";
|
||||
|
||||
public const string FelhasznaloSzuletesiUtonev = "A felhasználó születési utóneve";
|
||||
|
||||
public const string FelhasznaloAnyjaVezeteknev = "A felhasználó anyja vezetékneve";
|
||||
|
||||
public const string FelhasznaloAnyjaUtonev = "A felhasználó anyja utóneve";
|
||||
|
||||
public const string HaziFeladatHatarideje = "A házi feladat elkészítésének határideje " + ShortDateTimeUtcIso;
|
||||
|
||||
public const string HaziFeladatRogzitesIdopontja = "A házi feladat rögzítésének időpontja. " + UtcIso8601;
|
||||
|
||||
public const string HaziFeladatUid = "Házi feladat uid-ja";
|
||||
|
||||
public const string HaziFeladatKommentTanarTorolte = "A tanár törölte-e a kommentet;<br>True esetén a komment nem látszódik és pirossal lesz kiírva a FE-n, hogy tanár által törölve";
|
||||
|
||||
public const string HaziFeladatKommentTanuloTorolte = "A tanuló törölte-e a kommentet;<br>True esetén a kommentnek áthúzva kell a FE-n látszódnia";
|
||||
|
||||
public const string HelyettesTanarNeve = "Helyettesítés esetén a helyettesítő tanár neve, egyébként null";
|
||||
|
||||
public const string IgazolasAllapota = "Az igazolás állapota";
|
||||
|
||||
public const string IgazolasTipusa = "Az igazolás típusa; null esetén nincs igazolás";
|
||||
|
||||
public const string IntezmenyAdatok = "Az intézmény adatai";
|
||||
|
||||
public const string IntezmenyAzonositoja = "Az intézmény azonosítója";
|
||||
|
||||
public const string IntezmenyNeve = "Az intézmény neve";
|
||||
|
||||
public const string IntezmenyRovidNev = "Az intézmény rövid neve";
|
||||
|
||||
public const string IsTanarRogzitetteHaziFeladatot = "Tanár rögzítette-e a házi feladatot; Ha false, akkor diák";
|
||||
|
||||
public const string IsTanuloIrhatKommentet = "Tanuló írhat-e kommentet";
|
||||
|
||||
public const string KommentFeladasanakDatuma = "A komment feladásának dátuma " + UtcIso8601;
|
||||
|
||||
public const string MeglevoHaziFeladatUid = "Meglévő házi feladat uid-ja";
|
||||
|
||||
public const string MulasztasKesesPercben = "Késés ideje percekben; Felvehető értékek: 1-[Óra időtartama - 1 perc], Késés hiányában (pl. jelenlét, hiányzás) esetén null";
|
||||
|
||||
public const string NapirendiOraEsetenNull = "Napirendi óra esetén null";
|
||||
|
||||
public const string OrahozRogzitettBejelentettSzamonkeresekUid = @"Az órához rögzített bejelentett számonkérések uid;
|
||||
<br> null esetén nem lett bejelentve számonkérés az adott órához;
|
||||
<br>Számonkérés csak jövőben lévő, naplózatlan órához rögzíthető.";
|
||||
|
||||
public const string OraiFeladatUid = "Órai feladat csoportjának uid-ja";
|
||||
|
||||
public const string OsztalyAtlagErteke = "Tanuló osztályába tartozó tanulók összesített átlaga;<br>Ha a tanulónak nincs átlagba számító értékelése a tárgyból null";
|
||||
|
||||
public const string OsztalyAtlagtolElteresErteke = "Tanuló átlaga és osztályának átlaga közti differencia;<br>Ha a tanulónak nincs átlagba számító értékelése a tárgyból null";
|
||||
|
||||
public const string NovekvoSorrend = "Alapértelmezetten növekvő sorrendbe kell rendezni.";
|
||||
|
||||
public const string OsztalyCsoportAktiv = "Osztályba vagy csoportba jelenleg be van sorolva (Van egy olyan tagsága, amely jelenleg aktív)";
|
||||
|
||||
public const string OsztalyCsoportBesorolas = "Osztályba vagy csoportba sorolás időpontja " + UtcIso8601;
|
||||
|
||||
public const string OsztalyCsoportKisorolas = "Osztályból vagy csoportból kisorolás időpontja " + UtcIso8601 + ". Null esetén az aktuális osztályban vagy csoportban aktív tagsága van.";
|
||||
|
||||
public const string OsztalyCsoportTagsagok = "Osztály vagy Csoport tagságainak intervallumai";
|
||||
|
||||
public const string OsztalyCsoportNeve = "Osztály/csoport neve";
|
||||
|
||||
public const string OsztalyCsoportOktatasiNevelesiFeladatKategoriaja = "Az osztály vagy csoport oktatási-nevelési feladat kategóriája";
|
||||
|
||||
public const string OsztalyCsoportOktatasiNevelesiFeladat = "Az osztály vagy csoport oktatási nevelési feladata";
|
||||
|
||||
public const string OsztalyCsoportUid = "Osztály/csoport uid-ja";
|
||||
|
||||
public const string OsztalyCsoportAtlag = "Tanuló osztályátlaga az aktuális tantárgyból két tizedesjegyre kerekítve. " + OsztalyCsoportAtlagNull;
|
||||
|
||||
public const string OsztalyCsoportAtlagtolValoElteres = "A tanuló átlagának eltérése az osztályátlagtól két tizedesjegyre kerekítve. " + OsztalyCsoportAtlagNull;
|
||||
|
||||
public const string OsztalyCsoportAtlagNull = "Akkor van értéke, ha a Testreszabás felületen az \"Osztályátlag megjelenítése az Ellenőrző(szülő, diák) felületeken\" beállítás be van kapcsolva, " +
|
||||
"illetve ha van az osztályban lévő tanulóknak értékelése az aktuális tantárgyból, egyéb esetben null";
|
||||
|
||||
public const string OsztalyCsoportOktatasNevelesiFeladatSortIndex = "Az Osztály/csoport oktatási-nevelési feladatának rendezési sorszáma 1-től kezdődően. " + NovekvoSorrend + " Azonos értékek esetén nem meghatározott ezen rekordok sorrendje.";
|
||||
|
||||
public const string Osztalyai = "Az osztályfőnök osztályai";
|
||||
|
||||
public const string Osztalyfonok = "Osztályfőnök, ha nincs az osztálynak vagy csoportnak osztályfőnöke, akkor null.";
|
||||
|
||||
public const string OsztalyfonokHelyettes = "Osztályfőnök-helyettese, ha nincs az osztálynak vagy csoportnak osztályfőnök-helyettese, akkor null.";
|
||||
|
||||
public const string ResponseModelEgyediAzonosito = "Response model egyedi azonosító";
|
||||
|
||||
public const string IdpUniqueId = "Globálisan egyedi azonosító (IDP)";
|
||||
|
||||
public const string RendezesiIndex = "Rendezéshez használható sorszám 0-tól kezdődően. " + NovekvoSorrend;
|
||||
|
||||
public const string ShortDateTimeUtcIso = "(ShortDateTime, " + UtcIso8601 + ")";
|
||||
|
||||
public const string TanarNeve = "Tanár neve";
|
||||
|
||||
public const string TeremNeve = "Terem neve";
|
||||
|
||||
public const string FogadooraTanar = "A fogadóórákat tartó tanár";
|
||||
|
||||
public const string TanarFogadoorai = "A tanár fogadóórái";
|
||||
|
||||
public const string FogadooraTerem = "A fogadóóra terme";
|
||||
|
||||
public const string FogadooraJelentkezes = "A tanár engedélyezte-e a jelentkezési lehetőséget.<br>false esetén nem lehetséges a jelentkezés, az időpont csak információ értékű";
|
||||
|
||||
public const string FogadooraKezdetenekIdopontja = "Fogadóóra elem kezdetének időpontja " + UtcIso8601;
|
||||
|
||||
public const string FogadooraVegenekIdopontja = "Fogadóóra elem végének időpontja " + UtcIso8601;
|
||||
|
||||
public const string JelentkezesHatarido = "Fogadóóra elem jelentkezésének határideje " + UtcIso8601;
|
||||
|
||||
public const string FogadooraIdopontok = "Fogadóóra időpontok";
|
||||
|
||||
public const string FogadooraIdopontKezdete = "Fogadóóra időpontjának kezdete " + UtcIso8601;
|
||||
|
||||
public const string FogadooraIdopontVege = "Fogadóóra időpontjának vége " + UtcIso8601;
|
||||
|
||||
public const string FogadooraJelentkeztem = "Az aktuális gondviselő jelentkezett-e már a fogadóóra időpontra";
|
||||
|
||||
public const string TanevRendjeEsemenyNeveVagyTantargyNeve = "Tanév rendje eseméy neve vagy a tantárgy neve";
|
||||
|
||||
public const string TanevRendjeEsetenNull = "Tanév rendje esemény esetén null";
|
||||
|
||||
public const string TanevUid = "Az aktuális tanév uid-ja";
|
||||
|
||||
public const string TanoraKezdetenekIdopontja = "Órarendi elem kezdetének időpontja " + UtcIso8601;
|
||||
|
||||
public const string TanoraVegenekIdopontja = "Órarendi elem végének időpontja " + UtcIso8601;
|
||||
|
||||
public const string TantargyiAtlagbaBeleszamitEAzErtekeles = "Tantárgyi átlagba beleszámít-e az értékelés számértéke";
|
||||
|
||||
public const string TantargyKategoria = "Logikailag összetartozó tantárgyak csoportja, csak jelölés a rendszerben; Adatszótár elem";
|
||||
|
||||
public const string TantargyNeve = "Tantárgy neve";
|
||||
|
||||
public const string TantargySortIndex = "Tantárgy rendezési sorszáma";
|
||||
|
||||
public const string TanuloAtlagErteke = "Tanuló átlagba beleszámító értékeléseinek átlaga két tizedesjegyre kerekítve;<br>Ha a tanulónak nincs átlagba számító értékelése a tárgyból null";
|
||||
|
||||
public const string TanuloAtlagDatum = "A Tanuló átlagának időpontja (Értékelés készítésének időpontja) " + UtcIso8601;
|
||||
|
||||
public const string TanuloAtlagAlakulasa = "Tanuló átlagba beleszámító értékeléseiből számított átlag alakulása az idő függvényében. Ha a tanulónak nincs átlagba számító értékelése a tárgyból, akkor üres lista.";
|
||||
|
||||
public const string TanuloGondviseloinekListaja = "A tanuló gondviselőinek listája; Tanuló esetén az összes gondviselőt tartalmazza, gondviselő esetén csak az adott gondviselő adatait." +
|
||||
"<br>Ha nincs a tanulónak gondviselője, akkor üres lista.";
|
||||
|
||||
public const string TanuloiJelenlet = "Tanulói jelenlét; Nem naplózott óra esetén Na";
|
||||
|
||||
public const string TanuloOsztalyfonoke = "A tanuló osztályfőnöke.<br>Ha a tanuló osztályának nincs osztályfőnöke -> null.";
|
||||
|
||||
public const string TelefonTipus = "A telefonszám típusa, enum";
|
||||
|
||||
public const string TelefonLista = "Telefonszám lista";
|
||||
|
||||
public const string EntitasAlapertelmezett = "Az entitás alapértelmezett-e, logikai érték";
|
||||
|
||||
public const string UjonnanLetrejottEntitasLetrehozasanakDatuma = "Az újonnan létrejött entitás létrehozásának dátuma " + ShortDateTimeUtcIso;
|
||||
|
||||
public const string UjonnanLetrejottHaziFeladatUid = "Újonnan létrejött házi feladat uid-ja";
|
||||
|
||||
public const string UjonnanLetrejottKommentUid = "Újonnan létrejött komment uid";
|
||||
|
||||
public const string UtcIso8601 = "UTC ISO 8601";
|
||||
|
||||
public const string Rendszermodul = "Rendszermodulok";
|
||||
|
||||
public const string SulyozottOsztalyzatOsszege = "Súlyozott osztályzat összege, az átlagba számító értékelések összegét tartalmazza a súlyozást figyelembevéve (pl. 200% súlyú jegy esetén 2x adódik hozzá az összeghez). Az átlagszámításkor ez a számláló.";
|
||||
|
||||
public const string SulyozottOsztalyzatSzama = "Súlyozott osztályzat száma, az átlagba számító értékelések darabszámát tartalmazza a súlyozást figyelembevéve (pl. 200% súlyú jegy esetén 2x adódik hozzá a darabszámhoz). Az átlagszámításkor ez a nevező.";
|
||||
|
||||
public const string IsAktivRendszermodul = "Aktív-e a rendszermodul";
|
||||
|
||||
public const string RendszermodulURL = "Rendszermodul elérési címe";
|
||||
|
||||
public const string HaziFeladathozRogzitettOpenBoardKepek = "A házi feladathoz tartozó OpenBoard képek listáját tartalmazza, ha lett rögzítve, egyébként üres lista";
|
||||
|
||||
public const string HaziFeladathozRogzitettCsatolmanyok = "Listás házi feladat lekérésnél minden esetben null;" +
|
||||
"<br> A házi feladathoz tartozó csatolmányok és OpenBoard képek listáját tartalmazza, ha lett rögzítve, egyébként üres lista";
|
||||
|
||||
public const string OpenBoardBase64 = "Az OpenBoard kép BASE64 encode-olva";
|
||||
|
||||
public const string CsatolmanyUid = "A csatolmánynak a Uid azonosítója";
|
||||
|
||||
public const string CsatolmanyNev = "A csatolmánynak a neve";
|
||||
|
||||
public const string CsatolmanyTipus = "A csatolmánynak a típusa (OpenBoard kép vagy csatolmány)";
|
||||
|
||||
public const string OraFileTipus = "Az órához tartozó csatolmány típusa";
|
||||
|
||||
public const string CsatolmanyUrl = "A csatolmánynak az URL elérhetősége";
|
||||
|
||||
public const string HaziFeladatMegoldva = "Default érték:false <br> A házi feladatot a diák megoldotta vagy nem.";
|
||||
|
||||
public const string IsBeadhato = "Házifeladat beadható.";
|
||||
|
||||
public const string HaziFeladatMegoldvaList = "Házi feladat uid-k és hogy megoldotta-e azokat a diák vagy sem.";
|
||||
|
||||
public const string TestreszabasBeallitasok = "Az intézmény testreszabás beállításai";
|
||||
|
||||
public const string IsDiakRogzithetHaziFeladatot = "Tanuló rögzíthet-e házi feladatot";
|
||||
|
||||
public const string IsTanorakTemajaMegtekinthetoEllenozoben = "Tanórák témája megtekinthető-e az ellenőrzőben";
|
||||
|
||||
public const string IsOsztalyAtlagMegjeleniteseEllenorzoben = "Osztályátlag megjelenik-e az ellenőrzőben";
|
||||
|
||||
public const string ErtekelesekMegjelenitesenekKesleltetesenekMerteke = "Értékelések megjelenítésének késleltetésének mértéke az ellenőrzőben";
|
||||
|
||||
public const string KovetkezoTelepitesDatuma = "Következő telepítés dátuma " + UtcIso8601;
|
||||
|
||||
public const string Bankszamla = "A bankszámla adatai";
|
||||
|
||||
public const string BankszamlaSzam = "Bankszámlaszám";
|
||||
|
||||
public const string BankszamlaTulajdonosTipusId = "Bankszámla tulajdonos típusának ID-je";
|
||||
|
||||
public const string BankszamlaTulajdonosNeve = "Bankszámla tulajdonos neve";
|
||||
|
||||
public const string BankszamlaSzamReadOnly = "Bankszámlaszám csak olvasható-e";
|
||||
|
||||
public const string SzamlavezetoBank = "Számlavezető bank";
|
||||
|
||||
public const string CsatolmanyokOrahoz = "Órához tartozó csatolmányok";
|
||||
|
||||
public const string IsTorvenyesKepviselo = "A tanulóhoz tartozó gondviselő törvényes képviselő-e.";
|
||||
|
||||
public const string IsDigitalisOra = "Digitális óra-e.";
|
||||
|
||||
public const string DigitalisEszkozTipus = "Az eszköz, amit használ a tanár az órán a diákokkal történő on-line kapcsolattartásra.";
|
||||
|
||||
public const string DigitalisPlatformTipus = "A digitális platform, amit használ a tanár az órai ill. házi feladatokhoz.";
|
||||
|
||||
public const string DigitalisTamogatoEszkozTipusList = "Egyéb tanulástámogató eszközök, amiket használ a tanár az órán.";
|
||||
|
||||
public const string JelenlegiJelszo = "Jelenlegi jelszó";
|
||||
|
||||
public const string UjJelszo = "Új jelszó";
|
||||
|
||||
public const string UjJelszoMegerositese = "Új jelszó megerősítése";
|
||||
|
||||
public const string NyelviFeladatUid = "Nyelvi feladat group uid-ja";
|
||||
|
||||
public const string EloadasHelyszin = "Előadás helyszíne";
|
||||
|
||||
public const string EloadasDatum = "Előadás dátuma";
|
||||
|
||||
public const string EloadasKezdete = "Előadás kezdete";
|
||||
|
||||
public const string EloadasVege = "Előadás vége";
|
||||
|
||||
public const string SzervezetNev = "Szervezet neve";
|
||||
|
||||
public const string EloadasNev = "Előadás neve";
|
||||
|
||||
public const string EloadasGondviseloElfogadas = "Előadást gondviselő elfogadta-e, null esetén nem válaszolt";
|
||||
|
||||
public const string EloadasonMegjelent = "Előadáson megjelent-e";
|
||||
|
||||
public const string EloadasId = "Lázár Ervin Program előadás id-ja";
|
||||
|
||||
public const string Dontes = "Lázár Ervin Program időpontra a döntése engedélyezése(true), elutasítása(false) vagy függőbe tétele(null)";
|
||||
|
||||
public const string IsCsatolasEngedelyezes = "Házi feladathoz a csatolás engedélyezve van e";
|
||||
|
||||
public const string IsEszkozKiosztva = "Feltár/TESZEK eszköz kiosztásra került-e";
|
||||
|
||||
public const string IsElfogadottAszf = "Feltár/TESZEK ÁSZF-et elfogadta-e";
|
||||
|
||||
public const string Ertekelesek = "Értékelések";
|
||||
|
||||
public const string Mulasztasok = "Mulasztások";
|
||||
|
||||
public const string Feljegyzesek = "Feljegyzések";
|
||||
|
||||
public const string Bejelentettszamonkeresek = "Bejelentett számonkérések";
|
||||
|
||||
public const string Hazifeladatok = "Házi feladatok";
|
||||
|
||||
public const string Uzenetek = "Üzenetek";
|
||||
|
||||
public const string Orarendvaltozasok = "Órarendváltozások";
|
||||
|
||||
public const string Letrehozas = "A rekord létrehozásának időpontja";
|
||||
|
||||
public const string UtolsoModositas = "A rekord utolsó módosításának időpontja";
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Documentation
|
||||
{
|
||||
/// <summary>
|
||||
/// Author: Kovács Kornél (DevKornél) Created On: 2019.06.
|
||||
/// </summary>
|
||||
public class DocumentationExampleDto
|
||||
{
|
||||
public DocumentationExampleDto(string methodName, object requestParameter)
|
||||
{
|
||||
MethodName = methodName;
|
||||
RequestParameter = requestParameter;
|
||||
}
|
||||
|
||||
public DocumentationExampleDto(string methodName, object requestParameter, MockUserName mockUserName)
|
||||
{
|
||||
MethodName = methodName;
|
||||
RequestParameter = requestParameter;
|
||||
MockUserName = mockUserName;
|
||||
}
|
||||
|
||||
public string MethodName { get; }
|
||||
|
||||
public MockUserName MockUserName { get; } = MockUserName.Antali;
|
||||
|
||||
public object RequestParameter { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Email;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Email
|
||||
{
|
||||
public class EmailResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Email)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EmailTipus)]
|
||||
public AdatszotarResponseDto<EmailTipusEnum> Tipus { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasAlapertelmezett)]
|
||||
public bool IsAlapertelmezett { get; set; }
|
||||
|
||||
public static implicit operator EmailResponseDto(EmailResponse model) => model == null ? null : new EmailResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Email = model.Email,
|
||||
Tipus = AdatszotarResponseDto<EmailTipusEnum>.Create(model.Tipus),
|
||||
IsAlapertelmezett = model.IsAlapertelmezett
|
||||
};
|
||||
}
|
||||
}
|
||||
+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
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Core.Domain;
|
||||
using Kreta.Core.Enum;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Exception
|
||||
{
|
||||
public class EllenorzoExceptionResponseDto
|
||||
{
|
||||
public EllenorzoExceptionResponseDto(BlExceptionType exceptionType, string message)
|
||||
{
|
||||
ExceptionType = exceptionType;
|
||||
Message = message;
|
||||
}
|
||||
|
||||
public EllenorzoExceptionResponseDto(BlExceptionType exceptionType, string message, List<DetailedErrorItem> errorList)
|
||||
{
|
||||
ExceptionType = exceptionType;
|
||||
Message = message;
|
||||
if (errorList != null && errorList.Count > 0)
|
||||
{
|
||||
ErrorList = errorList;
|
||||
}
|
||||
}
|
||||
[Required, Description("Hiba egyedi azonosítója")]
|
||||
public Guid ExceptionId { get; } = Guid.NewGuid();
|
||||
|
||||
[Required, Description("Az exception típusa; röviden az ok, ami kiváltotta"), JsonConverter(typeof(StringEnumConverter))]
|
||||
public BlExceptionType ExceptionType { get; set; }
|
||||
|
||||
[Required, Description("Ember által olvasható hibaüzenet<br>kliens dönti el, hogy megjeleníti-e a felhasználó számára")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] ////DevKornel: Swagger miatt
|
||||
[Description("Ember által olvasható hibalista, null ha nincs plusz információ<br>kliens dönti el, hogy megjeleníti-e a felhasználó számára")]
|
||||
public List<DetailedErrorItem> ErrorList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Kreta.Ellenorzo.Domain.VN.Faliujsag;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Faliujsag
|
||||
{
|
||||
public class FaliujsagListRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Végdátum (UTC ISO 8601, BE ShortDateTime-ra normalizálja) 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 (UTC ISO 8601, BE ShortDateTime-ra normalizálja) 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; }
|
||||
|
||||
public static implicit operator FaliujsagListRequest(FaliujsagListRequestDto dto)
|
||||
=> dto == null ? new FaliujsagListRequest() : new FaliujsagListRequest()
|
||||
{
|
||||
DatumTol = dto.DatumTol?.Date,
|
||||
DatumIg = dto.DatumIg?.Date
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Faliujsag;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Faliujsag
|
||||
{
|
||||
public class FaliujsagListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitastRogzitoTanar)]
|
||||
public string RogzitoNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FaliujsagErvenyessegKezdete)]
|
||||
public DateTime ErvenyessegKezdete { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FaliujsagErvenyessegVege)]
|
||||
public DateTime ErvenyessegVege { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListFaliujsag",
|
||||
new FaliujsagListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 9, 10, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 9, 25, 0, 0, 0)
|
||||
});
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasCime)]
|
||||
public string Cim { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasTartalma + "; plain text")]
|
||||
public string Tartalom { get; set; }
|
||||
|
||||
public static implicit operator FaliujsagListResponseDto(FaliujsagListResponse model) => new FaliujsagListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
RogzitoNeve = model.RogzitoNeve,
|
||||
ErvenyessegKezdete = model.ErvenyessegKezdete.ToIso8601Utc(),
|
||||
ErvenyessegVege = model.ErvenyessegVege.ToIso8601Utc(),
|
||||
Cim = model.Cim,
|
||||
Tartalom = model.Tartalom
|
||||
};
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Alkalmazott;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Email;
|
||||
using Kreta.Ellenorzo.Dto.VN.Telefon;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott
|
||||
{
|
||||
public class AlkalmazottListResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.AlkalmazottNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TelefonLista)]
|
||||
public List<TelefonResponseDto> Telefonok { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EmailLista)]
|
||||
public List<EmailResponseDto> Emailek { get; set; }
|
||||
|
||||
public static implicit operator AlkalmazottListResponseDto(AlkalmazottListResponse model) => model == null ? null : new AlkalmazottListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
Telefonok = ModelToDto(model.Telefonok),
|
||||
Emailek = ModelToDto(model.Emailek)
|
||||
};
|
||||
}
|
||||
}
|
||||
+18
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+18
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+17
@@ -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);
|
||||
}
|
||||
}
|
||||
+38
@@ -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)
|
||||
};
|
||||
}
|
||||
}
|
||||
+22
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+22
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class BankszamlaRequestDto : IExamplesProvider
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.BankszamlaSzam)]
|
||||
public string BankszamlaSzam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosTipusId)]
|
||||
public int? BankszamlaTulajdonosTipusId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosNeve)]
|
||||
public string BankszamlaTulajdonosNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.SzamlavezetoBank)]
|
||||
public string SzamlavezetoBank { get; set; }
|
||||
|
||||
public static implicit operator BankszamlaRequest(BankszamlaRequestDto dto) => new BankszamlaRequest
|
||||
{
|
||||
BankszamlaSzam = dto.BankszamlaSzam,
|
||||
BankszamlaTulajdonosTipusId = dto.BankszamlaTulajdonosTipusId,
|
||||
BankszamlaTulajdonosNeve = dto.BankszamlaTulajdonosNeve,
|
||||
SzamlavezetoBank = dto.SzamlavezetoBank
|
||||
};
|
||||
|
||||
public object GetExamples() => new BankszamlaRequestDto
|
||||
{
|
||||
BankszamlaSzam = "11111111-11111111-00000000",
|
||||
BankszamlaTulajdonosTipusId = 7885,
|
||||
BankszamlaTulajdonosNeve = "Antal Imre",
|
||||
SzamlavezetoBank = "CIB Bank"
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class BankszamlaResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.BankszamlaSzam)]
|
||||
public string BankszamlaSzam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosTipusId)]
|
||||
public int? BankszamlaTulajdonosTipusId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaTulajdonosNeve)]
|
||||
public string BankszamlaTulajdonosNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.BankszamlaSzamReadOnly)]
|
||||
public bool IsReadOnly { get; set; }
|
||||
|
||||
public static implicit operator BankszamlaResponseDto(BankszamlaResponse model) => new BankszamlaResponseDto
|
||||
{
|
||||
BankszamlaSzam = model.BankszamlaSzam,
|
||||
BankszamlaTulajdonosTipusId = model.BankszamlaTulajdonosTipusId,
|
||||
BankszamlaTulajdonosNeve = model.BankszamlaTulajdonosNeve,
|
||||
IsReadOnly = model.IsReadOnly
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class ElerhetosegRequestDto : IExamplesProvider
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakAzEmailCime)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakATelefonszama)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
public static implicit operator ElerhetosegRequest(ElerhetosegRequestDto dto) => new ElerhetosegRequest
|
||||
{
|
||||
EmailCim = dto.Email,
|
||||
Telefonszam = dto.Telefonszam
|
||||
};
|
||||
|
||||
public object GetExamples() => new ElerhetosegRequestDto
|
||||
{
|
||||
Email = "teszt@elerhetoseg.hu",
|
||||
Telefonszam = "+36001231235"
|
||||
};
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
|
||||
{
|
||||
public class GondviseloAdatokResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Elotag { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Vezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
|
||||
public string SzuletesiVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Utonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
|
||||
public string SzuletesiUtonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
|
||||
public string AnyjaVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
|
||||
public string AnyjaUtonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetGondviseloAdatlap", null);
|
||||
|
||||
public static implicit operator GondviseloAdatokResponseDto(GondviseloAdatokResponse model) => new GondviseloAdatokResponseDto
|
||||
{
|
||||
Elotag = model.Elotag,
|
||||
Vezeteknev = model.Vezeteknev,
|
||||
Utonev = model.Utonev,
|
||||
SzuletesiVezeteknev = model.SzuletesiVezeteknev,
|
||||
SzuletesiUtonev = model.SzuletesiUtonev,
|
||||
AnyjaVezeteknev = model.AnyjaVezeteknev,
|
||||
AnyjaUtonev = model.AnyjaUtonev,
|
||||
SzuletesiHely = model.SzuletesiHely,
|
||||
SzuletesiDatum = model.SzuletesiDatum
|
||||
};
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
|
||||
{
|
||||
public class GondviseloBaseAdatlapRequestDto : IExamplesProvider
|
||||
{
|
||||
[Description(DescriptionLookUp.FelhasznaloElotag)]
|
||||
public string Elotag { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloVezeteknev)]
|
||||
public string Vezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloUtonev)]
|
||||
public string Utonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiVezeteknev)]
|
||||
public string SzuletesiVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiUtonev)]
|
||||
public string SzuletesiUtonev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
|
||||
public DateTime? SzuletesiDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaVezeteknev)]
|
||||
public string AnyjaVezeteknev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaUtonev)]
|
||||
public string AnyjaUtonev { get; set; }
|
||||
|
||||
public static implicit operator GondviseloBaseAdatlapRequest(GondviseloBaseAdatlapRequestDto dto) => new GondviseloBaseAdatlapRequest
|
||||
{
|
||||
Elotag = dto.Elotag,
|
||||
Vezeteknev = dto.Vezeteknev,
|
||||
Utonev = dto.Utonev,
|
||||
SzuletesiVezeteknev = dto.SzuletesiVezeteknev,
|
||||
SzuletesiUtonev = dto.SzuletesiUtonev,
|
||||
SzuletesiHely = dto.SzuletesiHely,
|
||||
SzuletesiDatum = dto.SzuletesiDatum,
|
||||
AnyjaVezeteknev = dto.AnyjaVezeteknev,
|
||||
AnyjaUtonev = dto.AnyjaUtonev
|
||||
};
|
||||
|
||||
public object GetExamples() => new GondviseloBaseAdatlapRequestDto
|
||||
{
|
||||
Elotag = "Dr.",
|
||||
Vezeteknev = "Teszt",
|
||||
Utonev = "Gondviselő",
|
||||
SzuletesiVezeteknev = "GondviselőSzületésiVezetéknév",
|
||||
SzuletesiUtonev = "GondviselőSzületésiUtónév",
|
||||
SzuletesiHely = "Budapest",
|
||||
SzuletesiDatum = new DateTime(1975, 04, 15),
|
||||
AnyjaVezeteknev = "GondviselőAnyjaVezetéknév",
|
||||
AnyjaUtonev = "GondviselőAnyjaUtónév"
|
||||
};
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
|
||||
{
|
||||
public class RegisztracioRequestDto : GondviseloBaseAdatlapRequestDto, IExamplesProvider
|
||||
{
|
||||
[Description(DescriptionLookUp.IsElfogadottAszf)]
|
||||
public bool IsElfogadottAszf { get; set; }
|
||||
|
||||
public static implicit operator GondviseloEszkozIgenylesRequest(RegisztracioRequestDto dto) => new GondviseloEszkozIgenylesRequest
|
||||
{
|
||||
Elotag = dto.Elotag,
|
||||
Vezeteknev = dto.Vezeteknev,
|
||||
Utonev = dto.Utonev,
|
||||
SzuletesiVezeteknev = dto.SzuletesiVezeteknev,
|
||||
SzuletesiUtonev = dto.SzuletesiUtonev,
|
||||
SzuletesiHely = dto.SzuletesiHely,
|
||||
SzuletesiDatum = dto.SzuletesiDatum,
|
||||
AnyjaVezeteknev = dto.AnyjaVezeteknev,
|
||||
AnyjaUtonev = dto.AnyjaUtonev,
|
||||
IsElfogadottAszf = dto.IsElfogadottAszf
|
||||
};
|
||||
|
||||
public new object GetExamples() => new RegisztracioRequestDto
|
||||
{
|
||||
Elotag = "Dr.",
|
||||
Vezeteknev = "Teszt",
|
||||
Utonev = "Gondviselő",
|
||||
SzuletesiVezeteknev = "GondviselőSzületésiVezetéknév",
|
||||
SzuletesiUtonev = "GondviselőSzületésiUtónév",
|
||||
SzuletesiHely = "Budapest",
|
||||
SzuletesiDatum = new DateTime(1975, 04, 15),
|
||||
AnyjaVezeteknev = "GondviselőAnyjaVezetéknév",
|
||||
AnyjaUtonev = "GondviselőAnyjaUtónév",
|
||||
IsElfogadottAszf = true
|
||||
};
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo
|
||||
{
|
||||
public class NapiErtesitesOsszefoglaloResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.Ertekelesek)]
|
||||
public int Ertekelesek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Mulasztasok)]
|
||||
public int Mulasztasok { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Feljegyzesek)]
|
||||
public int Feljegyzesek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Bejelentettszamonkeresek)]
|
||||
public int Bejelentettszamonkeresek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Hazifeladatok)]
|
||||
public int Hazifeladatok { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Uzenetek)]
|
||||
public int Uzenetek { get; set; }
|
||||
[Required, Description(DescriptionLookUp.Orarendvaltozasok)]
|
||||
public int Orarendvaltozasok { get; set; }
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetNapiErtesitesOsszefoglalo", null);
|
||||
|
||||
public static implicit operator NapiErtesitesOsszefoglaloResponseDto(NapiErtesitesOsszefoglaloResponse model) => new NapiErtesitesOsszefoglaloResponseDto
|
||||
{
|
||||
Ertekelesek = model.Ertekelesek,
|
||||
Mulasztasok = model.Mulasztasok,
|
||||
Feljegyzesek = model.Feljegyzesek,
|
||||
Bejelentettszamonkeresek = model.Bejelentettszamonkeresek,
|
||||
Hazifeladatok = model.Hazifeladatok,
|
||||
Uzenetek = model.Uzenetek,
|
||||
Orarendvaltozasok = model.Orarendvaltozasok
|
||||
};
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo
|
||||
{
|
||||
public class GondviseloGetResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public Guid IdpUniqueId { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
[Required] public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakAzEmailCime + "; ha null, akkor nincs megadva")]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakATelefonszama + "; ha null, akkor nincs megadva")]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.IsTorvenyesKepviselo)]
|
||||
public bool IsTorvenyesKepviselo { get; set; }
|
||||
|
||||
public static implicit operator GondviseloGetResponseDto(GondviseloGetResponse model) => model == null ? null : new GondviseloGetResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
IdpUniqueId = model.IdpUniqueId,
|
||||
Nev = model.Nev,
|
||||
EmailCim = model.EmailCim,
|
||||
Telefonszam = model.Telefonszam,
|
||||
IsTorvenyesKepviselo = model.IsTorvenyesKepviselo
|
||||
};
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo
|
||||
{
|
||||
public class OsztalyfonokGetResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakAPublikusEmailCime + "; ha null, akkor nincs megadva")]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.FelhasznalonakAPublikusTelefonszama + "; ha null, akkor nincs megadva")]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
public static implicit operator OsztalyfonokGetResponseDto(OsztalyfonokGetResponse model) => model == null ? null : new OsztalyfonokGetResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
EmailCim = model.EmailCim,
|
||||
Telefonszam = model.Telefonszam
|
||||
};
|
||||
}
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Dto.VN.Intezmeny;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Tanulo
|
||||
{
|
||||
public class TanuloGetResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IdpUniqueId)]
|
||||
public Guid IdpUniqueId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanevUid)]
|
||||
public string TanevUid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IntezmenyNeve)]
|
||||
public string IntezmenyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IntezmenyAzonositoja)]
|
||||
public string IntezmenyAzonosito { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
|
||||
public string SzuletesiNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
|
||||
public string SzuletesiHely { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
|
||||
public string AnyjaNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAlapertelmezettTelefon)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloAlapertelmezettEmail)]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloLakcimei + ";<br>Ha nincs lakcím, akkor üres lista")]
|
||||
public List<string> Cimek { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
|
||||
public DateTime SzuletesiDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiEv)]
|
||||
public int SzuletesiEv { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHonap)]
|
||||
public int SzuletesiHonap { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNap)]
|
||||
public int SzuletesiNap { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsEszkozKiosztva)]
|
||||
public bool IsEszkozKiosztva { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanuloGondviseloinekListaja)]
|
||||
public HashSet<GondviseloGetResponseDto> Gondviselok { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Bankszamla)]
|
||||
public BankszamlaResponseDto Bankszamla { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IntezmenyAdatok)]
|
||||
public IntezmenyListResponseDto Intezmeny { get; set; }
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetTanuloAdatlap", null);
|
||||
|
||||
public static implicit operator TanuloGetResponseDto(TanuloGetResponse model) => new TanuloGetResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
IdpUniqueId = model.IdpUniqueId,
|
||||
TanevUid = model.TanevId.ToString(),
|
||||
IntezmenyNev = model.Intezmeny.IntezmenyAdatok.TeljesNev,
|
||||
IntezmenyAzonosito = model.Intezmeny.IntezmenyAdatok.Azonosito,
|
||||
Nev = model.TanuloAdat.Nev,
|
||||
SzuletesiNev = model.TanuloAdat.SzuletesiNev,
|
||||
SzuletesiHely = model.TanuloAdat.SzuletesiHely,
|
||||
AnyjaNeve = model.TanuloAdat.AnyjaNeve,
|
||||
Telefonszam = model.TanuloAdat.Telefonszam,
|
||||
EmailCim = model.TanuloAdat.EmailCim,
|
||||
Cimek = model.TanuloAdat.Cimek,
|
||||
SzuletesiDatum = model.TanuloAdat.SzuletesiDatum.ToIso8601Utc(),
|
||||
SzuletesiEv = model.TanuloAdat.SzuletesiDatum.Year,
|
||||
SzuletesiHonap = model.TanuloAdat.SzuletesiDatum.Month,
|
||||
SzuletesiNap = model.TanuloAdat.SzuletesiDatum.Day,
|
||||
IsEszkozKiosztva = model.TanuloAdat.IsEszkozKiosztva,
|
||||
Gondviselok = ModelToDto(model.GondviseloLista),
|
||||
Bankszamla = ModelToDto(model.TanuloAdat.Bankszamla),
|
||||
Intezmeny = ModelToDto(model.Intezmeny)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Kreta.Ellenorzo.Domain.VN.Feljegyzes;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Feljegyzes
|
||||
{
|
||||
public class FeljegyzesListRequestDto
|
||||
{
|
||||
public FeljegyzesListRequestDto()
|
||||
{
|
||||
}
|
||||
|
||||
public FeljegyzesListRequestDto(string uid)
|
||||
{
|
||||
Uid = uid;
|
||||
}
|
||||
|
||||
/// <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
|
||||
/// </summary>
|
||||
public string Uid { get; set; }
|
||||
|
||||
public static implicit operator FeljegyzesListRequest(FeljegyzesListRequestDto dto) => dto == null ? new FeljegyzesListRequestDto() : new FeljegyzesListRequest(dto.Uid)
|
||||
{
|
||||
DatumTol = dto.DatumTol,
|
||||
DatumIg = dto.DatumIg
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Feljegyzes;
|
||||
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.Feljegyzes
|
||||
{
|
||||
public class FeljegyzesListResponseDto : IDtoListDocumentation, IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasCime)]
|
||||
public string Cim { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasDatumaShortDateTime)]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitastRogzitoTanarNeve)]
|
||||
public string KeszitoTanarNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasLetrehozasanakDatuma)]
|
||||
public DateTime KeszitesDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasLattamozasanakDatuma)]
|
||||
public DateTime? LattamozasDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitashozRogzitettOsztalyCsoport + "<br>" + DescriptionLookUp.AmiOsztalyCsoportNullEsetenTanulohozRogzitve)]
|
||||
public OsztalyCsoportSimplifiedResponseDto OsztalyCsoport { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasTartalma + "; plain text")]
|
||||
public string Tartalom { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasTipusa)]
|
||||
public AdatszotarResponseDto<EsemenyTipusEnum> Tipus { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListFeljegyzes",
|
||||
new FeljegyzesListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 9, 1, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 9, 19, 0, 0, 0)
|
||||
});
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetFeljegyzes", "1013162");
|
||||
|
||||
public static implicit operator FeljegyzesListResponseDto(FeljegyzesListResponse model) => new FeljegyzesListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Cim = model.Cim,
|
||||
Datum = model.Datum.ToIso8601Utc(),
|
||||
KeszitoTanarNeve = model.Tanar.Nev,
|
||||
KeszitesDatuma = model.KeszitesDatuma.ToIso8601Utc(),
|
||||
LattamozasDatuma = model.LattamozasDatuma?.ToIso8601Utc(),
|
||||
OsztalyCsoport = model.OsztalyCsoport,
|
||||
Tartalom = model.Tartalom,
|
||||
Tipus = AdatszotarResponseDto<EsemenyTipusEnum>.Create(model.Tipus)
|
||||
};
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraIdopontJelentkezesCreateRequestDto
|
||||
{
|
||||
public FogadooraIdopontJelentkezesCreateRequestDto(string uidRaw)
|
||||
{
|
||||
FogadooraIdopontUid = uidRaw;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A jelentkezni kívánt fogadóóra-időpont azonosítója
|
||||
/// </summary>
|
||||
public string FogadooraIdopontUid { get; set; }
|
||||
|
||||
public static implicit operator FogadooraJelentkezesCreateRequest(FogadooraIdopontJelentkezesCreateRequestDto dto)
|
||||
=> new FogadooraJelentkezesCreateRequest(dto.FogadooraIdopontUid);
|
||||
}
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraIdopontResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraIdopontKezdete)]
|
||||
public DateTime KezdoIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraIdopontVege)]
|
||||
public DateTime VegIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraJelentkeztem)]
|
||||
public bool IsJelentkeztem { get; set; }
|
||||
|
||||
public static implicit operator FogadooraIdopontResponseDto(FogadooraIdopontResponse model) => new FogadooraIdopontResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
KezdoIdopont = model.KezdoIdopont.ToIso8601Utc(),
|
||||
VegIdopont = model.VegIdopont.ToIso8601Utc(),
|
||||
IsJelentkeztem = model.IsJelentkeztem
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraListRequestDto
|
||||
{
|
||||
public FogadooraListRequestDto()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <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 (DateTime, 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; }
|
||||
|
||||
public static implicit operator FogadooraListRequest(FogadooraListRequestDto dto) => dto == null ? new FogadooraListRequestDto() : new FogadooraListRequest()
|
||||
{
|
||||
DatumTol = dto.DatumTol,
|
||||
DatumIg = dto.DatumIg
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.FogadooraTanar)]
|
||||
public TanarSimplifiedResponseDto Tanar { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanarFogadoorai)]
|
||||
public List<FogadooraResponseDto> Fogadoorak { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListFogadoorak",
|
||||
new FogadooraListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 4, 15, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 4, 17, 0, 0, 0)
|
||||
},
|
||||
MockUserName.Gondviselo);
|
||||
|
||||
public static implicit operator FogadooraListResponseDto(FogadooraListResponse model) => new FogadooraListResponseDto
|
||||
{
|
||||
Tanar = model.Tanar,
|
||||
Fogadoorak = ModelToDto(model.Fogadoorak)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Terem;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora
|
||||
{
|
||||
public class FogadooraResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraTerem)]
|
||||
public TeremSimplifiedResponseDto Terem { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraJelentkezes)]
|
||||
public bool IsJelentkezesFeatureEnabled { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraKezdetenekIdopontja)]
|
||||
public DateTime KezdoIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraVegenekIdopontja)]
|
||||
public DateTime VegIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.JelentkezesHatarido)]
|
||||
public DateTime JelentkezesHatarido { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FogadooraIdopontok)]
|
||||
public List<FogadooraIdopontResponseDto> Idopontok { get; set; }
|
||||
|
||||
public static implicit operator FogadooraResponseDto(FogadooraResponse model) => new FogadooraResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Terem = model.Terem,
|
||||
IsJelentkezesFeatureEnabled = model.IsJelentkezesFeatureEnabled,
|
||||
KezdoIdopont = model.KezdoIdopont.ToIso8601Utc(),
|
||||
VegIdopont = model.VegIdopont.ToIso8601Utc(),
|
||||
JelentkezesHatarido = model.JelentkezesHatarido.HasValue ? model.JelentkezesHatarido.Value.ToIso8601Utc() : model.KezdoIdopont.ToIso8601Utc(),
|
||||
Idopontok = ModelToDto(model.Idopontok)
|
||||
};
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Fogadoora.Idopont;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Fogadoora.Idopont
|
||||
{
|
||||
public class FogadooraIdopontJelentkezesDeleteRequestDto
|
||||
{
|
||||
public FogadooraIdopontJelentkezesDeleteRequestDto()
|
||||
{
|
||||
}
|
||||
|
||||
public FogadooraIdopontJelentkezesDeleteRequestDto(string uid)
|
||||
{
|
||||
Uid = uid;
|
||||
}
|
||||
|
||||
[Required]
|
||||
public string Uid { get; }
|
||||
|
||||
public static implicit operator FogadooraIdopontJelentkezesDeleteRequest(FogadooraIdopontJelentkezesDeleteRequestDto dto) => new FogadooraIdopontJelentkezesDeleteRequest(dto.Uid);
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.HaziFeladat.Csatolmany;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.HaziFeladat.Csatolmany
|
||||
{
|
||||
public class CsatolmanySimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.CsatolmanyUid)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.CsatolmanyNev)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.CsatolmanyTipus)]
|
||||
public string Tipus { get; set; }
|
||||
|
||||
public static implicit operator CsatolmanySimplifiedResponseDto(CsatolmanySimplifiedResponse model) => model == null ? null : new CsatolmanySimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
Tipus = model.Uid.Tipus.ToString()
|
||||
};
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using Kreta.Ellenorzo.Domain.VN.HaziFeladat;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.HaziFeladat.Csatolmany;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.HaziFeladat
|
||||
{
|
||||
public class HaziFeladatDetailResponseDto : HaziFeladatListResponseDto
|
||||
{
|
||||
[Description(DescriptionLookUp.HaziFeladathozRogzitettCsatolmanyok)]
|
||||
public IEnumerable<CsatolmanySimplifiedResponseDto> Csatolmanyok { get; set; }
|
||||
|
||||
public static implicit operator HaziFeladatDetailResponseDto(HaziFeladatDetailResponse model) => new HaziFeladatDetailResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Tantargy = model.Tantargy,
|
||||
TantargyNeve = model.Tantargy.Nev,
|
||||
RogzitoTanarNeve = model.RogzitoTanar.Nev,
|
||||
Szoveg = model.Szoveg,
|
||||
FeladasDatuma = model.FeladasDatuma.ToIso8601Utc(),
|
||||
HataridoDatuma = model.HataridoDatuma?.ToIso8601Utc(),
|
||||
RogzitesIdopontja = model.RogzitesIdopontja.ToIso8601Utc(),
|
||||
IsTanarRogzitette = model.IsTanarRogzitette,
|
||||
IsTanuloHaziFeladatEnabled = model.IsTanuloHaziFeladatEnabled,
|
||||
IsMegoldva = model.IsMegoldva,
|
||||
IsBeadhato = model.IsBeadhato,
|
||||
OsztalyCsoport = model.OsztalyCsoport,
|
||||
IsCsatolasEngedelyezes = model.IsCsatolasEngedelyezes,
|
||||
Csatolmanyok = model.Csatolmanyok == null ? null : ModelToDto(model.Csatolmanyok)
|
||||
};
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.HaziFeladat;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.HaziFeladat
|
||||
{
|
||||
public class HaziFeladatListRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Végdátum (UTC ISO 8601, BE ShortDateTime-ra normalizálja) 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 (UTC ISO 8601, BE ShortDateTime-ra normalizálja) is már a lekérdezés része (zárt intervallumon működik a szűrés)
|
||||
/// </summary>
|
||||
[Required]
|
||||
public DateTime DatumTol { get; set; }
|
||||
|
||||
public static implicit operator HaziFeladatListRequest(HaziFeladatListRequestDto dto) => new HaziFeladatListRequest
|
||||
{
|
||||
DatumTol = dto.DatumTol.Date,
|
||||
DatumIg = dto.DatumIg?.Date
|
||||
};
|
||||
}
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Net;
|
||||
using Kreta.Ellenorzo.Domain.VN.HaziFeladat;
|
||||
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;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.HaziFeladat
|
||||
{
|
||||
public class HaziFeladatListResponseDto : IDtoDocumentation, IDtoListDocumentation
|
||||
{
|
||||
private string _szoveg;
|
||||
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargy)]
|
||||
public TantargyResponseDto Tantargy { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargyNeve)]
|
||||
public string TantargyNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitastRogzitoTanarNeve)]
|
||||
public string RogzitoTanarNeve { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasFeladatSzovege + "; Null, ha nincs szöveg rögzítve;<br>decoded HTML-ként küldi a BE")]
|
||||
public string Szoveg { get => WebUtility.HtmlDecode(_szoveg); set => _szoveg = value; }
|
||||
|
||||
[Required, Description("ÓrarendElem napjának dátuma " + DescriptionLookUp.ShortDateTimeUtcIso + ", amikorra be lett rögzítve az házi feladat")]
|
||||
public DateTime FeladasDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.HaziFeladatHatarideje)]
|
||||
public DateTime? HataridoDatuma { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.HaziFeladatRogzitesIdopontja)]
|
||||
public DateTime RogzitesIdopontja { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsTanarRogzitetteHaziFeladatot)]
|
||||
public bool IsTanarRogzitette { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsTanuloIrhatKommentet)]
|
||||
public bool IsTanuloHaziFeladatEnabled { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.HaziFeladatMegoldva)]
|
||||
public bool IsMegoldva { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsBeadhato)]
|
||||
public bool IsBeadhato { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettOsztalyCsoport)]
|
||||
public OsztalyCsoportSimplifiedResponseDto OsztalyCsoport { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsCsatolasEngedelyezes)]
|
||||
public bool IsCsatolasEngedelyezes { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListHaziFeladat",
|
||||
new HaziFeladatListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 9, 05, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 9, 20, 0, 0, 0)
|
||||
});
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetHaziFeladat", "6");
|
||||
|
||||
public static implicit operator HaziFeladatListResponseDto(HaziFeladatListResponse model) => new HaziFeladatListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Tantargy = model.Tantargy,
|
||||
TantargyNeve = model.Tantargy.Nev,
|
||||
RogzitoTanarNeve = model.RogzitoTanar.Nev,
|
||||
Szoveg = model.Szoveg,
|
||||
FeladasDatuma = model.FeladasDatuma.ToIso8601Utc(),
|
||||
HataridoDatuma = model.HataridoDatuma?.ToIso8601Utc(),
|
||||
RogzitesIdopontja = model.RogzitesIdopontja.ToIso8601Utc(),
|
||||
IsTanarRogzitette = model.IsTanarRogzitette,
|
||||
IsTanuloHaziFeladatEnabled = model.IsTanuloHaziFeladatEnabled,
|
||||
IsMegoldva = model.IsMegoldva,
|
||||
IsBeadhato = model.IsBeadhato,
|
||||
OsztalyCsoport = model.OsztalyCsoport,
|
||||
IsCsatolasEngedelyezes = model.IsCsatolasEngedelyezes
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Author: Kovács Kornél (DevKornél) Created On: 2019.05.
|
||||
/// Az interface-t implementáló model a dokumentációban egy példaválasz fog adni
|
||||
/// </summary>
|
||||
public interface IDtoDocumentation
|
||||
{
|
||||
[JsonIgnore]
|
||||
DocumentationExampleDto Example { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Author: Kovács Kornél (DevKornél) Created On: 2019.05.
|
||||
/// Az interface-t implementáló model a dokumentációban egy generikus példaválasz fog adni
|
||||
/// </summary>
|
||||
public interface IDtoListDocumentation
|
||||
{
|
||||
[JsonIgnore]
|
||||
DocumentationExampleDto ListExample { get; }
|
||||
}
|
||||
}
|
||||
+27
@@ -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()
|
||||
};
|
||||
}
|
||||
}
|
||||
+48
@@ -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)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+32
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+46
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
+39
@@ -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()
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Lep;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Lep
|
||||
{
|
||||
public class EloadasResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.EloadasId)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EloadasDatum)]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EloadasKezdete)]
|
||||
public DateTime EloadasKezdete { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EloadasVege)]
|
||||
public DateTime EloadasVege { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EloadasNev)]
|
||||
public string EloadasNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.SzervezetNev)]
|
||||
public string SzervezetNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EloadasHelyszin)]
|
||||
public string Helyszin { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EloadasonMegjelent)]
|
||||
public bool Megjelent { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EloadasGondviseloElfogadas)]
|
||||
public bool? GondviseloElfogadas { get; set; }
|
||||
|
||||
public static implicit operator EloadasResponseDto(EloadasResponse model) => model == null ? null : new EloadasResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Datum = model.Datum.ToIso8601Utc(),
|
||||
EloadasKezdete = model.EloadasKezdete.ToIso8601Utc(),
|
||||
EloadasVege = model.EloadasVege.ToIso8601Utc(),
|
||||
EloadasNev = model.EloadasNev,
|
||||
SzervezetNev = model.SzervezetNev,
|
||||
Helyszin = model.Helyszin,
|
||||
Megjelent = model.Megjelent,
|
||||
GondviseloElfogadas = model.GondviseloElfogadas
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Lep;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Swashbuckle.Examples;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Lep
|
||||
{
|
||||
public class GondviseloEngedelyezesRequestDto : IExamplesProvider
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.EloadasId)]
|
||||
public int EloadasId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Dontes)]
|
||||
public bool? Dontes { get; set; }
|
||||
|
||||
public static implicit operator GondviseloEngedelyezesRequest(GondviseloEngedelyezesRequestDto dto) => new GondviseloEngedelyezesRequest
|
||||
{
|
||||
EloadasId = dto.EloadasId,
|
||||
Dontes = dto.Dontes
|
||||
};
|
||||
|
||||
public object GetExamples() => new GondviseloEngedelyezesRequestDto
|
||||
{
|
||||
EloadasId = 8796,
|
||||
Dontes = true
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Kreta.Ellenorzo.Domain.VN.Mulasztas;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Mulasztas
|
||||
{
|
||||
public class MulasztasListRequestDto
|
||||
{
|
||||
/// <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>
|
||||
/// Mulasztás Uid
|
||||
/// </summary>
|
||||
public string Uid { get; set; }
|
||||
|
||||
public static implicit operator MulasztasListRequest(MulasztasListRequestDto dto) => dto == null ? new MulasztasListRequestDto() : new MulasztasListRequest(dto.Uid)
|
||||
{
|
||||
DatumTol = dto.DatumTol,
|
||||
DatumIg = dto.DatumIg
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Mulasztas;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Dto.VN.Ora.TanitasiOra;
|
||||
using Kreta.Ellenorzo.Dto.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Tantargy;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
using Kreta.Enums;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Mulasztas
|
||||
{
|
||||
public class MulasztasListResponseDto : IDtoListDocumentation, IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettTantargy)]
|
||||
public TantargyResponseDto Tantargy { get; set; }
|
||||
|
||||
[Required, Description("Tanítási óra, amin a mulasztás keletkezett")]
|
||||
public TanitasiOraResponseDto Ora { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasNapjaShortDateTime)]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitastRogzitoTanarNeve)]
|
||||
public string RogzitoTanarNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasTipusa)]
|
||||
public AdatszotarResponseDto<MulasztasTipusEnum> Tipus { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasModja)]
|
||||
public AdatszotarResponseDto<MulasztasMod> Mod { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.MulasztasKesesPercben)]
|
||||
public int? KesesPercben { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasLetrehozasanakDatuma)]
|
||||
public DateTime KeszitesDatuma { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IgazolasAllapota), JsonConverter(typeof(StringEnumConverter))]
|
||||
public IgazolasAllapota IgazolasAllapota { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.IgazolasTipusa)]
|
||||
public AdatszotarResponseDto<IgazolasTipusEnum> IgazolasTipusa { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitashozRogzitettOsztalyCsoport)]
|
||||
public OsztalyCsoportSimplifiedResponseDto OsztalyCsoport { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListMulasztas",
|
||||
new MulasztasListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 9, 1, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 9, 18, 0, 0, 0)
|
||||
});
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetMulasztas", "32272324");
|
||||
|
||||
public static implicit operator MulasztasListResponseDto(MulasztasListResponse model) => new MulasztasListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Tantargy = model.Tantargy,
|
||||
Ora = model.Ora,
|
||||
Datum = model.Datum.ToIso8601Utc(),
|
||||
RogzitoTanarNeve = model.RogzitoTanar.Nev,
|
||||
Tipus = AdatszotarResponseDto<MulasztasTipusEnum>.Create(model.Tipus),
|
||||
Mod = AdatszotarResponseDto<MulasztasMod>.Create(model.Mod),
|
||||
KesesPercben = model.KesesPercben,
|
||||
KeszitesDatuma = model.KeszitesDatuma.ToIso8601Utc(),
|
||||
IgazolasAllapota = model.IgazolasAllapota,
|
||||
IgazolasTipusa = AdatszotarResponseDto<IgazolasTipusEnum>.Create(model.IgazolasTipusa),
|
||||
OsztalyCsoport = model.OsztalyCsoport
|
||||
};
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ora.TanitasiOra;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ora.TanitasiOra
|
||||
{
|
||||
public class TanitasiOraResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.TanoraKezdetenekIdopontja)]
|
||||
public DateTime KezdoDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanoraVegenekIdopontja)]
|
||||
public DateTime VegDatum { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasOraszamaAzAdottNapon + "<br>" + DescriptionLookUp.NapirendiOraEsetenNull)]
|
||||
public byte? Oraszam { get; set; }
|
||||
|
||||
public static implicit operator TanitasiOraResponseDto(TanitasiOraResponse model) => model == null ? null : new TanitasiOraResponseDto
|
||||
{
|
||||
KezdoDatum = model.KezdoDatum.ToIso8601Utc(),
|
||||
VegDatum = model.VegDatum.ToIso8601Utc(),
|
||||
Oraszam = model.Oraszam
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Orarend;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Orarend
|
||||
{
|
||||
public class OrarendElemGetRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Órarendi elem uid-ja (Id, OraTipusa, OraDatuma UTC ISO 8601)
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string OrarendElemUid { get; set; }
|
||||
|
||||
public static implicit operator OrarendElemGetRequest(OrarendElemGetRequestDto dto)
|
||||
=> dto == null ? new OrarendElemGetRequestDto() : new OrarendElemGetRequest(dto.OrarendElemUid);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Orarend;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Orarend
|
||||
{
|
||||
public class OrarendElemListRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Záró időpont (UTC ISO 8601), az ebben az időpontban folyamatban lévő órát is vissaadjuk.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public DateTime DatumIg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Kezdő időpont (UTC ISO 8601), az ebben az időpontban folyamatban lévő órát is vissaadjuk.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public DateTime DatumTol { get; set; }
|
||||
|
||||
public static implicit operator OrarendElemListRequest(OrarendElemListRequestDto dto) => dto == null ? new OrarendElemListRequestDto() : new OrarendElemListRequest
|
||||
{
|
||||
DatumTol = dto.DatumTol.ToLocalTime(),
|
||||
DatumIg = dto.DatumIg.ToLocalTime()
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Orarend;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Attributes;
|
||||
using Kreta.Ellenorzo.Dto.VN.Converter;
|
||||
using Kreta.Ellenorzo.Dto.VN.Csatolmany;
|
||||
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.UniqueIdentifier;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
using Newtonsoft.Json;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Orarend
|
||||
{
|
||||
public class OrarendElemListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito), JsonConverter(typeof(UidConverter<OrarendElemUidDto>)), SwaggerChangeType(typeof(string))]
|
||||
public OrarendElemUidDto Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasDatumaShortDateTime + "<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => esemény napja")]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanoraKezdetenekIdopontja + "<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => esemény kezdő dátum")]
|
||||
public DateTime KezdetIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanoraVegenekIdopontja + "<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => esemény végdátum")]
|
||||
public DateTime VegIdopont { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanevRendjeEsemenyNeveVagyTantargyNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasOraszamaAzAdottNapon + "; " +
|
||||
DescriptionLookUp.NapirendiOraEsetenNull +
|
||||
"<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public int? Oraszam { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OraEvesSorszama)]
|
||||
public int? OraEvesSorszama { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitashozRogzitettOsztalyCsoport + "<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public OsztalyCsoportResponseDto OsztalyCsoport { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.TanarNeve + "<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public string TanarNeve { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitashozRogzitettTantargy +
|
||||
"<br>Ha ki van töltve a tantárgy rövid neve, akkor az kerül bele, egyébként a teljes neve;" +
|
||||
"<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public TantargyResponseDto Tantargy { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasTemaja +
|
||||
"A tanárnak naplózás esetén kötelező megadnia;" +
|
||||
"Nem naplózott óra esetén, tanévrendje esemény esetén vagy ha a testreszabásban le van tiltva a téma láthatósága => null")]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitashozRogzitettTeremNeve + "<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public string TeremNeve { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasTipusa)]
|
||||
public AdatszotarResponseDto<CalendarOraTypeEnum> Tipus { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.TanuloiJelenlet)]
|
||||
public AdatszotarResponseDto<MulasztasTipus> TanuloJelenlet { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasAllapota)]
|
||||
public AdatszotarResponseDto<TanoraAllapotaEnum> Allapot { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.HelyettesTanarNeve + "<br>Ha " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public string HelyettesTanarNeve { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.HaziFeladatUid + ";<br>Ha az órához nem rögzítettek vagy " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public string HaziFeladatUid { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OraiFeladatUid + ";<br>Ha az órához nem rögzítettek vagy " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public string FeladatGroupUid { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.NyelviFeladatUid + ";<br>Ha az órához nem rögzítettek vagy " + nameof(Tipus) + " == " + nameof(CalendarOraTypeEnum.TanevRendjeEsemeny) + " => null")]
|
||||
public string NyelviFeladatGroupUid { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OrahozRogzitettBejelentettSzamonkeresekUid)]
|
||||
public string BejelentettSzamonkeresUid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsTanuloIrhatKommentet)]
|
||||
public bool IsTanuloHaziFeladatEnabled { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.HaziFeladatMegoldva)]
|
||||
public bool IsHaziFeladatMegoldva { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.CsatolmanyokOrahoz)]
|
||||
public IEnumerable<CsatolmanySimplifiedResponseDto> Csatolmanyok { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.IsDigitalisOra)]
|
||||
public bool IsDigitalisOra { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.DigitalisEszkozTipus)]
|
||||
public string DigitalisEszkozTipus { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.DigitalisPlatformTipus)]
|
||||
public string DigitalisPlatformTipus { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.DigitalisTamogatoEszkozTipusList)]
|
||||
public List<string> DigitalisTamogatoEszkozTipusList { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Letrehozas)]
|
||||
public DateTime Letrehozas { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.UtolsoModositas)]
|
||||
public DateTime UtolsoModositas { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto(
|
||||
"ListOrarend",
|
||||
new OrarendElemListRequestDto
|
||||
{
|
||||
DatumTol = new DateTime(2021, 3, 21, 0, 0, 0),
|
||||
DatumIg = new DateTime(2021, 3, 30, 0, 0, 0)
|
||||
});
|
||||
|
||||
public static implicit operator OrarendElemListResponseDto(OrarendElemListResponse model) => new OrarendElemListResponseDto
|
||||
{
|
||||
Uid = model.Uid,
|
||||
Datum = model.Uid.Datum.ToIso8601Utc(),
|
||||
KezdetIdopont = model.KezdetIdopont.ToIso8601Utc(),
|
||||
VegIdopont = model.VegIdopont.ToIso8601Utc(),
|
||||
Nev = model.Nev,
|
||||
Oraszam = model.Oraszam > -1 ? model.Oraszam : null,
|
||||
OraEvesSorszama = model.OraEvesSorszama,
|
||||
OsztalyCsoport = model?.OsztalyCsoport,
|
||||
TanarNeve = model.OratTartoTanar?.Nev,
|
||||
Tantargy = model?.Tantargy,
|
||||
Tema = model.Tema,
|
||||
TeremNeve = model.Terem?.Nev,
|
||||
Tipus = AdatszotarResponseDto<CalendarOraTypeEnum>.Create(model.Uid.Tipus),
|
||||
TanuloJelenlet = AdatszotarResponseDto<MulasztasTipus>.Create(model.TanuloJelenlet),
|
||||
Allapot = AdatszotarResponseDto<TanoraAllapotaEnum>.Create(model.Allapot),
|
||||
HelyettesTanarNeve = model.HelyettesTanar?.Nev,
|
||||
HaziFeladatUid = model.HaziFeladatUid?.UidRaw,
|
||||
FeladatGroupUid = model.FeladatGroupUid?.UidRaw,
|
||||
NyelviFeladatGroupUid = model.NyelviFeladatGroupUid?.UidRaw,
|
||||
BejelentettSzamonkeresUid = model.BejelentettSzamonkeresUid?.UidRaw,
|
||||
IsTanuloHaziFeladatEnabled = model.IsTanuloHaziFeladatEnabled,
|
||||
IsHaziFeladatMegoldva = model.IsHaziFeladatMegoldva,
|
||||
Csatolmanyok = ModelToDto(model.Csatolmanyok),
|
||||
IsDigitalisOra = model.IsDigitalisOra,
|
||||
DigitalisEszkozTipus = model.DigitalisEszkozTipus,
|
||||
DigitalisPlatformTipus = model.DigitalisPlatformTipus,
|
||||
DigitalisTamogatoEszkozTipusList = model.DigitalisTamogatoEszkozTipusList,
|
||||
Letrehozas = model.Letrehozas,
|
||||
UtolsoModositas = model.UtolsoModositas
|
||||
};
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportUid)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportResponseDto(OsztalyCsoportResponse model) => model == null ? null : new OsztalyCsoportResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev
|
||||
};
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportSimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportUid)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportSimplifiedResponseDto(OsztalyCsoportSimplifiedResponse model) => model == null ? null : new OsztalyCsoportSimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw
|
||||
};
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Domain.VN.Utility;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyCsoportTagsagResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportBesorolas)]
|
||||
public DateTime BesorolasDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyCsoportKisorolas)]
|
||||
public DateTime? KisorolasDatuma { get; set; }
|
||||
|
||||
public static implicit operator OsztalyCsoportTagsagResponseDto(OsztalyCsoportTagsagResponse model) => new OsztalyCsoportTagsagResponseDto
|
||||
{
|
||||
BesorolasDatuma = model.BesorolasDatuma.ToIso8601Utc(),
|
||||
KisorolasDatuma = model.KisorolasDatuma?.ToIso8601Utc()
|
||||
};
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class OsztalyfonokOsztalyCsoportListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasiNevelesiFeladatKategoriaja)]
|
||||
public AdatszotarResponseDto<OktNevelesiKategoriaEnum> OktatasNevelesiKategoria { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListTanuloOsztalyCsoport", null);
|
||||
|
||||
public static implicit operator OsztalyfonokOsztalyCsoportListResponseDto(OsztalyCsoportListResponse model) => new OsztalyfonokOsztalyCsoportListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
OktatasNevelesiKategoria = AdatszotarResponseDto<OktNevelesiKategoriaEnum>.Create(model.OktatasNevelesiKategoria)
|
||||
};
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.OsztalyCsoport;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Felhasznalo.Alkalmazott.Tanar.Osztalyfonok;
|
||||
using Kreta.Ellenorzo.Dto.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Enums.VN;
|
||||
using Kreta.Enums;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using static Kreta.Ellenorzo.Dto.VN.Converter.ResponseModelConverter;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.OsztalyCsoport
|
||||
{
|
||||
public class TanuloOsztalyCsoportListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.Osztalyfonok)]
|
||||
public OsztalyfonokSimplifiedResponseDto OsztalyFonok { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.OsztalyfonokHelyettes)]
|
||||
public OsztalyfonokHelyettesSimplifiedResponseDto OsztalyFonokHelyettes { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasiNevelesiFeladat)]
|
||||
public AdatszotarResponseDto<OktatasiNevelesiFeladatEnum> OktatasNevelesiFeladat { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasiNevelesiFeladatKategoriaja)]
|
||||
public AdatszotarResponseDto<OktNevelesiKategoriaEnum> OktatasNevelesiKategoria { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportOktatasNevelesiFeladatSortIndex)]
|
||||
public int OktatasNevelesiFeladatSortIndex { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportAktiv)]
|
||||
public bool IsAktiv { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EnumErtek), JsonConverter(typeof(StringEnumConverter))]
|
||||
public OsztalyCsoportTipus Tipus { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.OsztalyCsoportTagsagok)]
|
||||
public HashSet<OsztalyCsoportTagsagResponseDto> Tagsagok { get; set; }
|
||||
|
||||
public DocumentationExampleDto ListExample => new DocumentationExampleDto("ListTanuloOsztalyCsoport", null);
|
||||
|
||||
public static implicit operator TanuloOsztalyCsoportListResponseDto(OsztalyCsoportListResponse model) => new TanuloOsztalyCsoportListResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
OsztalyFonok = model.Osztalyfonok,
|
||||
OsztalyFonokHelyettes = model.OsztalyfonokHelyettes,
|
||||
OktatasNevelesiFeladat = AdatszotarResponseDto<OktatasiNevelesiFeladatEnum>.Create(model.OktatasNevelesiFeladat),
|
||||
OktatasNevelesiKategoria = AdatszotarResponseDto<OktNevelesiKategoriaEnum>.Create(model.OktatasNevelesiKategoria),
|
||||
OktatasNevelesiFeladatSortIndex = model.OktatasiNevelesiFeladatSortIndex,
|
||||
IsAktiv = model.IsAktiv,
|
||||
Tipus = model.OsztalyCsoportTipus,
|
||||
Tagsagok = ModelToDto(model.Tagsagok)
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Tantargy;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Tantargy
|
||||
{
|
||||
public class TantargyResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TantargyKategoria)]
|
||||
public AdatszotarResponseDto<TargyKategoriaTipusEnum> Kategoria { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.RendezesiIndex)]
|
||||
public int SortIndex { get; set; }
|
||||
|
||||
public static implicit operator TantargyResponseDto(TantargyResponse model) => model == null ? null : new TantargyResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev,
|
||||
Kategoria = AdatszotarResponseDto<TargyKategoriaTipusEnum>.Create(model.Kategoria),
|
||||
SortIndex = model.SortIndex
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Telefon;
|
||||
using Kreta.Ellenorzo.Dto.VN.Adatszotar;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Enums;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Telefon
|
||||
{
|
||||
public class TelefonResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FelhasznalonakATelefonszama)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TelefonTipus)]
|
||||
public AdatszotarResponseDto<TelefonTipusEnum> Tipus { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EntitasAlapertelmezett)]
|
||||
public bool IsAlapertelmezett { get; set; }
|
||||
|
||||
public static implicit operator TelefonResponseDto(TelefonResponse model) => model == null ? null : new TelefonResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Telefonszam = model.Telefonszam,
|
||||
Tipus = AdatszotarResponseDto<TelefonTipusEnum>.Create(model.Tipus),
|
||||
IsAlapertelmezett = model.IsAlapertelmezett
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Terem;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Terem
|
||||
{
|
||||
public class TeremSimplifiedResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ResponseModelEgyediAzonosito)]
|
||||
public string Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TeremNeve)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
public static implicit operator TeremSimplifiedResponseDto(TeremSimplifiedResponse model)
|
||||
{
|
||||
return model == null ? null : new TeremSimplifiedResponseDto
|
||||
{
|
||||
Uid = model.Uid.UidRaw,
|
||||
Nev = model.Nev
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using Kreta.Ellenorzo.Domain.VN.Interfaces;
|
||||
using Kreta.Ellenorzo.Domain.VN.Logic;
|
||||
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
||||
using Kreta.Ellenorzo.Domain.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.UniqueIdentifier
|
||||
{
|
||||
public class OrarendElemUidDto : IReadonlyUidRaw
|
||||
{
|
||||
public string UidRaw { get; private set; }
|
||||
|
||||
public static implicit operator OrarendElemUidDto(OrarendElemUid model) => new OrarendElemUidDto
|
||||
{
|
||||
UidRaw = UidLogic.Concat(model.Id, model.Tipus, model.Datum.ToIso8601Utc().ToIso8601UtcString())
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Utility
|
||||
{
|
||||
/// <summary>
|
||||
/// Author: Kovács Kornél (DevKornél) Created On: 2019.06.
|
||||
/// </summary>
|
||||
public static class Extensions
|
||||
{
|
||||
/// UTC: 2016-10-30T20:00:00Z
|
||||
/// Local: 2016-10-30T23:00:00+01:00
|
||||
/// Unspecified: 2016-10-30T22:00:00
|
||||
public static DateTime ToIso8601Utc(this DateTime dt)
|
||||
=> new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second, dt.Kind).ToUniversalTime();
|
||||
|
||||
/// UTC: 2016-10-30T20:00:00Z
|
||||
/// Local: 2016-10-30T23:00:00+01:00
|
||||
/// Unspecified: 2016-10-30T22:00:00
|
||||
public static string ToIso8601UtcString(this DateTime dt)
|
||||
=> dt.ToString("yyyy-MM-dd'T'HH:mm:ssK", CultureInfo.InvariantCulture);
|
||||
|
||||
public static IEnumerable<TOutput> ConvertAll<TInput, TOutput>(this IEnumerable<TInput> collection, Converter<TInput, TOutput> converter)
|
||||
{
|
||||
foreach (TInput item in collection)
|
||||
{
|
||||
yield return converter.Invoke(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.IdentityModel.Logging" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.2.1.0" newVersion="5.2.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SimpleInjector" publicKeyToken="984cb50dea722e99" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.0.1.0" newVersion="2.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Extensions.FileProviders.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Extensions.Configuration.FileExtensions" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Extensions.FileProviders.Physical" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.Extensions.Configuration" publicKeyToken="adb9793829ddae60" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IdentityModel.Tokens.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.5.1.0" newVersion="6.5.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.IdentityModel.Tokens" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.5.1.0" newVersion="6.5.1.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup></configuration>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AutoFixture" version="4.2.0" targetFramework="net48" />
|
||||
<package id="Meziantou.Analyzer" version="1.0.688" targetFramework="net48" developmentDependency="true" />
|
||||
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.6" targetFramework="net48" />
|
||||
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.6" targetFramework="net48" />
|
||||
<package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net48" />
|
||||
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net48" />
|
||||
<package id="Swashbuckle.Core" version="5.6.0" targetFramework="net48" />
|
||||
<package id="Swashbuckle.Examples" version="3.12.0" targetFramework="net48" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user