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

View File

@@ -0,0 +1,7 @@
namespace Kreta.Eugyintezes.BusinessLogic.Interface
{
public interface IServiceContext
{
string IntezmenyAzonosito { get; }
}
}

View File

@@ -0,0 +1,63 @@
<?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>{35E59B3A-A3FE-4536-A573-DE06D94B1C61}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Kreta.Eugyintezes.BusinessLogic.Interface</RootNamespace>
<AssemblyName>Kreta.Eugyintezes.BusinessLogic.Interface</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<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>
</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="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\Tools\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="IServiceContext.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\ITorzsadatService.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Kreta.BusinessLogic\Kreta.BusinessLogic.csproj">
<Project>{8876FE0D-841E-422D-A5A0-59239CD98482}</Project>
<Name>Kreta.BusinessLogic</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.Enums\Kreta.Enums.csproj">
<Project>{1d5e0ac2-dfab-4d32-9ad1-b5788a7d06bd}</Project>
<Name>Kreta.Enums</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.Domain\Kreta.Eugyintezes.Domain.csproj">
<Project>{2B2F2FB3-A8AE-4C90-850E-251FF484176D}</Project>
<Name>Kreta.Eugyintezes.Domain</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,87 @@
using System;
using System.Collections.Generic;
using Kreta.Enums;
using Kreta.Eugyintezes.Domain.Model.Dto;
namespace Kreta.Eugyintezes.BusinessLogic.Interface.Services
{
public interface ITorzsadatService
{
List<AlkalmazottDto> GetAlkalmazottak(int? tanevKretaAzonosito = null);
AlkalmazottDto GetAlkalmazott(int azonosito, int? tanevKretaAzonosito = null);
TanuloDto GetGondviseloGyerekAdatok(int gondviseloAzonosito, int? tanevKretaAzonosito = null);
int GetKozossegiSzolgalatOsszesIgazoltOrakSzama(string tanuloOktatasiAzonosito);
KozossegiSzolgalatTevekenysegDto GetKozossegiSzolgalatTevekenyseg(int azonosito);
List<KozossegiSzolgalatTevekenysegDto> GetKozossegiSzolgalatTevekenysegekLista();
OsztalyDto GetOsztaly(int azonosito);
List<OsztalyDto> GetOsztalyok(int? tanevKretaAzonosito = null);
List<TanuloDto> GetOsztalyTanulok(int osztalyAzonosito);
DateTime? GetTanevKezdete();
TanoraiCsoportDto GetTanoraiCsoport(int kretaAzonosito);
List<TanoraiCsoportDto> GetTanoraiCsoportok();
List<TanuloDto> GetTanoraiCsoportTanulok(int tanuloiCsoportAzonosito);
TantargyDto GetTantargy(int azonosito);
TanuloAdatokDto GetTanuloAdatok(string tanuloOktatasiAzonosito, int? tanevKretaAzonosito = null);
List<TantargyDto> GetTanuloTantargyak(string tanuloOktatasiAzonosito);
void SendIedm(string tanuloOktatasiAzonosito, DateTime tavolletKezdete, DateTime tavolletVege);
KozteruletJellegeDto GetKozteruletJellege(int azonosito);
List<KozteruletJellegeDto> GetKozteruletJellegek();
EmailDto GetGondviseloEmailCim(int kretaAzonosito);
EmailDto GetFelhasznaloEmailCim(int kretaAzonosito);
List<TanoraiCsoportDto> GetTanuloTanoraiCsoportok(string tanuloOktatasiAzonosito);
List<TanoraiCsoportDto> GetOsztalyTanoraiCsoportok(int osztalyKretaAzonosito);
List<TanuloAdatokDto> GetTanulokByOsztaly(int kretaAzonosito, int? tanevKretaAzonosito = null);
List<TanevDto> GetTanevek();
List<TanevDto> GetOsszesTanevek();
List<OsztalyDto> GetSZMKOsztalyok(int gondviseloKretaAzonosito);
List<CimDto> GetAktualisGondviseloCimek(int gondviseloKretaAzonosito);
List<CimDto> GetFelhasznaloCimek(int felhasznaloKretaAzonosito);
List<CimDto> GetFelhasznaloCimek(string kretaIntezmenyAzonosito, int felhasznaloKretaAzonosito);
CimDto GetCim(int cimKretaAzonosito);
BankszamlaDto GetGyerekemOsztalyaBankszamlaszam(int gondviseloKretaAzonosito);
List<VezetokEsTanarokDto> GetTanarok(int? tanevKretaAzonosito);
List<VezetokEsTanarokDto> GetNOKSAlkalmazottak(int? tanevKretaAzonosito);
List<VezetokEsTanarokDto> GetEgyebAlkalmazottak(int? tanevKretaAzonosito);
List<OsztalyFonokAdatokDto> GetOsztalyfonokok(int? tanevKretaAzonosito);
List<VezetokEsTanarokDto> GetIgazgatosagiAlkalmazottak(int? tanevKretaAzonosito);
List<VezetokEsTanarokDto> GetKretaAdminisztratorok(int? tanevKretaAzonosito);
List<GondviseloAdatokDto> GetOsztalyGondviselok(int osztalyKretaAzonosito);
List<GondviseloAdatokDto> GetTanoraiCsoportGondviselok(int tanoraiCsoportKretaAzonosito);
AlkalmazottAdatokDto GetAlkalmazottAdatok(int kretaFelhasznaloAzonosito, int? tanevKretaAzonosito = null);
GondviseloAdatokDto GetGondviseloAdatok(int kretaFelhasznaloAzonosito);
List<GondviseloAdatokDto> GetSZMKKepviselok();
TanuloAdatokDto GetTanuloAdatokByKretaAzonosito(int kretaAzonosito);
AlkalmazottDto GetTanuloOsztalyfonok(string oktatasiAzonosito);
List<AlkalmazottDto> GetEUgyintezokEsOsztalyfonokok();
List<TeremAdatokDto> GetFoglalhatoTermek();
AdatszotarDto GetAdatszotarByTipus(int kretaAzonosito, GeneratedAdatszotarTipusEnum tipus);
List<AdatszotarDto> GetAdatszotarakByTipus(GeneratedAdatszotarTipusEnum tipus);
List<KretaSzamlaAdatokDto> GetBulkTanuloSzamlaAdatok(int osztalyCsoportKretaAzonosito, List<string> oktatasiAzonositok);
List<KretaSzamlaAdatokDto> GetBulkAlkalmazottSzamlaAdatok(List<int> kretaFelhasznaloAzonositok);
List<TanuloDto> GetBulkGondviseloGyerekAdatok(List<int> gondviseloAzonositok);
List<OsztalyDto> GetTanitottOsztalyok(int alkalmazottKretaAzonosito);
List<OsztalyDto> GetOsztalyfonokoltOsztalyok(int alkalmazottKretaAzonosito);
List<TanuloDto> GetBulkTanulok(List<string> oktatasiAzonositok);
bool SaveNebuloFromBai(NebuloDto nebuloDto, string json);
AlkalmazottDto GetElsoAlairo();
SaveResponseDto SaveIgazolasok(IgazolasDto dto, string json);
SaveResponseDto SaveKozossegiszolgalatok(KozossegiSzolgalatDto dto, string json);
bool GetAlkalmazottModositasiJog(int alkalmazottKretaAzonosito, string jogTipus, string oktatasiAzonosito);
SaveResponseDto GetTanuloLetezik(string oktatasiAzonosito, string elotag, string csaladiNev, string utonev, string szuletesiHely, DateTime szuletesiIdo);
List<AlkalmazottDto> GetEUgyintezok();
BKITanuloDto GetTanuloBKIUrlap(string tanuloOktatasiAzonosito);
SaveResponseDto SaveBKITanulo(BKITanuloDto dto, string json, string ugyiratszam);
TanevDto GetTanev(int tanevKretaAzonosito);
List<TanuloAdatokDto> GetTanulokByTanoraiCsoport(int kretaAzonosito);
List<TanitasiRendKivetelNapDto> GetTanitasiRendKivetelNapok(DateTime kezdete, DateTime vege);
TanuloDto GetTanuloByDiakigazolvanyszam(string diakigazolvanyszam);
List<KretaTanoraiCsoportDto> GetVezetettTanoraiCsoportok(int alkalmazottKretaAzonosito);
List<KretaTanoraiCsoportDto> GetTanitottTanoraiCsoportok(int alkalmazottKretaAzonosito);
List<BulkTanuloDto> GetBulkTanuloAdatok(List<int> kretaAzonositok);
List<BulkGondviseloDto> GetBulkGondviseloAdatok(List<int> kretaAzonositok);
List<BulkAlkalmazottDto> GetBulkAlkalmazottAdatok(List<int> kretaAzonositok);
OrszagDto GetOrszagTipus(int orszagKretaAzonosito);
List<OrszagDto> GetOrszagTipusok();
TanuloDto GetTanuloAdatok(Guid tanuloIdpEgyediAzonosito, int? tanevKretaAzonosito = null);
}
}

View File

@@ -0,0 +1,63 @@
<?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="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>
<dependentAssembly>
<assemblyIdentity name="CacheManager.Core" publicKeyToken="5b450b4fb65c4cdb" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.0" newVersion="4.0.4.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>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup></configuration>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Meziantou.Analyzer" version="1.0.688" targetFramework="net48" developmentDependency="true" />
</packages>

View File

@@ -0,0 +1,21 @@
using System.Configuration;
using Kreta.Client.Eugyintezes.Configuration;
using Kreta.Core.FileService;
using Kreta.Core.FileService.Configuration;
using Kreta.Eugyintezes.BusinessLogic.Interface.Services;
using Kreta.Eugyintezes.BusinessLogic.Services;
using SimpleInjector;
namespace Kreta.Eugyintezes.BusinessLogic.Infrastructure
{
public static class DependencyInjection
{
public static void RegisterTypes(Container container)
{
container.Register<ITorzsadatService, TorzsadatService>(Lifestyle.Scoped);
container.Register<IFileServiceConfiguration>(() => (FileServiceConfiguration)ConfigurationManager.GetSection(nameof(FileServiceConfiguration)), Lifestyle.Singleton);
container.Register<IFileService, FileService>(Lifestyle.Singleton);
container.Register<IEugyintezesClientConfiguration>(() => (EugyintezesClientConfiguration)ConfigurationManager.GetSection(nameof(EugyintezesClientConfiguration)), Lifestyle.Singleton);
}
}
}

View File

@@ -0,0 +1,110 @@
<?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>{D9BA1291-C6A3-481E-94FF-22A38BD522C8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Kreta.Eugyintezes.BusinessLogic</RootNamespace>
<AssemblyName>Kreta.Eugyintezes.BusinessLogic</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<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>
</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="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="RestSharp, Version=105.2.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\RestSharp.105.2.3\lib\net46\RestSharp.dll</HintPath>
</Reference>
<Reference Include="SimpleInjector, Version=4.0.11.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\SimpleInjector.4.0.11\lib\net45\SimpleInjector.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\Tools\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Infrastructure\DependencyInjection.cs" />
<Compile Include="Models\NebuloEUgySaveResponseModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Service.cs" />
<Compile Include="Services\TorzsadatService.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Framework\Kreta.Framework.csproj">
<Project>{320EF478-7155-441D-B1E9-47EC3E57FB45}</Project>
<Name>Kreta.Framework</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.BusinessLogic\Kreta.BusinessLogic.csproj">
<Project>{8876FE0D-841E-422D-A5A0-59239CD98482}</Project>
<Name>Kreta.BusinessLogic</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.Client\Kreta.Client.csproj">
<Project>{4b28e52b-b531-403c-a827-2cc178ff8a4f}</Project>
<Name>Kreta.Client</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.Core\Kreta.Core.csproj">
<Project>{57418d3e-caf1-482c-9b18-85d147abd495}</Project>
<Name>Kreta.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.DataAccessInterfaceGenerated\Kreta.DataAccess.Interfaces.csproj">
<Project>{68318C3F-0779-4755-848E-B270F6BAC40B}</Project>
<Name>Kreta.DataAccess.Interfaces</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.DataAccessManual\Kreta.DataAccessManual.csproj">
<Project>{3212F2BF-6883-48B4-9F7D-0DFF4C826221}</Project>
<Name>Kreta.DataAccessManual</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.Enums\Kreta.Enums.csproj">
<Project>{1D5E0AC2-DFAB-4D32-9AD1-B5788A7D06BD}</Project>
<Name>Kreta.Enums</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.Resources\Kreta.Resources.csproj">
<Project>{DFCB4D33-B599-42B2-98C6-B60FD220DB0C}</Project>
<Name>Kreta.Resources</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.BusinessLogic.Interface\Kreta.Eugyintezes.BusinessLogic.Interface.csproj">
<Project>{35E59B3A-A3FE-4536-A573-DE06D94B1C61}</Project>
<Name>Kreta.Eugyintezes.BusinessLogic.Interface</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.Domain\Kreta.Eugyintezes.Domain.csproj">
<Project>{2B2F2FB3-A8AE-4C90-850E-251FF484176D}</Project>
<Name>Kreta.Eugyintezes.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.Infrastructure\Kreta.Eugyintezes.Infrastructure.csproj">
<Project>{414666cb-4ad8-43f8-b26c-19570bce866e}</Project>
<Name>Kreta.Eugyintezes.Infrastructure</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,12 @@
using System;
namespace Kreta.Eugyintezes.BusinessLogic.Models
{
public class NebuloEUgySaveResponseModel
{
public string OktatasiAzonosito { get; set; }
public DateTime SzuletesiDatum { get; set; }
public string Statusz { get; set; }
public string MuveletStatusz { get; set; }
}
}

View File

@@ -0,0 +1,55 @@
using System;
using Kreta.DataAccessManual;
using Kreta.Eugyintezes.BusinessLogic.Interface;
namespace Kreta.Eugyintezes.BusinessLogic
{
internal class Service
{
protected IServiceContext ServiceContext { get; }
private int tanevId;
private int intezmenyId;
protected int TanevId
{
get
{
if (tanevId <= 0)
{
tanevId = GetTanevId();
}
return tanevId;
}
}
protected int IntezmenyId
{
get
{
if (intezmenyId <= 0)
{
intezmenyId = GetIntezmenyId();
}
return intezmenyId;
}
}
private int GetTanevId()
{
return Dal.MobileConnection.Run(ServiceContext.IntezmenyAzonosito, null, h => h.TanevDal().GetAktivTanevId());
}
private int GetIntezmenyId()
{
var azonosito = ServiceContext.IntezmenyAzonosito;
return Dal.MobileConnection.Run(ServiceContext.IntezmenyAzonosito, null, h => h.IntezmenyDal().GetIntezmenyIdByAzonosito(azonosito).Value);
}
public Service(IServiceContext serviceContext)
{
this.ServiceContext = serviceContext ?? throw new ArgumentNullException(nameof(serviceContext));
}
}
}

View File

@@ -0,0 +1,63 @@
<?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="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>
<dependentAssembly>
<assemblyIdentity name="CacheManager.Core" publicKeyToken="5b450b4fb65c4cdb" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.0" newVersion="4.0.4.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>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup></configuration>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Meziantou.Analyzer" version="1.0.688" targetFramework="net48" developmentDependency="true" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net48" />
<package id="RestSharp" version="105.2.3" targetFramework="net48" />
<package id="SimpleInjector" version="4.0.11" targetFramework="net48" />
</packages>

View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Kreta.eUgyintezes.Domain</RootNamespace>
<AssemblyName>Kreta.eUgyintezes.Domain</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" Version="1.0.696">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class AdatszotarDto
{
public int KretaAzonosito { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,48 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class AlkalmazottAdatokDto
{
public int KretaAzonosito { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
public bool IsIgazgato { get; set; }
public bool IsIgazgatoHelyettes { get; set; }
public bool IsOsztalyfonok { get; set; }
public bool IsOsztalyfonokHelyettes { get; set; }
public bool IsAdmin { get; set; }
public bool IsTanar { get; set; }
public bool IsNoks { get; set; }
public bool IsEgyeb { get; set; }
public string Nev { get; set; }
public string Titulus { get; set; }
public string OktatasiAzonosito { get; set; }
public string Osztaly { get; set; }
public string FunkcioTeruletSAPKod { get; set; }
}
public class OsztalyFonokAdatokDto
{
public int KretaAzonosito { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
public bool IsOsztalyfonok { get; set; }
public bool IsOsztalyfonokHelyettes { get; set; }
public string Nev { get; set; }
public string Titulus { get; set; }
public string Osztaly { get; set; }
}
public class VezetokEsTanarokDto
{
public int KretaAzonosito { get; set; }
public bool IsAlairo { get; set; }
public string Nev { get; set; }
public string Titulus { get; set; }
public bool IsTorolt { get; set; }
public string OktatasiAzonosito { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class AlkalmazottDto
{
public int KretaAzonosito { get; set; }
public string OktatasiAzonosito { get; set; }
public string Nev { get; set; }
public string Titulus { get; set; }
public bool IsAlairo { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BKIEtkezesDto
{
public bool KollegiumotKer { get; set; }
public bool EtkezestIgenyel { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BKIIgazolvanyokDto
{
public string NekAzonosito { get; set; }
public string TajSzam { get; set; }
public string Adoszam { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BKIIskolaErettsegDto
{
public bool SajatosNevelesiIgenyu { get; set; }
public bool BeilleszkedesiNehezsegu { get; set; }
public DictionaryItemDto HatranyosHelyzet { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BKIRequestDto
{
public string KretaIntezmenyAzonosito { get; set; }
public string Ugyiratszam { get; set; }
public string Urlaptartalom { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BKITanuloDto
{
public SzemelyesAdatokDto SzemelyesAdatok { get; set; } = new SzemelyesAdatokDto();
public ValasztottIntezmenyDto ValasztottIntezmeny { get; set; }
public BKIIgazolvanyokDto Igazolvanyok { get; set; } = new BKIIgazolvanyokDto();
public ElerhetosegekDto Elerhetosegek { get; set; } = new ElerhetosegekDto();
public List<GondviseloDto> Gondviselok { get; set; } = new List<GondviseloDto>();
public BKIIskolaErettsegDto IskolaErettseg { get; set; } = new BKIIskolaErettsegDto();
public BKIEtkezesDto KollegiumEtkezes { get; set; } = new BKIEtkezesDto();
}
}

View File

@@ -0,0 +1,11 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BankszamlaDto
{
public int KretaAzonosito { get; set; }
public string Szamlaszam { get; set; }
public string KedvezmenyezettNeve { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BulkAlkalmazottDto
{
public int KretaAzonosito { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
public bool IsIgazgato { get; set; }
public bool IsIgazgatoHelyettes { get; set; }
public bool IsOsztalyfonok { get; set; }
public bool IsOsztalyfonokHelyettes { get; set; }
public bool IsAdmin { get; set; }
public bool IsTanar { get; set; }
public string Nev { get; set; }
public EmailDto Email { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BulkGondviseloDto
{
public int KretaAzonosito { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
public string GondviseloNev { get; set; }
public EmailDto Email { get; set; }
public string TanuloNev { get; set; }
public int TanuloKretaAzonosito { get; set; }
public List<OsztalyDto> Osztalyok { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class BulkTanuloDto
{
public int KretaAzonosito { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
public string VezetekNev { get; set; }
public string KeresztNev { get; set; }
public List<OsztalyDto> Osztalyok { get; set; }
public EmailDto Email { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class CimDto
{
public int? KretaAzonosito { get; set; }
public string Ajto { get; set; }
public string Emelet { get; set; }
public string Hazszam { get; set; }
public string Helyseg { get; set; }
public string Iranyitoszam { get; set; }
public string KozteruletNeve { get; set; }
public string KozteruletJellege { get; set; }
public OrszagDto Orszag { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
//NOTE: Erik: Kréta azonosítóval és Névvel érkező dictionary elemekhez felesleges külön dto
public class DictionaryItemDto
{
public int KretaAzonosito { get; set; }
public string Nev { get; set; }
}
public class EUGYDictionaryItemDto
{
public int Azonosito { get; set; }
public string Kod { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class ElerhetosegekDto
{
public LakohelyDto Lakohely { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class EmailDto
{
public string EmailCim { get; set; }
public string EmailKezelesUrl { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class EtikaHitErkolcstanDto
{
public ValasztottTantargyDto ValasztottTantargy { get; set; }
public EgyhazDto Egyhaz { get; set; }
}
public class ValasztottTantargyDto
{
public int Azonosito { get; set; }
public string Kod { get; set; }
public string Nev { get; set; }
}
public class EgyhazDto
{
public int Azonosito { get; set; }
public string Kod { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class EtkezesDto
{
public bool EtkezestKer { get; set; }
}
}

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class GondviseloAdatokDto
{
public int KretaAzonosito { get; set; }
public string GondviseloNev { get; set; }
public string EmailCim { get; set; }
public int TanuloId { get; set; }
public string TanuloNev { get; set; }
public string TanuloOktatasiAzonosito { get; set; }
public List<OsztalyDto> Osztalyok { get; set; }
public string RokonsagiFok { get; set; }
public bool IsTorvenyesKepviselo { get; set; }
public int? SZMKOsztalyHelyettesKretaAzonosito { get; set; }
public int? SZMKOsztalyKretaAzonosito { get; set; }
public bool IsSZMK { get; set; }
public string SZMKOsztaly { get; set; }
public string SZMKOsztalyHelyettes { get; set; }
public bool IsSZMKHelyettes { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class GondviseloDto
{
public string Elotag { get; set; }
public string CsaladiNev { get; set; }
public string Utonev { get; set; }
public string SzuletesiCsaladnev { get; set; }
public string SzuletesiUtonev { get; set; }
public string AnyjaSzuletesiCsaladnev { get; set; }
public string AnyjaSzuletesiUtonev { get; set; }
public string Telefonszam { get; set; }
public string EMail { get; set; }
public bool LakohelyEgyezikTanuloAllandoLakhelyevel { get; set; }
public TorvenyesKepviseletJogalapjaDto TorvenyesKepviseletJogalapja { get; set; } = new TorvenyesKepviseletJogalapjaDto();
public LakohelyDto Lakhely { get; set; } = new LakohelyDto();
public DictionaryItemDto RokonsagiFok { get; set; } = new DictionaryItemDto();
}
}

View File

@@ -0,0 +1,16 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class IgazolasDto
{
public string KretaIntezmenyAzonosito { get; set; }
public int AlkalmazottKretaAzonosito { get; set; }
public string Ugyiratszam { get; set; }
public string TanuloOktatasiAzonosito { get; set; }
public DateTime IgazolasElsoNapja { get; set; }
public DateTime IgazolasUtolsoNapja { get; set; }
public string IgazolasSzovege { get; set; }
public string IgazolasTipusKod { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class IgazolvanyokDto
{
public string SzemelyiIgazolvanySzam { get; set; }
public string TajSzam { get; set; }
public string Adoszam { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class IskolaErettsegDto
{
public bool SajatosNevelesiIgenyu { get; set; }
public bool BeilleszkedesiNehezsegu { get; set; }
public bool SzulojeTestvereTartosanBeteg { get; set; }
public bool TestvereIntezmenyTanuloja { get; set; }
public bool MunkaltatoiIgazolasIskolaKorzeteben { get; set; }
public bool IskolaEgyKilometerenBelül { get; set; }
public DictionaryItemDto HatranyosHelyzet { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class IskolaiTavozasDto
{
public bool TavozastKer { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class KozossegiSzolgalatDto
{
public string KretaIntezmenyAzonosito { get; set; }
public int AlkalmazottKretaAzonosito { get; set; }
public string Ugyiratszam { get; set; }
public string TanuloOktatasiAzonosito { get; set; }
public DateTime TeljesitesKezdeteDatum { get; set; }
public DateTime TeljesitesVegeDatum { get; set; }
public string SzervezetNeve { get; set; }
public int IgazoltOrakSzama { get; set; }
public int TevekenysegKretaAzonosito { get; set; }
public string Megjegyzes { get; set; }
public string NaploSorszama { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class KozossegiSzolgalatTevekenysegDto
{
public int KretaAzonosito { get; set; }
public string Megnevezes { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class KozteruletJellegeDto
{
public int KretaAzonosito { get; set; }
public string Megnevezes { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class KretaSzamlaAdatokDto
{
public string OktatasiAzonosito { get; set; }
public int? KretaAlkalmazottAzonosito { get; set; }
public SzamlazasiCimDto SzamlazasiCim { get; set; }
public string FunkcioTeruletSAPKod { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class KretaTanoraiCsoportDto
{
public int KretaAzonosito { get; set; }
public int? OsztalyKretaAzonosito { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class LakhelyDto
{
public string Ajto { get; set; }
public string Emelet { get; set; }
public string Hazszam { get; set; }
public string Helyseg { get; set; }
public string Iranyitoszam { get; set; }
public string KozteruletNeve { get; set; }
public DictionaryItemDto KozteruletJellege { get; set; } = new DictionaryItemDto();
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class LakohelyDto
{
public bool EletvitelszeruLakhelyEgyezik { get; set; }
public CimDto AllandoLakhely { get; set; }
public CimDto EletvitelszeruLakhely { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class EUgyNebuloRequestDto
{
public string Ugyiratszam { get; set; }
public string UrlapTartalom { get; set; }
public string Indoklas { get; set; }
}
public class NebuloDto
{
public string Ugyiratszam { get; set; }
public string Indoklas { get; set; }
public SzemelyesAdatokDto SzemelyesAdatok { get; set; }
public ValasztottIntezmenyDto ValasztottIntezmeny { get; set; }
public IgazolvanyokDto Igazolvanyok { get; set; }
public ElerhetosegekDto Elerhetosegek { get; set; }
public List<GondviseloDto> Gondviselok { get; set; }
public OvodaDto Ovoda { get; set; }
public IskolaErettsegDto IskolaErettseg { get; set; }
public NemzetisegiOktatasDto NemzetisegiOktatas { get; set; }
public IskolaiTavozasDto IskolaiTavozas { get; set; }
public EtikaHitErkolcstanDto EtikaHitErkolcstan { get; set; }
public EtkezesDto Etkezes { get; set; }
public ValasztottTagozatDto ValasztottTagozat { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class NemzetisegiOktatasDto
{
public EUGYDictionaryItemDto Nemzetiseg { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class OrszagDto
{
public int? KretaAzonosito { get; set; }
public string Nev { get; set; }
public string ISO_Alpha3 { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class OsztalyDto
{
public int KretaAzonosito { get; set; }
public string Nev { get; set; }
public int OktNevelesiKategoriaKretaAzonosito { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class OvodaDto
{
//public string Nev { get; set; }
public double EltoltottEvekSzama { get; set; }
//public string OvodaOMAzonosito { get; set; }
//public bool IskolabaLepeshezSzuksegesFejlettseg { get; set; }
//public bool NemMagyarorszagiOvodavalAllJogviszonyban { get; set; }
public CimDto Lakcim { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class SaveResponseDto
{
public string Kod { get; set; }
public string Megnevezes { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class SzamlazasiCimDto
{
public string Adoszam { get; set; }
public CimDto Cim { get; set; }
}
}

View File

@@ -0,0 +1,30 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class SzemelyesAdatokDto
{
public string TanuloElotag { get; set; }
public string TanuloCsaladinev { get; set; }
public string TanuloUtonev { get; set; }
public string TanuloOktatasiAzonosito { get; set; }
public string SzuletesiHely { get; set; }
public DateTime SzuletesiIdo { get; set; }
public string AnyjaSzuletesiCsaladnev { get; set; }
public string AnyjaSzuletesiUtonev { get; set; }
public string Nem { get; set; }
public DictionaryItemDto SzuletesiOrszag { get; set; } = new DictionaryItemDto();
public DictionaryItemDto Allampolgarsag { get; set; } = new DictionaryItemDto();
public DictionaryItemDto Anyanyelv { get; set; } = new DictionaryItemDto();
}
}

View File

@@ -0,0 +1,19 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TanevDto
{
public int KretaAzonosito { get; set; }
public bool Aktiv { get; set; }
public bool Kovetkezo { get; set; }
public string Nev { get; set; }
public DateTime? Kezdete { get; set; }
public DateTime? Vege { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TanitasiRendKivetelNapDto
{
public DateTime Nap { get; set; }
public int TipusAzonosito { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TanoraiCsoportDto
{
public int KretaAzonosito { get; set; }
public int? OsztalyKretaAzonosito { get; set; }
public string Nev { get; set; }
public int OktNevelesiKategoriaKretaAzonosito { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TantargyDto
{
public int KretaAzonosito { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TanuloAdatokDto
{
public int KretaAzonosito { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
public string Vezeteknev { get; set; }
public string Keresztnev { get; set; }
public string OktatasiAzonosito { get; set; }
public string SzuletesiHely { get; set; }
public DateTime SzuletesiIdo { get; set; }
public string AnyjaNeve { get; set; }
public List<OsztalyDto> Osztalyok { get; set; }
public string Elotag { get; set; }
public CimDto Cim { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TanuloDto
{
public int KretaAzonosito { get; set; }
public string Elotag { get; set; }
public string Vezeteknev { get; set; }
public string Keresztnev { get; set; }
public string OktatasiAzonosito { get; set; }
public List<OsztalyDto> Osztalyok { get; set; }
public DateTime SzuletesiIdo { get; set; }
public string EgyediAzonosito { get; set; }
public Guid IdpEgyediAzonosito { get; set; }
}
}

View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TeremAdatokDto
{
public int KretaAzonosito { get; set; }
public int Ar { get; set; }
public CimDto Cim { get; set; }
public DateTime? FoglalhatoIdoszakKezdete { get; set; }
public DateTime? FoglalhatoIdoszakVege { get; set; }
public byte[] Foto { get; set; }
public byte[] SzerzodesMelleklet { get; set; }
public string IntezmenyOmAzonosito { get; set; }
public string Leiras { get; set; }
public int Letszam { get; set; }
public string Megnevezes { get; set; }
public int Terulet { get; set; }
public AdatszotarDto Tipus { get; set; }
public List<TeremElerhetosegDto> NapiElerhetosegek { get; set; }
public string KretaEgyediAzonosito { get; set; }
public AdatszotarDto TulajdonTipusa { get; set; }
public int EmeltAr { get; set; }
public TimeSpan? EmeltArKezdeteOraPerc { get; set; }
public string FunkcioTeruletSAPKod { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TeremElerhetosegDto
{
public int KretaAzonosito { get; set; }
public int HetNapja { get; set; }
public TimeSpan KezdeteOraPerc { get; set; }
public TimeSpan VegeOraPerc { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class TorvenyesKepviseletJogalapjaDto
{
public int Azonosito { get; set; }
public string Kod { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
namespace Kreta.Eugyintezes.Domain.Model.Dto
{
public class ValasztottIntezmenyDto
{
public int Azonosito { get; set; }
public string Nev { get; set; }
}
public class ValasztottTagozatDto
{
public int Azonosito { get; set; }
public string Nev { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace Kreta.Eugyintezes.WebApi.Infrastructure
{
public static class Constants
{
public const string VersionName = "v1";
public const string RoutePrefix = "api/";
public static class ConfigurationSectionNames
{
public const string IdpConfig = nameof(IdpConfig);
public const string ApiKeyConfiguration = nameof(ApiKeyConfiguration);
}
}
}

View File

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Kreta.eUgyintezes.Infrastructure</RootNamespace>
<AssemblyName>Kreta.eUgyintezes.Infrastructure</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" Version="1.0.696">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

View File

@@ -0,0 +1,7 @@
{
"config": {
"connectionStrings": [
"Data Source=kretalocal;User ID=kreta;Password=Porcica1.;Initial Catalog=Kreta;Connection Timeout=3000;"
]
}
}

View File

@@ -0,0 +1,55 @@
using System;
using System.Configuration;
using System.Net;
using System.Web.Configuration;
using System.Web.Http;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(Kreta.Eugyintezes.WebApi.App_Start.Startup))]
namespace Kreta.Eugyintezes.WebApi.App_Start
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
GlobalConfiguration.Configure(WebApiConfig.Register);
//app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
//{
// Authority = ((IdpConfiguration)ConfigurationManager.GetSection(Constants.ConfigurationSectionNames.IdpConfig)).TokenIssuerUrl,
// ValidationMode = ValidationMode.Local
//});
ServicePointManager.ServerCertificateValidationCallback += (requestSender, certificate, chain, sslPolicyErrors) =>
{
return true;
};
IncludeErrorDetailPolicy errorDetailPolicy;
var customErrors = (CustomErrorsSection)ConfigurationManager.GetSection("system.web/customErrors");
switch (customErrors.Mode)
{
case CustomErrorsMode.RemoteOnly:
errorDetailPolicy = IncludeErrorDetailPolicy.LocalOnly;
break;
case CustomErrorsMode.On:
errorDetailPolicy = IncludeErrorDetailPolicy.Never;
break;
case CustomErrorsMode.Off:
errorDetailPolicy = IncludeErrorDetailPolicy.Always;
break;
default:
throw new ArgumentOutOfRangeException();
}
log4net.Config.XmlConfigurator.Configure();
var config = GlobalConfiguration.Configuration;
config.IncludeErrorDetailPolicy = errorDetailPolicy;
app.UseWebApi(config);
}
}
}

View File

@@ -0,0 +1,53 @@
using System.Web.Http;
using Kreta.Core.JsonConverter;
using Kreta.Core.ModelBinder;
using Kreta.Eugyintezes.WebApi.Infrastructure;
using Kreta.Web.Logging.Interceptors;
using Newtonsoft.Json;
using SimpleInjector;
using SimpleInjector.Integration.WebApi;
using SimpleInjector.Lifestyles;
namespace Kreta.Eugyintezes.WebApi
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
var formatter = GlobalConfiguration.Configuration.Formatters.JsonFormatter;
formatter.SerializerSettings = new JsonSerializerSettings
{
Formatting = Formatting.Indented,
TypeNameHandling = TypeNameHandling.None
};
formatter.SerializerSettings.Converters.Add(new StringTrimConverter());
// Web API routes
config.MapHttpAttributeRoutes();
//config.Routes.MapHttpRoute(
// name: "DefaultApi",
// routeTemplate: "api/{controller}/{id}",
// defaults: new { id = RouteParameter.Optional }
//);
config.MessageHandlers.Add(new ApiLoggingHandler());
var container = new Container();
container.Options.DefaultScopedLifestyle = new AsyncScopedLifestyle();
DependencyInjection.RegisterTypes(container);
container.RegisterWebApiControllers(config);
container.Verify();
config.DependencyResolver = new SimpleInjectorWebApiDependencyResolver(container);
config.BindParameter(typeof(string), new StringTrimModelBinder());
}
}
}

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
using Kreta.Eugyintezes.WebApi.Infrastructure;
namespace Kreta.Eugyintezes.WebApi.Attributes
{
internal class ApiKeyAuthorizationAttribute : AuthorizationFilterAttribute, IOverrideFilter
{
const string ApiKey = nameof(ApiKey);
public Type FiltersToOverride
{
get
{
return typeof(IAuthorizationFilter);
}
}
private bool AccessGrantedByApiKey(KeyValuePair<string, IEnumerable<string>> apiKeyHeader)
{
if (apiKeyHeader.Value != null)
{
string targetApiKey = apiKeyHeader.Value?.SingleOrDefault();
if (!string.IsNullOrWhiteSpace(targetApiKey) && targetApiKey == ApiKeyConfiguration.Instance.ApiKey)
{
return true;
}
}
return false;
}
public override void OnAuthorization(HttpActionContext actionContext)
{
var headers = actionContext.Request.Headers;
var apiKeyHeader = headers.SingleOrDefault(x => x.Key.Equals(ApiKey, StringComparison.InvariantCultureIgnoreCase));
if (!AccessGrantedByApiKey(apiKeyHeader))
{
actionContext.Response = new System.Net.Http.HttpResponseMessage(System.Net.HttpStatusCode.Unauthorized);
}
}
}
}

View File

@@ -0,0 +1,131 @@
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using Kreta.Enums;
using Kreta.Eugyintezes.Domain.Model.Dto;
namespace Kreta.Eugyintezes.WebApi.Controllers
{
public partial class TorzsadatController
{
[Route("torzsadat/kozossegiszolgalattevekenyseg")]
[HttpGet]
public KozossegiSzolgalatTevekenysegDto GetKozossegiSzolgalatTevekenyseg(int kretaAzonosito)
{
return TorzsadatService.GetKozossegiSzolgalatTevekenyseg(kretaAzonosito);
}
[Route("torzsadat/kozossegiszolgalattevekenysegek")]
[HttpGet]
public List<KozossegiSzolgalatTevekenysegDto> GetKozossegiSzolgalatTevekenysegek()
{
return TorzsadatService.GetKozossegiSzolgalatTevekenysegekLista();
}
[Route("torzsadat/kozteruletjellege")]
[HttpGet]
public KozteruletJellegeDto GetKozteruletJellege(int kretaAzonosito)
{
return TorzsadatService.GetKozteruletJellege(kretaAzonosito);
}
[Route("torzsadat/kozteruletjellegek")]
[HttpGet]
public List<KozteruletJellegeDto> GetKozteruletJellegek()
{
return TorzsadatService.GetKozteruletJellegek();
}
[Route("torzsadat/orszag")]
[HttpGet]
public OrszagDto GetOrszag(int orszagKretaAzonosito)
{
return TorzsadatService.GetOrszagTipus(orszagKretaAzonosito);
}
[Route("torzsadat/orszagok")]
[HttpGet]
public List<OrszagDto> GetOrszagok()
{
return TorzsadatService.GetOrszagTipusok();
}
[Route("torzsadat/teremtipusok")]
[HttpGet]
public List<AdatszotarDto> GetTeremTipusok()
{
return TorzsadatService.GetAdatszotarakByTipus(GeneratedAdatszotarTipusEnum.TeremTipus);
}
[Route("torzsadat/igazolvanytipus")]
[HttpGet]
public AdatszotarDto GetIgazolvanyTipus(int kretaAzonosito)
{
return TorzsadatService.GetAdatszotarByTipus(kretaAzonosito, GeneratedAdatszotarTipusEnum.IgazolvanyTipus);
}
[Route("torzsadat/igazolvanytipusok")]
[HttpGet]
public List<AdatszotarDto> GetIgazolvanyTipusok()
{
return TorzsadatService.GetAdatszotarakByTipus(GeneratedAdatszotarTipusEnum.IgazolvanyTipus);
}
[Route("torzsadat/rokonsagifok")]
[HttpGet]
public AdatszotarDto GetRokonsagiFok(int kretaAzonosito)
{
return TorzsadatService.GetAdatszotarByTipus(kretaAzonosito, GeneratedAdatszotarTipusEnum.RokonsagiFok);
}
[Route("torzsadat/rokonsagifokok")]
[HttpGet]
public List<AdatszotarDto> GetRokonsagiFokok()
{
return TorzsadatService.GetAdatszotarakByTipus(GeneratedAdatszotarTipusEnum.RokonsagiFok);
}
[Route("torzsadat/allampolgarsag")]
[HttpGet]
public AdatszotarDto GetAllampolgarsag(int kretaAzonosito)
{
return TorzsadatService.GetAdatszotarByTipus(kretaAzonosito, GeneratedAdatszotarTipusEnum.Allampolgarsag);
}
[Route("torzsadat/allampolgarsagok")]
[HttpGet]
public List<AdatszotarDto> GetAllampolgarsagok()
{
return TorzsadatService.GetAdatszotarakByTipus(GeneratedAdatszotarTipusEnum.Allampolgarsag);
}
[Route("torzsadat/anyanyelv")]
[HttpGet]
public AdatszotarDto GetAnyanyelv(int kretaAzonosito)
{
return TorzsadatService.GetAdatszotarByTipus(kretaAzonosito, GeneratedAdatszotarTipusEnum.Anyanyelv);
}
[Route("torzsadat/anyanyelvek")]
[HttpGet]
public List<AdatszotarDto> GetAnyanyelvek()
{
return TorzsadatService.GetAdatszotarakByTipus(GeneratedAdatszotarTipusEnum.Anyanyelv);
}
[Route("torzsadat/hatranyoshelyzet")]
[HttpGet]
public AdatszotarDto GetHatranyosHelyzet(int kretaAzonosito)
{
return TorzsadatService.GetAdatszotarByTipus(kretaAzonosito, GeneratedAdatszotarTipusEnum.HatranyosHelyzetTipus);
}
[Route("torzsadat/hatranyoshelyzetek")]
[HttpGet]
public List<AdatszotarDto> GetHatranyosHelyzetek()
{
var result = TorzsadatService.GetAdatszotarakByTipus(GeneratedAdatszotarTipusEnum.HatranyosHelyzetTipus);
return result.Where(x => x.KretaAzonosito != (int)HatranyosHelyzetTipusEnum.hatranyos_helyzetu_halmozottan_hatranyos_helyzetu).ToList();
}
}
}

View File

@@ -0,0 +1,537 @@
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Web.Http;
using Kreta.Eugyintezes.BusinessLogic.Interface.Services;
using Kreta.Eugyintezes.Domain.Model.Dto;
using Kreta.Eugyintezes.WebApi.Attributes;
using Kreta.Eugyintezes.WebApi.Infrastructure;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
namespace Kreta.Eugyintezes.WebApi.Controllers
{
[ApiKeyAuthorization]
[RoutePrefix(Constants.RoutePrefix + Constants.VersionName)]
public partial class TorzsadatController : ApiController
{
private ITorzsadatService TorzsadatService { get; }
public TorzsadatController(ITorzsadatService torzsadatService)
{
this.TorzsadatService = torzsadatService ?? throw new ArgumentNullException(nameof(torzsadatService));
}
[Route("torzsadat/alkalmazottak")]
[HttpGet]
public List<AlkalmazottDto> GetAlkalmazottak(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetAlkalmazottak(tanevKretaAzonosito);
}
[Route("torzsadat/alkalmazott")]
[HttpGet]
public AlkalmazottDto GetAlkalmazott(int kretaAzonosito, int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetAlkalmazott(kretaAzonosito, tanevKretaAzonosito);
}
[Route("torzsadat/gondviselogyerekadatok")]
[HttpGet]
public TanuloDto GetGondviseloGyerekAdatok(int gondviseloKretaAzonosito, int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetGondviseloGyerekAdatok(gondviseloKretaAzonosito, tanevKretaAzonosito);
}
[Route("torzsadat/kozossegiszolgalatosszesigazoltorakszama")]
[HttpGet]
public int GetKozossegiSzolgalatOsszesIgazoltOrakSzama(string tanuloOktatasiAzonosito)
{
return TorzsadatService.GetKozossegiSzolgalatOsszesIgazoltOrakSzama(tanuloOktatasiAzonosito);
}
[Route("torzsadat/osztaly")]
[HttpGet]
public OsztalyDto GetOsztaly(int kretaAzonosito)
{
return TorzsadatService.GetOsztaly(kretaAzonosito);
}
[Route("torzsadat/osztalyok")]
[HttpGet]
public List<OsztalyDto> GetOsztalyok(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetOsztalyok(tanevKretaAzonosito);
}
[Route("torzsadat/osztalytanulok")]
[HttpGet]
public List<TanuloDto> GetOsztalyTanulok(int osztalyKretaAzonosito)
{
return TorzsadatService.GetOsztalyTanulok(osztalyKretaAzonosito);
}
[Route("torzsadat/tanevkezdete")]
[HttpGet]
public DateTime? GetTanevKezdete()
{
return TorzsadatService.GetTanevKezdete();
}
[Route("torzsadat/tanoraicsoport")]
[HttpGet]
public TanoraiCsoportDto GetTanoraiCsoport(int kretaAzonosito)
{
return TorzsadatService.GetTanoraiCsoport(kretaAzonosito);
}
[Route("torzsadat/tanoraicsoportok")]
[HttpGet]
public List<TanoraiCsoportDto> GetTanoraiCsoportok()
{
return TorzsadatService.GetTanoraiCsoportok();
}
[Route("torzsadat/tanoraicsoportoktanulok")]
[HttpGet]
public List<TanuloDto> GetTanoraiCsoportTanulok(int tanoraiCsoportKretaAzonosito)
{
return TorzsadatService.GetTanoraiCsoportTanulok(tanoraiCsoportKretaAzonosito);
}
[Route("torzsadat/tantargy")]
[HttpGet]
public TantargyDto GetTantargy(int kretaAzonosito)
{
return TorzsadatService.GetTantargy(kretaAzonosito);
}
[Route("torzsadat/tanuloadatok")]
[HttpGet]
public TanuloAdatokDto GetTanuloAdatok(string tanuloOktatasiAzonosito, int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetTanuloAdatok(tanuloOktatasiAzonosito, tanevKretaAzonosito);
}
[Route("torzsadat/tanulotantargyak")]
[HttpGet]
public List<TantargyDto> GetTanuloTantargyak(string tanuloOktatasiAzonosito)
{
return TorzsadatService.GetTanuloTantargyak(tanuloOktatasiAzonosito);
}
[Route("torzsadat/sendiedm")]
[HttpGet]
public void SendIedm(string tanuloOktatasiAzonosito, DateTime tavolletKezdete, DateTime tavolletVege)
{
TorzsadatService.SendIedm(tanuloOktatasiAzonosito, tavolletKezdete, tavolletVege);
}
[Route("torzsadat/gondviseloemailcim")]
[HttpGet]
public EmailDto GetGondviseloEmailCim(int kretaAzonosito)
{
return TorzsadatService.GetGondviseloEmailCim(kretaAzonosito);
}
[Route("torzsadat/felhasznaloemailcim")]
[HttpGet]
public EmailDto GetFelhasznaloEmailCim(int kretaAzonosito)
{
return TorzsadatService.GetFelhasznaloEmailCim(kretaAzonosito);
}
[Route("torzsadat/tanulotanoraicsoportok")]
[HttpGet]
public List<TanoraiCsoportDto> GetTanuloTanoraiCsoportok(string tanuloOktatasiAzonosito)
{
return TorzsadatService.GetTanuloTanoraiCsoportok(tanuloOktatasiAzonosito);
}
[Route("torzsadat/osztalytanoraicsoportok")]
[HttpGet]
public List<TanoraiCsoportDto> GetOsztalyTanoraiCsoportok(int osztalyKretaAzonosito)
{
return TorzsadatService.GetOsztalyTanoraiCsoportok(osztalyKretaAzonosito);
}
[Route("torzsadat/tanulokbyosztaly")]
[HttpGet]
public List<TanuloAdatokDto> GetTanulokByOsztaly(int osztalyKretaAzonosito, int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetTanulokByOsztaly(osztalyKretaAzonosito, tanevKretaAzonosito);
}
[Route("torzsadat/tanulokbytanoraicsoport")]
[HttpGet]
public List<TanuloAdatokDto> GetTanulokByTanoraiCsoport(int csoportKretaAzonosito)
{
return TorzsadatService.GetTanulokByTanoraiCsoport(csoportKretaAzonosito);
}
[Route("torzsadat/tanevek")]
[HttpGet]
public List<TanevDto> GetTanevek()
{
return TorzsadatService.GetTanevek();
}
[Route("torzsadat/tanevekosszes")]
[HttpGet]
public List<TanevDto> GetOsszesTanevek()
{
return TorzsadatService.GetOsszesTanevek();
}
[Route("torzsadat/szmkosztalyok")]
[HttpGet]
public List<OsztalyDto> GetSZMKOsztalyok(int gondviseloKretaAzonosito)
{
return TorzsadatService.GetSZMKOsztalyok(gondviseloKretaAzonosito);
}
[Route("torzsadat/aktualisgondviselocimek")]
[HttpGet]
public List<CimDto> GetGondviseloCimek(int gondviseloKretaAzonosito)
{
return TorzsadatService.GetAktualisGondviseloCimek(gondviseloKretaAzonosito);
}
[Route("torzsadat/felhasznalocimek")]
[HttpGet]
public List<CimDto> GetFelhasznaloCimek(string kretaIntezmenyAzonosito, int felhasznaloKretaAzonosito)
{
return TorzsadatService.GetFelhasznaloCimek(kretaIntezmenyAzonosito, felhasznaloKretaAzonosito);
}
[Route("torzsadat/felhasznalocimek")]
[HttpGet]
public List<CimDto> GetFelhasznaloCimek(int felhasznaloKretaAzonosito)
{
return TorzsadatService.GetFelhasznaloCimek(felhasznaloKretaAzonosito);
}
[Route("torzsadat/cim")]
[HttpGet]
public CimDto GetCim(int cimKretaAzonosito)
{
return TorzsadatService.GetCim(cimKretaAzonosito);
}
[Route("torzsadat/gyerekemosztalyabankszamlaszam")]
[HttpGet]
public BankszamlaDto GetGyerekemOsztalyaBankszamlaszam(int gondviseloKretaAzonosito)
{
return TorzsadatService.GetGyerekemOsztalyaBankszamlaszam(gondviseloKretaAzonosito);
}
[Route("torzsadat/tanarok")]
[HttpGet]
public List<VezetokEsTanarokDto> GetTanarok(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetTanarok(tanevKretaAzonosito);
}
[Route("torzsadat/noksalkalmazottak")]
[HttpGet]
public List<VezetokEsTanarokDto> GetNOKSAlkalmazottak(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetNOKSAlkalmazottak(tanevKretaAzonosito);
}
[Route("torzsadat/egyebalkalmazottak")]
[HttpGet]
public List<VezetokEsTanarokDto> GetEgyebAlkalmazottak(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetEgyebAlkalmazottak(tanevKretaAzonosito);
}
[Route("torzsadat/osztalyfonokok")]
[HttpGet]
public List<OsztalyFonokAdatokDto> GetOsztalyfonokok(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetOsztalyfonokok(tanevKretaAzonosito);
}
[Route("torzsadat/igazgatosagialkalmazottak")]
[HttpGet]
public List<VezetokEsTanarokDto> GetIgazgatosagiAlkalmazottak(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetIgazgatosagiAlkalmazottak(tanevKretaAzonosito);
}
[Route("torzsadat/kretaadminisztratorok")]
[HttpGet]
public List<VezetokEsTanarokDto> GetKretaAdminisztratorok(int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetKretaAdminisztratorok(tanevKretaAzonosito);
}
[Route("torzsadat/osztalygondviselok")]
[HttpGet]
public List<GondviseloAdatokDto> GetOsztalyGondviselok(int osztalyKretaAzonosito)
{
return TorzsadatService.GetOsztalyGondviselok(osztalyKretaAzonosito);
}
[Route("torzsadat/tanoraicsoportgondviselok")]
[HttpGet]
public List<GondviseloAdatokDto> GetTanoraiCsoportGondviselok(int tanoraiCsoportKretaAzonosito)
{
return TorzsadatService.GetTanoraiCsoportGondviselok(tanoraiCsoportKretaAzonosito);
}
[Route("torzsadat/alkalmazottadatok")]
[HttpGet]
public AlkalmazottAdatokDto GetAlkalmazottAdatok(int kretaFelhasznaloAzonosito, int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetAlkalmazottAdatok(kretaFelhasznaloAzonosito, tanevKretaAzonosito);
}
[Route("torzsadat/gondviseloadatok")]
[HttpGet]
public GondviseloAdatokDto GetGondviseloAdatok(int kretaFelhasznaloAzonosito)
{
return TorzsadatService.GetGondviseloAdatok(kretaFelhasznaloAzonosito);
}
[Route("torzsadat/szmkkepviselok")]
[HttpGet]
public List<GondviseloAdatokDto> GetSZMKKepviselok()
{
return TorzsadatService.GetSZMKKepviselok();
}
[Route("torzsadat/tanuloadatok")]
[HttpGet]
public TanuloAdatokDto GetTanuloAdatokByKretaAzonosito(int kretaAzonosito)
{
return TorzsadatService.GetTanuloAdatokByKretaAzonosito(kretaAzonosito);
}
[Route("torzsadat/tanuloosztalyfonok")]
[HttpGet]
public AlkalmazottDto GetTanuloOsztalyfonok(string oktatasiAzonosito)
{
return TorzsadatService.GetTanuloOsztalyfonok(oktatasiAzonosito);
}
[Route("torzsadat/eugyintezokesosztalyfonokok")]
[HttpGet]
public List<AlkalmazottDto> GetEUgyintezokEsOsztalyfonokok()
{
return TorzsadatService.GetEUgyintezokEsOsztalyfonokok();
}
[Route("torzsadat/foglalhatotermek")]
[HttpGet]
public List<TeremAdatokDto> GetFoglalhatoTermek()
{
return TorzsadatService.GetFoglalhatoTermek();
}
[Route("torzsadat/tanitottosztalyok")]
[HttpGet]
public List<OsztalyDto> GetTanitottOsztalyok(int alkalmazottKretaAzonosito)
{
return TorzsadatService.GetTanitottOsztalyok(alkalmazottKretaAzonosito);
}
[Route("torzsadat/osztalyfonokoltosztalyok")]
[HttpGet]
public List<OsztalyDto> GetOsztalyfonokoltOsztalyok(int alkalmazottKretaAzonosito)
{
return TorzsadatService.GetOsztalyfonokoltOsztalyok(alkalmazottKretaAzonosito);
}
[Route("torzsadat/bulktanuloszamlaadatok")]
[HttpPost]
public List<KretaSzamlaAdatokDto> GetBulkTanuloSzamlaAdatok(int osztalyCsoportKretaAzonosito, List<string> oktatasiAzonositok)
{
return TorzsadatService.GetBulkTanuloSzamlaAdatok(osztalyCsoportKretaAzonosito, oktatasiAzonositok);
}
[Route("torzsadat/bulkalkalmazottszamlaadatok")]
[HttpPost]
public List<KretaSzamlaAdatokDto> GetBulkAlkalmazottSzamlaAdatok(List<int> kretaFelhasznaloAzonositok)
{
return TorzsadatService.GetBulkAlkalmazottSzamlaAdatok(kretaFelhasznaloAzonositok);
}
[Route("torzsadat/bulkgondviselogyerekadatok")]
[HttpPost]
public List<TanuloDto> GetBulkGondviseloGyerekAdatok(List<int> gondviseloKretaAzonositok)
{
return TorzsadatService.GetBulkGondviseloGyerekAdatok(gondviseloKretaAzonositok);
}
[Route("torzsadat/sendbai")]
[HttpPost]
public void SendBAI([FromBody] JObject jsonData)
{
EUgyNebuloRequestDto requestDto = JsonConvert.DeserializeObject<EUgyNebuloRequestDto>(jsonData.ToString());
NebuloDto nebuloDto = JsonConvert.DeserializeObject<NebuloDto>(requestDto.UrlapTartalom);
nebuloDto.Ugyiratszam = requestDto.Ugyiratszam;
if (!string.IsNullOrWhiteSpace(requestDto.Indoklas))
{
nebuloDto.Indoklas = Regex.Replace(requestDto.Indoklas, "<.*?>", string.Empty);
}
TorzsadatService.SaveNebuloFromBai(nebuloDto, jsonData.ToString());
}
[Route("torzsadat/bulktanulok")]
[HttpPost]
public List<TanuloDto> GetBulkTanulok(List<string> oktatasiAzonositok)
{
return TorzsadatService.GetBulkTanulok(oktatasiAzonositok);
}
[Route("torzsadat/elsoalairo")]
[HttpGet]
public AlkalmazottDto GetElsoAlairo()
{
return TorzsadatService.GetElsoAlairo();
}
[Route("igazolasok")]
[HttpPost]
public SaveResponseDto CreateIgazolas([FromBody] JObject jsonData)
{
IgazolasDto requestDto = JsonConvert.DeserializeObject<IgazolasDto>(jsonData.ToString());
return TorzsadatService.SaveIgazolasok(requestDto, jsonData.ToString());
}
[Route("kozossegiszolgalatok")]
[HttpPost]
public SaveResponseDto CreateKozossegiSzolgalat([FromBody] JObject jsonData)
{
KozossegiSzolgalatDto requestDto = JsonConvert.DeserializeObject<KozossegiSzolgalatDto>(jsonData.ToString());
return TorzsadatService.SaveKozossegiszolgalatok(requestDto, jsonData.ToString());
}
[Route("alkalmazottak/{alkalmazottKretaAzonosito}/modositasijog")]
[HttpGet]
public bool CheckAlkalmazottModositasiJog(int alkalmazottKretaAzonosito, string jogTipus, string oktatasiAzonosito)
{
return TorzsadatService.GetAlkalmazottModositasiJog(alkalmazottKretaAzonosito, jogTipus, oktatasiAzonosito);
}
[Route("tanulok/kifirimport/letezik")]
[HttpGet]
public SaveResponseDto CheckTanuloLetezik(string oktatasiAzonosito, string elotag, string csaladiNev, string utonev, string szuletesiHely, DateTime szuletesiIdo)
{
return TorzsadatService.GetTanuloLetezik(oktatasiAzonosito, elotag, csaladiNev, utonev, szuletesiHely, szuletesiIdo);
}
[Route("alkalmazottak/eugyintezo")]
[HttpGet]
public List<AlkalmazottDto> GetEUgyintezok()
{
return TorzsadatService.GetEUgyintezok();
}
[Route("tanulok/{tanuloOktatasiAzonosito}/bkiurlap")]
[HttpGet]
public string GetTanuloAdatokBKIUrlaphoz(string tanuloOktatasiAzonosito)
{
var result = TorzsadatService.GetTanuloBKIUrlap(tanuloOktatasiAzonosito);
var jsonSerializerSettings = new JsonSerializerSettings
{
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
return JsonConvert.SerializeObject(result, jsonSerializerSettings);
}
[Route("ugyek/bki")]
[HttpPost]
public SaveResponseDto SendBKI([FromBody] JObject jsonData)
{
BKIRequestDto requestDto = JsonConvert.DeserializeObject<BKIRequestDto>(jsonData.ToString());
BKITanuloDto tanuloDto = JsonConvert.DeserializeObject<BKITanuloDto>(requestDto.Urlaptartalom);
return TorzsadatService.SaveBKITanulo(tanuloDto, jsonData.ToString(), requestDto.Ugyiratszam);
}
[Route("torzsadat/tanev")]
[HttpGet]
public TanevDto GetTanev(int tanevKretaAzonosito)
{
return TorzsadatService.GetTanev(tanevKretaAzonosito);
}
[Route("tanitasirendkivetelnapok")]
[HttpGet]
public List<TanitasiRendKivetelNapDto> GetTanitasiRendKivetelNapok(DateTime kezdete, DateTime vege)
{
return TorzsadatService.GetTanitasiRendKivetelNapok(kezdete, vege);
}
[Route("tanulok/diakigazolvanyszam")]
[HttpGet]
public TanuloDto GetTanuloByDiakigazolvanyszam(string diakigazolvanyszam)
{
return TorzsadatService.GetTanuloByDiakigazolvanyszam(diakigazolvanyszam);
}
[Route("torzsadat/vezetetttanoraicsoportok")]
[HttpGet]
public List<KretaTanoraiCsoportDto> GetVezetettTanoraiCsoportok(int alkalmazottKretaAzonosito)
{
return TorzsadatService.GetVezetettTanoraiCsoportok(alkalmazottKretaAzonosito);
}
[Route("torzsadat/tanitotttanoraicsoportok")]
[HttpGet]
public List<KretaTanoraiCsoportDto> GetTanitottTanoraiCsoportok(int alkalmazottKretaAzonosito)
{
return TorzsadatService.GetTanitottTanoraiCsoportok(alkalmazottKretaAzonosito);
}
[Route("status")]
[HttpGet]
public IHttpActionResult GetStatuszInformacio()
{
var content = new
{
BuildNumber = Core.KretaVersion.Instance.MainVersion
};
var serializerSettings = new JsonSerializerSettings
{
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
return Json(content, serializerSettings);
}
[Route("torzsadat/bulktanulokbykretaazonosito")]
[HttpPost]
public List<BulkTanuloDto> GetBulkTanuloAdatok(List<int> kretaAzonositok)
{
return TorzsadatService.GetBulkTanuloAdatok(kretaAzonositok);
}
[Route("torzsadat/bulkgondviseloadatok")]
[HttpPost]
public List<BulkGondviseloDto> GetBulkGondviseloAdatok(List<int> kretaAzonositok)
{
return TorzsadatService.GetBulkGondviseloAdatok(kretaAzonositok);
}
[Route("torzsadat/bulkalkalmazottadatok")]
[HttpPost]
public List<BulkAlkalmazottDto> GetBulkAlkalmazottAdatok(List<int> kretaAzonositok)
{
return TorzsadatService.GetBulkAlkalmazottAdatok(kretaAzonositok);
}
[Route("torzsadat/tanuloadatok")]
[HttpGet]
public TanuloDto GetTanuloAdatok([FromUri(Name = "idpEgyediAzonosito")] Guid tanuloIdpEgyediAzonosito, int? tanevKretaAzonosito = null)
{
return TorzsadatService.GetTanuloAdatok(tanuloIdpEgyediAzonosito, tanevKretaAzonosito);
}
}
}

View File

@@ -0,0 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="Kreta.Eugyintezes.WebApi.WebApiApplication" Language="C#" %>

View File

@@ -0,0 +1,49 @@
using System;
using System.Configuration;
using System.Web;
using System.Xml;
namespace Kreta.Eugyintezes.WebApi
{
public class WebApiApplication : HttpApplication
{
protected static KretaServer.KretaServer kretaServer;
protected void Application_Start()
{
ServerStarter();
}
protected void Application_End(object sender, EventArgs e)
{
if (kretaServer != null)
{
if (kretaServer.IsRunning)
{
kretaServer.Stop();
}
else
{
kretaServer = null;
}
}
}
private void ServerStarter()
{
if (kretaServer == null || kretaServer.IsRunning == false)
{
var fullnode = (XmlNode)ConfigurationManager.GetSection("ServerConfig");
var doc = new XmlDocument();
doc.LoadXml(fullnode.SelectSingleNode("/ServerConfig/config").OuterXml);
if (kretaServer == null)
{
kretaServer = new KretaServer.KretaServer(doc.DocumentElement);
}
kretaServer.Start();
}
}
}
}

View File

@@ -0,0 +1,26 @@
using System;
using System.Configuration;
namespace Kreta.Eugyintezes.WebApi.Infrastructure
{
public class ApiKeyConfiguration : ConfigurationSection, IApiKeyConfiguration
{
static Lazy<ApiKeyConfiguration> instance;
public static ApiKeyConfiguration Instance
{
get
{
return instance.Value;
}
}
[ConfigurationProperty(nameof(ApiKey), IsRequired = true)]
public string ApiKey => (string)base[nameof(ApiKey)];
static ApiKeyConfiguration()
{
instance = new Lazy<ApiKeyConfiguration>(() => (ApiKeyConfiguration)ConfigurationManager.GetSection(Constants.ConfigurationSectionNames.ApiKeyConfiguration));
}
}
}

View File

@@ -0,0 +1,15 @@
using Kreta.Eugyintezes.BusinessLogic.Interface;
using SimpleInjector;
namespace Kreta.Eugyintezes.WebApi.Infrastructure
{
public static class DependencyInjection
{
public static void RegisterTypes(Container container)
{
BusinessLogic.Infrastructure.DependencyInjection.RegisterTypes(container);
container.Register<IServiceContext, WebApiServiceContext>(Lifestyle.Scoped);
}
}
}

View File

@@ -0,0 +1,7 @@
namespace Kreta.Eugyintezes.WebApi.Infrastructure
{
interface IApiKeyConfiguration
{
string ApiKey { get; }
}
}

View File

@@ -0,0 +1,7 @@
namespace Kreta.Eugyintezes.WebApi.Infrastructure
{
public interface IIdpConfiguration
{
string TokenIssuerUrl { get; }
}
}

View File

@@ -0,0 +1,10 @@
using System.Configuration;
namespace Kreta.Eugyintezes.WebApi.Infrastructure
{
public class IdpConfiguration : ConfigurationSection, IIdpConfiguration
{
[ConfigurationProperty(nameof(TokenIssuerUrl), IsRequired = true)]
public string TokenIssuerUrl => (string)this[nameof(TokenIssuerUrl)];
}
}

View File

@@ -0,0 +1,9 @@
using Kreta.Eugyintezes.BusinessLogic.Interface;
namespace Kreta.Eugyintezes.WebApi.Infrastructure
{
public class WebApiServiceContext : IServiceContext
{
public string IntezmenyAzonosito => KretaServer.KretaServer.Instance.GetOrganizationIdentifier();
}
}

View File

@@ -0,0 +1,374 @@
<Project ToolsVersion="15.0" DefaultTargets="Build" 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>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{8A0062BC-7D1A-42F0-98AD-64AE6582DB5B}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Kreta.Eugyintezes.WebApi</RootNamespace>
<AssemblyName>Kreta.Eugyintezes.WebApi</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<UseIISExpress>false</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="CacheManager.Core, Version=1.2.0.0, Culture=neutral, PublicKeyToken=5b450b4fb65c4cdb, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\CacheManager.Core.1.2.0\lib\net45\CacheManager.Core.dll</HintPath>
</Reference>
<Reference Include="CacheManager.StackExchange.Redis, Version=1.2.0.0, Culture=neutral, PublicKeyToken=5b450b4fb65c4cdb, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\CacheManager.StackExchange.Redis.1.2.0\lib\net461\CacheManager.StackExchange.Redis.dll</HintPath>
</Reference>
<Reference Include="CacheManager.SystemRuntimeCaching, Version=1.2.0.0, Culture=neutral, PublicKeyToken=5b450b4fb65c4cdb, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\CacheManager.SystemRuntimeCaching.1.2.0\lib\net45\CacheManager.SystemRuntimeCaching.dll</HintPath>
</Reference>
<Reference Include="DevDefined.OAuth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a3261f5b4697e67d, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\DevDefined.OAuth.0.2\lib\DevDefined.OAuth.dll</HintPath>
</Reference>
<Reference Include="Easy.Logger, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Easy.Logger.3.2.0\lib\net40\Easy.Logger.dll</HintPath>
</Reference>
<Reference Include="Easy.Logger.Interfaces, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Easy.Logger.Interfaces.1.1.0\lib\net40\Easy.Logger.Interfaces.dll</HintPath>
</Reference>
<Reference Include="Elasticsearch.Net, Version=7.0.0.0, Culture=neutral, PublicKeyToken=96c599bbe3e70f5d, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Elasticsearch.Net.7.0.0\lib\net461\Elasticsearch.Net.dll</HintPath>
</Reference>
<Reference Include="Hangfire.Core, Version=1.7.27.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Hangfire.Core.1.7.27\lib\net46\Hangfire.Core.dll</HintPath>
</Reference>
<Reference Include="IdentityModel, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\IdentityModel.1.9.2\lib\net45\IdentityModel.dll</HintPath>
</Reference>
<Reference Include="IdentityServer3.AccessTokenValidation, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\IdentityServer3.AccessTokenValidation.2.14.0\lib\net45\IdentityServer3.AccessTokenValidation.dll</HintPath>
</Reference>
<Reference Include="Kreta.Core.Configuration, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Kreta.Core.Configuration.1.3.20119.1\lib\net452\Kreta.Core.Configuration.dll</HintPath>
</Reference>
<Reference Include="Kreta.Web.Logging, Version=1.4.5.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Kreta.Web.Logging.1.4.5\lib\net48\Kreta.Web.Logging.dll</HintPath>
</Reference>
<Reference Include="Kreta.Web.Logging.Abstractions, Version=1.0.12.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Kreta.Web.Logging.Abstractions.1.0.12\lib\net48\Kreta.Web.Logging.Abstractions.dll</HintPath>
</Reference>
<Reference Include="log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\log4net.2.0.8\lib\net45-full\log4net.dll</HintPath>
</Reference>
<Reference Include="log4net.ElasticSearch, Version=2.3.6.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\log4net.ElasticSearch.2.3.6\lib\net45\log4net.ElasticSearch.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.1\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.DotNet.PlatformAbstractions, Version=2.0.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.DotNet.PlatformAbstractions.2.0.4\lib\net45\Microsoft.DotNet.PlatformAbstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.Configuration.2.0.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Configuration.Abstractions, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.Configuration.Abstractions.2.0.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Configuration.Binder, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.Configuration.Binder.2.0.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.0.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.DependencyModel, Version=2.0.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.DependencyModel.2.0.4\lib\net451\Microsoft.Extensions.DependencyModel.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Options, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.Options.2.0.1\lib\netstandard2.0\Microsoft.Extensions.Options.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Options.ConfigurationExtensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.Options.ConfigurationExtensions.2.0.0\lib\netstandard2.0\Microsoft.Extensions.Options.ConfigurationExtensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Extensions.Primitives, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Extensions.Primitives.2.0.0\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath>
</Reference>
<Reference Include="Microsoft.IdentityModel.Logging, Version=5.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Logging.5.4.0\lib\net461\Microsoft.IdentityModel.Logging.dll</HintPath>
</Reference>
<Reference Include="Microsoft.IdentityModel.Protocol.Extensions, Version=1.0.2.33, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Protocol.Extensions.1.0.2.206221351\lib\net45\Microsoft.IdentityModel.Protocol.Extensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.IdentityModel.Tokens, Version=5.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Tokens.5.4.0\lib\net461\Microsoft.IdentityModel.Tokens.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Owin.4.1.0\lib\net45\Microsoft.Owin.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.Host.SystemWeb, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Owin.Host.SystemWeb.4.1.0\lib\net45\Microsoft.Owin.Host.SystemWeb.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.Security, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Owin.Security.4.1.0\lib\net45\Microsoft.Owin.Security.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.Security.Jwt, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Owin.Security.Jwt.3.1.0\lib\net45\Microsoft.Owin.Security.Jwt.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Owin.Security.OAuth, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Owin.Security.OAuth.3.1.0\lib\net45\Microsoft.Owin.Security.OAuth.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="Nexius.Common, Version=18.37.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Nexius.Common.1.0.0.29\lib\Nexius.Common.dll</HintPath>
</Reference>
<Reference Include="Nexius.IdentityProvider.Model, Version=18.36.0.2101, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Nexius.IdentityProvider.Model.1.0.0.109\lib\Nexius.IdentityProvider.Model.dll</HintPath>
</Reference>
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
</Reference>
<Reference Include="Pipelines.Sockets.Unofficial, Version=1.0.0.0, Culture=neutral, PublicKeyToken=42ea0a778e13fbe2, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Pipelines.Sockets.Unofficial.2.1.16\lib\net472\Pipelines.Sockets.Unofficial.dll</HintPath>
</Reference>
<Reference Include="Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.2.8.0\lib\net46\Serilog.dll</HintPath>
</Reference>
<Reference Include="Serilog.Formatting.Compact, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.Formatting.Compact.1.0.0\lib\net45\Serilog.Formatting.Compact.dll</HintPath>
</Reference>
<Reference Include="Serilog.Formatting.Elasticsearch, Version=0.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.Formatting.Elasticsearch.8.0.0\lib\net45\Serilog.Formatting.Elasticsearch.dll</HintPath>
</Reference>
<Reference Include="Serilog.Settings.Configuration, Version=3.1.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.Settings.Configuration.3.1.0\lib\net461\Serilog.Settings.Configuration.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.Elasticsearch, Version=8.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.Sinks.Elasticsearch.8.0.0\lib\net461\Serilog.Sinks.Elasticsearch.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.File, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.Sinks.File.4.0.0\lib\net45\Serilog.Sinks.File.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.PeriodicBatching, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.Sinks.PeriodicBatching.2.1.1\lib\net45\Serilog.Sinks.PeriodicBatching.dll</HintPath>
</Reference>
<Reference Include="Serilog.Sinks.RollingFile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Serilog.Sinks.RollingFile.3.3.0\lib\net45\Serilog.Sinks.RollingFile.dll</HintPath>
</Reference>
<Reference Include="SimpleInjector, Version=4.0.11.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\SimpleInjector.4.0.11\lib\net45\SimpleInjector.dll</HintPath>
</Reference>
<Reference Include="SimpleInjector.Integration.WebApi, Version=4.0.11.0, Culture=neutral, PublicKeyToken=984cb50dea722e99, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\SimpleInjector.Integration.WebApi.4.0.11\lib\net45\SimpleInjector.Integration.WebApi.dll</HintPath>
</Reference>
<Reference Include="StackExchange.Redis, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\StackExchange.Redis.2.1.58\lib\net472\StackExchange.Redis.dll</HintPath>
</Reference>
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=4.0.3.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Diagnostics.DiagnosticSource.4.5.1\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.PerformanceCounter, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Diagnostics.PerformanceCounter.4.7.0\lib\net461\System.Diagnostics.PerformanceCounter.dll</HintPath>
</Reference>
<Reference Include="System.IdentityModel" />
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=4.0.20622.1351, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.IdentityModel.Tokens.Jwt.4.0.2.206221351\lib\net45\System.IdentityModel.Tokens.Jwt.dll</HintPath>
</Reference>
<Reference Include="System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.IO.Pipelines, Version=4.0.2.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.IO.Pipelines.4.7.1\lib\netstandard2.0\System.IO.Pipelines.dll</HintPath>
</Reference>
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http" />
<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.Numerics" />
<Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Caching" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Threading.Channels, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Threading.Channels.4.7.1\lib\net461\System.Threading.Channels.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<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.Web.Http.Owin, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.AspNet.WebApi.Owin.5.2.6\lib\net45\System.Web.Http.Owin.dll</HintPath>
</Reference>
<Reference Include="System.Web.Http.WebHost, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.6\lib\net45\System.Web.Http.WebHost.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Content Include="Global.asax" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\Tools\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="App_Start\Startup.cs" />
<Compile Include="App_Start\WebApiConfig.cs" />
<Compile Include="Attributes\ApiKeyAuthorizationAttribute.cs" />
<Compile Include="Controllers\TorzsadatController.Adatszotar.cs">
<DependentUpon>TorzsadatController.cs</DependentUpon>
</Compile>
<Compile Include="Controllers\TorzsadatController.cs" />
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="Infrastructure\ApiKeyConfiguration.cs" />
<Compile Include="Infrastructure\DependencyInjection.cs" />
<Compile Include="Infrastructure\IApiKeyConfiguration.cs" />
<Compile Include="Infrastructure\IIdpConfiguration.cs" />
<Compile Include="Infrastructure\IdpConfiguration.cs" />
<Compile Include="Infrastructure\WebApiServiceContext.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="App_Data\IntezmenyConnectionString.json" />
<Content Include="..\..\..\KretaWeb\Resources\StringResources.kres">
<Link>StringResources.kres</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>
<None Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</None>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<ProjectReference Include="..\..\..\Framework\Kreta.Framework.csproj">
<Project>{320EF478-7155-441D-B1E9-47EC3E57FB45}</Project>
<Name>Kreta.Framework</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.Core\Kreta.Core.csproj">
<Project>{57418D3E-CAF1-482C-9B18-85D147ABD495}</Project>
<Name>Kreta.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.Enums\Kreta.Enums.csproj">
<Project>{1d5e0ac2-dfab-4d32-9ad1-b5788a7d06bd}</Project>
<Name>Kreta.Enums</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Kreta.KretaServer\Kreta.KretaServer.csproj">
<Project>{62EB8504-1C3A-4DB1-AB86-F96B2341E201}</Project>
<Name>Kreta.KretaServer</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.BusinessLogic.Interface\Kreta.eUgyintezes.BusinessLogic.Interface.csproj">
<Project>{35e59b3a-a3fe-4536-a573-de06d94b1c61}</Project>
<Name>Kreta.eUgyintezes.BusinessLogic.Interface</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.BusinessLogic\Kreta.eUgyintezes.BusinessLogic.csproj">
<Project>{d9ba1291-c6a3-481e-94ff-22a38bd522c8}</Project>
<Name>Kreta.eUgyintezes.BusinessLogic</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.Domain\Kreta.Eugyintezes.Domain.csproj">
<Project>{2B2F2FB3-A8AE-4C90-850E-251FF484176D}</Project>
<Name>Kreta.Eugyintezes.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\Kreta.eUgyintezes.Infrastructure\Kreta.Eugyintezes.Infrastructure.csproj">
<Project>{414666cb-4ad8-43f8-b26c-19570bce866e}</Project>
<Name>Kreta.Eugyintezes.Infrastructure</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>38369</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>https://biatorbagyi.ekreta.hu/eugyintezes</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

View File

@@ -0,0 +1,223 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="ServerConfig" type="Kreta.BusinessLogic.Classes.ConfigsectionHandler" />
<section name="IdpConfig" type="Kreta.Eugyintezes.WebApi.Infrastructure.IdpConfiguration, Kreta.Eugyintezes.WebApi" />
<section name="ApiKeyConfiguration" type="Kreta.Eugyintezes.WebApi.Infrastructure.ApiKeyConfiguration, Kreta.Eugyintezes.WebApi" />
<section name="RequestResponseLogging" type="Kreta.Web.Logging.Configuration.RequestResponseLoggingConfigurationSection, Kreta.Web.Logging" />
<section name="SerilogRequestResponseLogger" type="Kreta.Web.Logging.Configuration.Serilog.SerilogConfigurationSection, Kreta.Web.Logging" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<ServerConfig>
<config>
<server>
<name>KRETA</name>
<systemtype>Teszt</systemtype>
<port>18099</port>
<loglevel>DEBUG</loglevel>
<sessiontimeout>46</sessiontimeout>
<!-- A felhasználok inaktivitással töltött max ideje mindig 1 percel kevesebb mint a session idő, (ha 1 akkor 30 másodperc lesz) -->
<!-- Az egy kérésben felhozható rekordok maximális száma. -->
<maxrecordsperrequest>30000</maxrecordsperrequest>
<dbconnection>Data Source=kretalocal;User ID=kreta;Password=Porcica1.;Initial Catalog=Kreta;Connection Timeout=3000;</dbconnection>
<globalapidbconnection>Data Source={0};User ID=kreta;Password=Porcica1.;Initial Catalog={1};MultiSubnetFailover=true;Connection Timeout=100;</globalapidbconnection>
<lcid>1038</lcid>
</server>
</config>
</ServerConfig>
<IdpConfig TokenIssuerUrl="https://idp.eugyintezes.ekreta-dev.hu" />
<ApiKeyConfiguration ApiKey="e74cde7878894a83909ca9164ac48ea8" />
<appSettings />
<RequestResponseLogging EnableLogging="false">
<!-- Define handlers here. Handlers are fallback type handlers (if first handler could not log the request second will be applied then third etc.) -->
<Handlers>
<Handler RequestMediaTypes="multipart/form-data" LogLevels="info" RequestHeaderTrimLength="2048" RequestBodyTrimLength="0" ResponseHeaderTrimLength="2048" ResponseBodyTrimLength="4096" />
<Handler RequestMediaTypes="multipart/form-data" LogLevels="error" RequestHeaderTrimLength="4096" RequestBodyTrimLength="0" ResponseHeaderTrimLength="4096" ResponseBodyTrimLength="32768" />
<Handler ResponseMediaTypes="text/html" LogLevels="info" RequestHeaderTrimLength="2048" RequestBodyTrimLength="2048" ResponseHeaderTrimLength="2048" ResponseBodyTrimLength="0" />
<Handler ResponseMediaTypes="application/json, application/xml, text/plain, empty" LogLevels="info" RequestHeaderTrimLength="2048" RequestBodyTrimLength="2048" ResponseHeaderTrimLength="2048" ResponseBodyTrimLength="4096" />
<Handler ResponseMediaTypes="text/html, application/json, application/xml, text/plain, empty" LogLevels="error" RequestHeaderTrimLength="4096" RequestBodyTrimLength="32768" ResponseHeaderTrimLength="4096" ResponseBodyTrimLength="32768" />
</Handlers>
</RequestResponseLogging>
<SerilogRequestResponseLogger LossyBufferSize="10000">
<ElasticSearch UseCustomBackOffLogic="true" NodeUris="http://elasticsearch.ekreta-dev.hu:9200/" IndexFormat="kreta_eugyintezes_requestresponselog_serilog-{0:yyyy.MM.dd}" MinimumLogEventLevel="Information" ConnectionTimeoutInSeconds="30" WaitBetweenForCheckingEventBatchesInSeconds="1" BatchPostingLimit="100" AutoRegisterTemplateVersion="ESv7" />
</SerilogRequestResponseLogger>
<log4net>
<logger name="RequestResponseLogger">
<level value="ALL" />
<appender-ref ref="AsyncBufferingForwarder" />
</logger>
<appender name="AsyncBufferingForwarder" type="Easy.Logger.AsyncBufferingForwardingAppender, Easy.Logger">
<bufferSize value="2048" />
<lossy value="true" />
<Fix value="508" />
<evaluator type="log4net.Core.LevelEvaluator">
<threshold value="ALL" />
</evaluator>
<appender-ref ref="FileAppender" />
</appender>
<appender name="ElasticSearchAppender" type="log4net.ElasticSearch.ElasticSearchAppender, log4net.ElasticSearch">
<connectionString value="Scheme=http;Server=elasticsearch.ekreta-dev.hu;Index=kreta_eugyintezes_requestresponselog;Port=9200;rolling=true" />
<lossy value="false" />
<Fix value="508" />
<evaluator type="log4net.Core.LevelEvaluator">
<threshold value="ALL" />
</evaluator>
<bufferSize value="1" />
</appender>
<appender name="FileAppender" type="log4net.Appender.RollingFileAppender">
<file value="App_Data\Log\requestresponse" />
<datePattern value=".yyyy-MM-dd'.log'" />
<appendToFile value="true" />
<maximumFileSize value="2MB" />
<maxSizeRollBackups value="10" />
<rollingStyle value="Composite" />
<countDirection value="1" />
<staticLogFileName value="false" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %utcdate %level %thread %logger %message%newline" />
</layout>
</appender>
</log4net>
<system.web>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.8" />
<httpRuntime targetFramework="4.6.1" />
<pages>
<namespaces>
<remove namespace="Kendo.Mvc.UI" />
<remove namespace="MvcSiteMapProvider.Web.Html" />
<remove namespace="MvcSiteMapProvider.Web.Html.Models" />
</namespaces>
</pages>
</system.web>
<system.webServer>
<modules>
<remove name="UsageModule" />
<remove name="LoggingModule" />
<remove name="Session" />
</modules>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.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="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.IdentityModel.Logging" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.4.0.0" newVersion="5.4.0.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.IdentityModel.Tokens" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.4.0.0" newVersion="5.4.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.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="System.IdentityModel.Tokens.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.20622.1351" newVersion="4.0.20622.1351" />
</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="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.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.Configuration.Binder" 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.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.Primitives" 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.FileSystemGlobbing" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.DotNet.PlatformAbstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.4.0" newVersion="2.0.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Options" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.1.0" newVersion="2.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="CacheManager.Core" publicKeyToken="5b450b4fb65c4cdb" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CacheManager.Core" version="1.2.0" targetFramework="net48" />
<package id="CacheManager.StackExchange.Redis" version="1.2.0" targetFramework="net48" />
<package id="CacheManager.SystemRuntimeCaching" version="1.2.0" targetFramework="net48" />
<package id="DevDefined.OAuth" version="0.2" targetFramework="net48" />
<package id="Easy.Logger" version="3.2.0" targetFramework="net48" />
<package id="Easy.Logger.Interfaces" version="1.1.0" targetFramework="net48" />
<package id="Elasticsearch.Net" version="7.0.0" targetFramework="net48" />
<package id="Hangfire.Core" version="1.7.27" targetFramework="net48" />
<package id="IdentityModel" version="1.9.2" targetFramework="net48" />
<package id="IdentityServer3.AccessTokenValidation" version="2.14.0" targetFramework="net48" />
<package id="Kreta.Core.Configuration" version="1.3.20119.1" targetFramework="net48" />
<package id="Kreta.Web.Logging" version="1.4.5" targetFramework="net48" />
<package id="Kreta.Web.Logging.Abstractions" version="1.0.12" targetFramework="net48" />
<package id="log4net" version="2.0.8" targetFramework="net48" />
<package id="log4net.ElasticSearch" version="2.3.6" targetFramework="net48" />
<package id="Meziantou.Analyzer" version="1.0.688" targetFramework="net48" developmentDependency="true" />
<package id="Microsoft.AspNet.WebApi" version="5.2.6" targetFramework="net48" />
<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.AspNet.WebApi.Owin" version="5.2.6" targetFramework="net48" />
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.6" targetFramework="net48" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.1" targetFramework="net48" />
<package id="Microsoft.DotNet.PlatformAbstractions" version="2.0.4" targetFramework="net48" />
<package id="Microsoft.Extensions.Configuration" version="2.0.0" targetFramework="net48" />
<package id="Microsoft.Extensions.Configuration.Abstractions" version="2.0.1" targetFramework="net48" />
<package id="Microsoft.Extensions.Configuration.Binder" version="2.0.0" targetFramework="net48" />
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="2.0.0" targetFramework="net48" />
<package id="Microsoft.Extensions.DependencyModel" version="2.0.4" targetFramework="net48" />
<package id="Microsoft.Extensions.Options" version="2.0.1" targetFramework="net48" />
<package id="Microsoft.Extensions.Options.ConfigurationExtensions" version="2.0.0" targetFramework="net48" />
<package id="Microsoft.Extensions.Primitives" version="2.0.0" targetFramework="net48" />
<package id="Microsoft.IdentityModel.Logging" version="5.4.0" targetFramework="net48" />
<package id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.2.206221351" targetFramework="net48" />
<package id="Microsoft.IdentityModel.Tokens" version="5.4.0" targetFramework="net48" />
<package id="Microsoft.Owin" version="4.1.0" targetFramework="net48" />
<package id="Microsoft.Owin.Host.SystemWeb" version="4.1.0" targetFramework="net48" />
<package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net48" />
<package id="Microsoft.Owin.Security.Jwt" version="3.1.0" targetFramework="net48" />
<package id="Microsoft.Owin.Security.OAuth" version="3.1.0" targetFramework="net48" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net48" />
<package id="Nexius.Common" version="1.0.0.29" targetFramework="net48" />
<package id="Nexius.IdentityProvider.Model" version="1.0.0.109" targetFramework="net48" />
<package id="Owin" version="1.0" targetFramework="net48" />
<package id="Pipelines.Sockets.Unofficial" version="2.1.16" targetFramework="net48" />
<package id="Serilog" version="2.8.0" targetFramework="net48" />
<package id="Serilog.Formatting.Compact" version="1.0.0" targetFramework="net48" />
<package id="Serilog.Formatting.Elasticsearch" version="8.0.0" targetFramework="net48" />
<package id="Serilog.Settings.Configuration" version="3.1.0" targetFramework="net48" />
<package id="Serilog.Sinks.Elasticsearch" version="8.0.0" targetFramework="net48" />
<package id="Serilog.Sinks.File" version="4.0.0" targetFramework="net48" />
<package id="Serilog.Sinks.PeriodicBatching" version="2.1.1" targetFramework="net48" />
<package id="Serilog.Sinks.RollingFile" version="3.3.0" targetFramework="net48" />
<package id="SimpleInjector" version="4.0.11" targetFramework="net48" />
<package id="SimpleInjector.Integration.WebApi" version="4.0.11" targetFramework="net48" />
<package id="StackExchange.Redis" version="2.1.58" targetFramework="net48" />
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
<package id="System.Diagnostics.DiagnosticSource" version="4.5.1" targetFramework="net48" />
<package id="System.Diagnostics.PerformanceCounter" version="4.7.0" targetFramework="net48" />
<package id="System.IdentityModel.Tokens.Jwt" version="4.0.2.206221351" targetFramework="net48" />
<package id="System.IO.Compression" version="4.3.0" targetFramework="net48" />
<package id="System.IO.Pipelines" version="4.7.1" targetFramework="net48" />
<package id="System.Memory" version="4.5.3" targetFramework="net48" />
<package id="System.Numerics.Vectors" version="4.4.0" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net48" />
<package id="System.Threading.Channels" version="4.7.1" targetFramework="net48" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
</packages>