Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 84bbf2d605 | |||
| 9cfe139d92 |
+54
-1
@@ -1,6 +1,59 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="AppData.Properties.Settings.SmartCheckInConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=SmartCheckIn;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<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.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.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="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.25.0.0" newVersion="0.25.0.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>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.Encoding.CodePages" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="DnsClient" publicKeyToken="4574bb5573c51424" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.3.2.0" newVersion="1.3.2.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
+146
-3
@@ -6,12 +6,14 @@
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F6E60F8A-09DB-453C-95F6-AB3F79C20A03}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>SmartCheckIn</RootNamespace>
|
||||
<AssemblyName>SmartCheckIn</AssemblyName>
|
||||
<RootNamespace>AppData</RootNamespace>
|
||||
<AssemblyName>AppData</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -36,8 +38,105 @@
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AegisImplicitMail, Version=1.0.3.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\AIM.1.0.3\lib\AegisImplicitMail.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="AjaxControlToolkit, Version=19.1.0.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\AjaxControlToolkit.19.1.0\lib\net40\AjaxControlToolkit.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Crc32C.NET, Version=1.0.5.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Crc32C.NET.1.0.5.0\lib\net20\Crc32C.NET.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DnsClient, Version=1.3.2.0, Culture=neutral, PublicKeyToken=4574bb5573c51424, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\DnsClient.1.3.2\lib\net45\DnsClient.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ICSharpCode.SharpZipLib, Version=1.2.0.246, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SharpZipLib.1.2.0\lib\net45\ICSharpCode.SharpZipLib.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="MongoDB.Bson, Version=2.10.4.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDB.Bson.2.10.4\lib\net452\MongoDB.Bson.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MongoDB.Driver, Version=2.10.4.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDB.Driver.2.10.4\lib\net452\MongoDB.Driver.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MongoDB.Driver.Core, Version=2.10.4.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDB.Driver.Core.2.10.4\lib\net452\MongoDB.Driver.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MongoDB.Libmongocrypt, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDB.Libmongocrypt.1.0.0\lib\net452\MongoDB.Libmongocrypt.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="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.4.7.1\lib\net45\NLog.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp.1.50.5147\lib\net20\PdfSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp.Charting, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp.1.50.5147\lib\net20\PdfSharp.Charting.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.11\lib\net461\Pipelines.Sockets.Unofficial.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SharpCompress, Version=0.25.0.0, Culture=neutral, PublicKeyToken=afb0a02973931d96, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SharpCompress.0.25.0\lib\net46\SharpCompress.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Snappy.NET, Version=1.1.1.8, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Snappy.NET.1.1.1.8\lib\net45\Snappy.NET.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="StackExchange.Redis, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\StackExchange.Redis.2.1.30\lib\net461\StackExchange.Redis.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SteamWare, Version=4.0.2003.734, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SteamWare.4.0.2003.734\lib\net462\SteamWare.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<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.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<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.Drawing" />
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.IO.Pipelines, Version=4.0.2.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.Pipelines.4.7.2\lib\net461\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.4\lib\net461\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<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.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.Serialization" />
|
||||
<Reference Include="System.ServiceModel" />
|
||||
<Reference Include="System.Text.Encoding.CodePages, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Text.Encoding.CodePages.4.7.1\lib\net461\System.Text.Encoding.CodePages.dll</HintPath>
|
||||
</Reference>
|
||||
<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.Transactions" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
@@ -46,11 +145,55 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="DataLayer.cs" />
|
||||
<Compile Include="DS_Installations.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DS_Installations.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="utility.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="App_Readme\SteamWare_demo\example-app.config" />
|
||||
<None Include="App_Readme\SteamWare_demo\example-NLog.config" />
|
||||
<None Include="DS_Installations.xsc">
|
||||
<DependentUpon>DS_Installations.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="DS_Installations.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSDataSetGenerator</Generator>
|
||||
<LastGenOutput>DS_Installations.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="DS_Installations.xss">
|
||||
<DependentUpon>DS_Installations.xsd</DependentUpon>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App_Readme\README_SteamWare.txt" />
|
||||
<Content Include="App_Readme\SteamWare_demo\example-config-table.txt" />
|
||||
<Content Include="App_Readme\SteamWare_demo\example-favicon.ico" />
|
||||
<Content Include="mongocrypt.dll" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\packages\MongoDB.Libmongocrypt.1.0.0\build\MongoDB.Libmongocrypt.targets" Condition="Exists('..\packages\MongoDB.Libmongocrypt.1.0.0\build\MongoDB.Libmongocrypt.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>Questo progetto fa riferimento a uno o più pacchetti NuGet che non sono presenti in questo computer. Usare lo strumento di ripristino dei pacchetti NuGet per scaricarli. Per altre informazioni, vedere http://go.microsoft.com/fwlink/?LinkID=322105. Il file mancante è {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\MongoDB.Libmongocrypt.1.0.0\build\MongoDB.Libmongocrypt.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MongoDB.Libmongocrypt.1.0.0\build\MongoDB.Libmongocrypt.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
|
||||
</Project>
|
||||
@@ -0,0 +1,12 @@
|
||||
---------------------------------------------------------------
|
||||
------- SteamWareLib SDK -------
|
||||
---------------------------------------------------------------
|
||||
|
||||
Libreria di utility base di SteamWare.
|
||||
|
||||
Le dipendenze inserite sono necessarie al funzionamento dell'SDK.
|
||||
|
||||
Sono inclusi a titolo di esempio vari files di conf:
|
||||
* example-NLog.config
|
||||
|
||||
Attenzione a configurare correttamente il file NLog.xml includendo il rule per la classe, vedere ad esempio il file example-NLog.config allegato.
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
|
||||
autoReload="true"
|
||||
throwExceptions="false"
|
||||
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log" >
|
||||
|
||||
|
||||
<!-- optional, add some variabeles
|
||||
https://github.com/nlog/NLog/wiki/Configuration-file#variables
|
||||
-->
|
||||
<variable name="myvar" value="myvalue"/>
|
||||
|
||||
<!--
|
||||
See https://github.com/nlog/nlog/wiki/Configuration-file
|
||||
for information on customizing logging rules and outputs.
|
||||
-->
|
||||
|
||||
<targets async="true">
|
||||
<target xsi:type="File"
|
||||
name="SteamWareLib"
|
||||
fileName="${basedir}/logs/${shortdate}-SteamWare.log"
|
||||
layout="${longdate} ${uppercase:${level}} ${message}"
|
||||
/>
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<logger name="SteamWare.*" minlevel="Debug" writeTo="SteamWareLib" />
|
||||
</rules>
|
||||
</nlog>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
|
||||
<connectionStrings>
|
||||
<add name="SteamWare.Properties.Settings.loggerConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=Flamma_SC;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.SteamWare_VocabolarioConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.AnagraficaBremboConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=AnagraficaBrembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.SteamWare_BremboConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Brembo;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.Flamma_AnagraficaConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=Flamma_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.AnagraficaConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.SEL_fatture_SteamWareConnectionString" connectionString="Data Source=SQLSTEAM;Initial Catalog=SEL_fatture_SteamWare;User ID=sa;Password=keyhammer;Encrypt=False;TrustServerCertificate=True" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.Equa_AnagraficaConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.GMWConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DbConfConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
@@ -0,0 +1,30 @@
|
||||
# chiave valore valoreStd note
|
||||
_adminEmail samuele@steamware.net,info@steamware.net samuele@steamware.net,info@steamware.net info@steamware.net
|
||||
_allowForceUser true true abilita login forzato
|
||||
_commonPages menu menu pagina comune
|
||||
_emailPwd drmfsls16 drmfsls16 drmfsls16
|
||||
_emailUser steamwarebot@gmail.com steamwarebot@gmail.com steamwarebot@gmail.com
|
||||
_enableSSL true true true
|
||||
_fromEmail webmaster@admodelling.org webmaster@admodelling.org email mittente eventuali msg
|
||||
_righeDataGrid 30 30 Num righe datagrid std
|
||||
_righeDataGridAnagr 20 20 Num righe datagrid anagrafiche
|
||||
_righeDataGridLong 30 30 Num righe datagrid long
|
||||
_righeDataGridMed 15 15 Num righe datagrid med
|
||||
_righeDataGridShort 10 10 Num righe datagrid short
|
||||
_smtpCli smtp.gmail.com smtp.gmail.com smtp.gmail.com
|
||||
_useAIMSmtp false false impiego client posta elettronica alternativo
|
||||
_useAuthSmtp true true true
|
||||
AuthCookieName admodellingAuth admodellingAuth Cookie applicativo
|
||||
autoConfCmd true true Conferma automatica comandi barcode
|
||||
baseUrl http://site_name http://iis02/site_name URL base del sito
|
||||
cacheValSec 60 60 Validità cache dati in gestore Barcode
|
||||
cookieDayExp 365 365 Periodo validità cookie
|
||||
cookieUsed admodellingAuth admodellingAuth,CTrack_CodOpr,CTrack_CodPost Elenco dei cookie impiegati
|
||||
enableCookie true true Abilitazione uso cookie
|
||||
enableLogOut true false Abilita button logout COMPLETO in alto a sx
|
||||
enablePlain true true Abilitazione decode plain
|
||||
maxAuth 1000 1000 num auth minimo per NON consumare tokens
|
||||
serializeSession true true Serializzazione valori in sessione (REDIS)
|
||||
SiteName iis02/site_name iis02/site_name Nome sito
|
||||
enableDumpDiag false false abilitazione dumb diagnostico x eccezioni di default
|
||||
doShrinkFolder true true Imposta compressione area LOGS
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Generated
+1672
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TableUISettings />
|
||||
</DataSetUISetting>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema id="DS_Installations" targetNamespace="http://tempuri.org/DS_Installations.xsd" xmlns:mstns="http://tempuri.org/DS_Installations.xsd" xmlns="http://tempuri.org/DS_Installations.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||
<xs:annotation>
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="SmartCheckInConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="SmartCheckInConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.AppData.Properties.Settings.GlobalReference.Default.SmartCheckInConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagUsersTableAdapter" GeneratorDataComponentClassName="AnagUsersTableAdapter" Name="AnagUsers" UserDataComponentName="AnagUsersTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="SmartCheckInConnectionString (Settings)" DbObjectName="SmartCheckIn.dbo.AnagUsers" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<DeleteCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>DELETE FROM [dbo].[AnagUsers] WHERE (([email] = @Original_email) AND ([saltPassword] = @Original_saltPassword) AND ([saltSeed] = @Original_saltSeed) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_saltPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltPassword" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_saltSeed" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltSeed" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[AnagUsers] ([email], [saltPassword], [saltSeed], [FirstName], [LastName]) VALUES (@email, @saltPassword, @saltSeed, @FirstName, @LastName);
|
||||
SELECT email, saltPassword, saltSeed, FirstName, LastName FROM AnagUsers WHERE (email = @email)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@saltPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltPassword" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@saltSeed" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltSeed" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT email, saltPassword, saltSeed, FirstName, LastName FROM dbo.AnagUsers</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[AnagUsers] SET [email] = @email, [saltPassword] = @saltPassword, [saltSeed] = @saltSeed, [FirstName] = @FirstName, [LastName] = @LastName WHERE (([email] = @Original_email) AND ([saltPassword] = @Original_saltPassword) AND ([saltSeed] = @Original_saltSeed) AND ([FirstName] = @Original_FirstName) AND ([LastName] = @Original_LastName));
|
||||
SELECT email, saltPassword, saltSeed, FirstName, LastName FROM AnagUsers WHERE (email = @email)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@saltPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltPassword" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@saltSeed" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltSeed" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_saltPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltPassword" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_saltSeed" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="saltSeed" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FirstName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LastName" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="email" DataSetColumn="email" />
|
||||
<Mapping SourceColumn="saltPassword" DataSetColumn="saltPassword" />
|
||||
<Mapping SourceColumn="saltSeed" DataSetColumn="saltSeed" />
|
||||
<Mapping SourceColumn="FirstName" DataSetColumn="FirstName" />
|
||||
<Mapping SourceColumn="LastName" DataSetColumn="LastName" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="SmartCheckInConnectionString (Settings)" DbObjectName="SmartCheckIn.dbo.stp_user_getByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_user_getByKey</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="SmartCheckInConnectionString (Settings)" DbObjectName="SmartCheckIn.dbo.stp_user_insertQuery" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="insertNew" GetMethodModifier="Public" GetMethodName="insertNew" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="insertNew" UserSourceName="insertNew">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_user_insertQuery</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FirstName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@LastName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="SmartCheckInConnectionString (Settings)" DbObjectName="SmartCheckIn.dbo.stp_user_updatePasswd" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updatePasswd" Modifier="Public" Name="updatePasswd" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="updatePasswd">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_user_updatePasswd</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@saltSeed" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@saltPassword" Precision="0" ProviderType="NVarChar" Scale="0" Size="255" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DS_Installations" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_Installations" msprop:Generator_UserDSName="DS_Installations">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="AnagUsers" msprop:Generator_TableClassName="AnagUsersDataTable" msprop:Generator_TableVarName="tableAnagUsers" msprop:Generator_TablePropName="AnagUsers" msprop:Generator_RowDeletingName="AnagUsersRowDeleting" msprop:Generator_RowChangingName="AnagUsersRowChanging" msprop:Generator_RowEvHandlerName="AnagUsersRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagUsersRowDeleted" msprop:Generator_UserTableName="AnagUsers" msprop:Generator_RowChangedName="AnagUsersRowChanged" msprop:Generator_RowEvArgName="AnagUsersRowChangeEvent" msprop:Generator_RowClassName="AnagUsersRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" msprop:Generator_UserColumnName="email">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="saltPassword" msprop:Generator_ColumnVarNameInTable="columnsaltPassword" msprop:Generator_ColumnPropNameInRow="saltPassword" msprop:Generator_ColumnPropNameInTable="saltPasswordColumn" msprop:Generator_UserColumnName="saltPassword">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="saltSeed" msprop:Generator_ColumnVarNameInTable="columnsaltSeed" msprop:Generator_ColumnPropNameInRow="saltSeed" msprop:Generator_ColumnPropNameInTable="saltSeedColumn" msprop:Generator_UserColumnName="saltSeed">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="FirstName" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ColumnPropNameInTable="FirstNameColumn" msprop:Generator_UserColumnName="FirstName">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="LastName" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ColumnPropNameInTable="LastNameColumn" msprop:Generator_UserColumnName="LastName">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:AnagUsers" />
|
||||
<xs:field xpath="mstns:email" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--<autogenerated>
|
||||
This code was generated by a tool to store the dataset designer's layout information.
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:AnagUsers" ZOrder="1" X="81" Y="52" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
@@ -0,0 +1,40 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AppData
|
||||
{
|
||||
public class DataLayer
|
||||
{
|
||||
#region oggetti public accesso DB
|
||||
|
||||
public DS_InstallationsTableAdapters.AnagUsersTableAdapter taAnagUsers;
|
||||
|
||||
public DataLayer()
|
||||
{
|
||||
// inizializzaizone classe
|
||||
initTA();
|
||||
setupConnString();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region classi init
|
||||
|
||||
|
||||
private void setupConnString()
|
||||
{
|
||||
string connString = memLayer.ML.CRS("SmartCheckInConnectionString");
|
||||
taAnagUsers.Connection.ConnectionString = connString;
|
||||
|
||||
}
|
||||
private void initTA()
|
||||
{
|
||||
taAnagUsers = new DS_InstallationsTableAdapters.AnagUsersTableAdapter();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SmartCheckIn
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
||||
// Le informazioni generali relative a un assembly sono controllate dal seguente
|
||||
// set di attributi. Modificare i valori di questi attributi per modificare le informazioni
|
||||
// associate a un assembly.
|
||||
[assembly: AssemblyTitle("SmartCheckIn")]
|
||||
[assembly: AssemblyTitle("AppData")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SmartCheckIn")]
|
||||
[assembly: AssemblyProduct("AppData")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
Generated
+37
@@ -0,0 +1,37 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Il codice è stato generato da uno strumento.
|
||||
// Versione runtime:4.0.30319.42000
|
||||
//
|
||||
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace AppData.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=SmartCheckIn;Persist Security Info=True;Us" +
|
||||
"er ID=sa;Password=keyhammer16")]
|
||||
public string SmartCheckInConnectionString {
|
||||
get {
|
||||
return ((string)(this["SmartCheckInConnectionString"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="AppData.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="SmartCheckInConnectionString" Type="(Connection string)" Scope="Application">
|
||||
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<ConnectionString>Data Source=SQL2016DEV;Initial Catalog=SmartCheckIn;Persist Security Info=True;User ID=sa;Password=keyhammer16</ConnectionString>
|
||||
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||
</SerializableConnectionString></DesignTimeValue>
|
||||
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=SmartCheckIn;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AIM" version="1.0.3" targetFramework="net462" />
|
||||
<package id="AjaxControlToolkit" version="19.1.0" targetFramework="net462" />
|
||||
<package id="Crc32C.NET" version="1.0.5.0" targetFramework="net462" />
|
||||
<package id="DnsClient" version="1.3.2" targetFramework="net462" />
|
||||
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.1.1" targetFramework="net462" />
|
||||
<package id="Microsoft.NETCore.Platforms" version="3.1.1" targetFramework="net462" />
|
||||
<package id="MongoDB.Bson" version="2.10.4" targetFramework="net462" />
|
||||
<package id="MongoDB.Driver" version="2.10.4" targetFramework="net462" />
|
||||
<package id="MongoDB.Driver.Core" version="2.10.4" targetFramework="net462" />
|
||||
<package id="MongoDB.Libmongocrypt" version="1.0.0" targetFramework="net462" />
|
||||
<package id="NETStandard.Library" version="2.0.3" targetFramework="net462" />
|
||||
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net462" />
|
||||
<package id="NLog" version="4.7.1" targetFramework="net462" />
|
||||
<package id="PDFsharp" version="1.50.5147" targetFramework="net462" />
|
||||
<package id="Pipelines.Sockets.Unofficial" version="2.1.11" targetFramework="net462" />
|
||||
<package id="SharpCompress" version="0.25.0" targetFramework="net462" />
|
||||
<package id="SharpZipLib" version="1.2.0" targetFramework="net462" />
|
||||
<package id="Snappy.NET" version="1.1.1.8" targetFramework="net462" />
|
||||
<package id="StackExchange.Redis" version="2.1.30" targetFramework="net462" />
|
||||
<package id="SteamWare" version="4.0.2003.734" targetFramework="net462" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net462" />
|
||||
<package id="System.Diagnostics.PerformanceCounter" version="4.7.0" targetFramework="net462" />
|
||||
<package id="System.IO.Pipelines" version="4.7.2" targetFramework="net462" />
|
||||
<package id="System.Memory" version="4.5.4" targetFramework="net462" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net462" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="net462" />
|
||||
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net462" />
|
||||
<package id="System.Text.Encoding.CodePages" version="4.7.1" targetFramework="net462" />
|
||||
<package id="System.Threading.Channels" version="4.7.1" targetFramework="net462" />
|
||||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net462" />
|
||||
</packages>
|
||||
@@ -0,0 +1,38 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AppData
|
||||
{
|
||||
public class utility
|
||||
{
|
||||
/// <summary>
|
||||
/// Effettua invio notifica (email e quando disponibile tramite notifica browser)
|
||||
/// </summary>
|
||||
/// <param name="destinatario"></param>
|
||||
/// <param name="oggetto"></param>
|
||||
/// <param name="corpo"></param>
|
||||
/// <param name="tipoNotifica">1 = email | 2 = webPush | 3 = email + webPush</param>
|
||||
/// <returns></returns>
|
||||
public static bool inviaEmail(string destinatario, string oggetto, string corpo, int tipoNotifica)
|
||||
{
|
||||
// mittente da config
|
||||
string mittente = memLayer.ML.CRS("_fromEmail");
|
||||
bool answ = false;
|
||||
// se in modalità debug --> email solo a destinatario _debugEmail
|
||||
#if DEBUG
|
||||
string newEmail = memLayer.ML.CRS("_debugEmail");
|
||||
// loggo sostituzione...
|
||||
logger.lg.scriviLog(string.Format("Applicazione in DEBUG: sostituzione email destinatario {0} --> {1} prima dell'invio", destinatario, newEmail), tipoLog.INFO);
|
||||
destinatario = newEmail;
|
||||
#endif
|
||||
|
||||
gestEmail.geAuth.mandaEmail(mittente, destinatario, oggetto, corpo);
|
||||
answ = true;
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -237,6 +237,7 @@
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="Login.aspx" />
|
||||
<Content Include="MyArea.aspx" />
|
||||
<Content Include="resetPwd.aspx" />
|
||||
<Content Include="Scripts\bootstrap.bundle.js" />
|
||||
<Content Include="Scripts\bootstrap.bundle.min.js" />
|
||||
<Content Include="Scripts\bootstrap.js" />
|
||||
@@ -346,6 +347,9 @@
|
||||
<Content Include="StartDemo.aspx" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Bundle.config" />
|
||||
<Content Include="WebUserControls\cmp_resetPwd.ascx" />
|
||||
<Content Include="WebUserControls\cmp_userLogin.ascx" />
|
||||
<Content Include="WebUserControls\cmp_userRegistration.ascx" />
|
||||
<Content Include="WebUserControls\tpl_footer.ascx" />
|
||||
<Content Include="WebUserControls\tpl_menuTop.ascx" />
|
||||
</ItemGroup>
|
||||
@@ -391,6 +395,13 @@
|
||||
<DependentUpon>MyArea.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="resetPwd.aspx.cs">
|
||||
<DependentUpon>resetPwd.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="resetPwd.aspx.designer.cs">
|
||||
<DependentUpon>resetPwd.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Site.Master.cs">
|
||||
<DependentUpon>Site.Master</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -412,6 +423,27 @@
|
||||
<Compile Include="StartDemo.aspx.designer.cs">
|
||||
<DependentUpon>StartDemo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_resetPwd.ascx.cs">
|
||||
<DependentUpon>cmp_resetPwd.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_resetPwd.ascx.designer.cs">
|
||||
<DependentUpon>cmp_resetPwd.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_userLogin.ascx.cs">
|
||||
<DependentUpon>cmp_userLogin.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_userLogin.ascx.designer.cs">
|
||||
<DependentUpon>cmp_userLogin.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_userRegistration.ascx.cs">
|
||||
<DependentUpon>cmp_userRegistration.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\cmp_userRegistration.ascx.designer.cs">
|
||||
<DependentUpon>cmp_userRegistration.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\tpl_footer.ascx.cs">
|
||||
<DependentUpon>tpl_footer.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -1,14 +1,21 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/SiteContent.master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CompanyRegistration.Login" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/cmp_userLogin.ascx" TagPrefix="uc1" TagName="cmp_userLogin" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_userRegistration.ascx" TagPrefix="uc1" TagName="cmp_userRegistration" %>
|
||||
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h3>Login</h3>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
Registrati
|
||||
<uc1:cmp_userRegistration runat="server" ID="cmp_userRegistration" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
Accedi
|
||||
<uc1:cmp_userLogin runat="server" ID="cmp_userLogin" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
+18
@@ -13,5 +13,23 @@ namespace CompanyRegistration
|
||||
|
||||
public partial class Login
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_userRegistration.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::CompanyRegistration.WebUserControls.cmp_userRegistration cmp_userRegistration;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_userLogin.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::CompanyRegistration.WebUserControls.cmp_userLogin cmp_userLogin;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,22 @@
|
||||
-->
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="showSearch" value="false"/>
|
||||
<add key="showSearch" value="false" />
|
||||
<!--Gestione email-->
|
||||
<add key="_debugEmail" value="samuele@steamware.net,emas2491@gmail.com" />
|
||||
<add key="_adminEmail" value="ceo@steamware.net" />
|
||||
<add key="_fromEmail" value="comunicazioni@smartcheckin.site" />
|
||||
<add key="_useAuthSmtp" value="true" />
|
||||
<add key="_useAIMSmtp" value="false" />
|
||||
<add key="_srvSender" value="www.smartcheckin.site" />
|
||||
<add key="_msgPriority" value="high" />
|
||||
<add key="_smtpTimeout" value="5000" />
|
||||
<add key="_smtpCli" value="smtp.gmail.com" />
|
||||
<add key="_emailUser" value="steamwarebot@gmail.com" />
|
||||
<add key="_emailPwd" value="drmfsls16" />
|
||||
<add key="_enableSSL" value="true" />
|
||||
<!--stringhe conn DB-->
|
||||
<add key="SmartCheckInConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=SmartCheckIn;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6.2" />
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_resetPwd.ascx.cs" Inherits="CompanyRegistration.WebUserControls.cmp_resetPwd" %>
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Reset password utente</h5>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Inserisci la nuova password per proseguire</h5>
|
||||
<div class="form-group">
|
||||
<label for="txtEmail">Email address</label>
|
||||
<asp:Label runat="server" ID="lblEmail" class="text-secondary form-control" TextMode="Email" />
|
||||
<asp:Label runat="server" ID="lblEmailError" class="text-danger" Visible="false" />
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="txtToken">Token</label>
|
||||
<asp:Label runat="server" ID="lblToken" class="text-secondary form-control" />
|
||||
<asp:Label runat="server" ID="lblTokenError" class="text-danger" Visible="false" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="txtPassword">Password</label>
|
||||
<asp:TextBox runat="server" ID="txtPassword" placeholder="Prego inserire password" class="form-control" TextMode="Password" />
|
||||
<asp:RegularExpressionValidator runat="server" ControlToValidate="txtPassword" CssClass="text-danger" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,20})$" Display="Dynamic" ErrorMessage="Password must be 8-20 characters and have both letters and numbers." />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="txtPasswordRepeat">Ripeti Password</label>
|
||||
<asp:TextBox runat="server" ID="txtPasswordRepeat" placeholder="Prego ripetere password" class="form-control" TextMode="Password"/>
|
||||
<asp:RegularExpressionValidator runat="server" ControlToValidate="txtPasswordRepeat" CssClass="text-danger" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,20})$" Display="Dynamic" ErrorMessage="Password must be 8-20 characters and have both letters and numbers." />
|
||||
<br />
|
||||
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtPasswordRepeat" CssClass="text-danger" ControlToCompare="txtPassword" ErrorMessage="Error: password don't match!" ToolTip="Password must be the same" />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<asp:LinkButton runat="server" ID="lbtSubmit" class="btn btn-primary btn-block" OnClick="lbtSubmit_Click">Submit</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-md-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,97 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AppData;
|
||||
using SteamWare;
|
||||
|
||||
namespace CompanyRegistration.WebUserControls
|
||||
{
|
||||
public partial class cmp_resetPwd : System.Web.UI.UserControl
|
||||
{
|
||||
protected DataLayer dl = new DataLayer();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
precompileData();
|
||||
}
|
||||
protected string email
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.QSS("email");
|
||||
}
|
||||
}
|
||||
protected string token
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.QSS("token");
|
||||
}
|
||||
}
|
||||
|
||||
private void precompileData()
|
||||
{
|
||||
if (string.IsNullOrEmpty(email))
|
||||
{
|
||||
// errore manca email
|
||||
lblEmailError.Text = "Errore: manca email";
|
||||
lblEmailError.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrEmpty(token))
|
||||
{
|
||||
// errore manca token
|
||||
lblTokenError.Text = "Errore: manca token";
|
||||
lblTokenError.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// controllo su DB token ed email...
|
||||
var userFound = dl.taAnagUsers.getByKey(email);
|
||||
if (userFound != null || userFound.Count == 1)
|
||||
{
|
||||
// verifico il token...
|
||||
if (userFound[0].saltSeed != token)
|
||||
{
|
||||
// errore manca token
|
||||
lblTokenError.Text = "Errore: token";
|
||||
lblTokenError.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblEmailError.Visible = false;
|
||||
lblEmailError.Visible = false;
|
||||
lblEmail.Text = email;
|
||||
lblToken.Text = token;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblEmailError.Text = "Errore: email";
|
||||
lblEmailError.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
string newPwd = txtPassword.Text.Trim();
|
||||
Guid obj = Guid.NewGuid();
|
||||
string saltSeed = obj.ToString();
|
||||
string saltPwd = SteamWare.SteamCrypto.EncryptString(newPwd, saltSeed);
|
||||
// salvo la nuova pwd...
|
||||
dl.taAnagUsers.updatePasswd(email, saltSeed, saltPwd);
|
||||
|
||||
// effettuo login con salvataggio cookie
|
||||
|
||||
// TODO FIXME
|
||||
|
||||
// rimando a sito
|
||||
Response.Redirect("Default");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CompanyRegistration.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_resetPwd
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEmail.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEmail;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblEmailError.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblEmailError;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblToken.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblToken;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTokenError.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTokenError;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtPassword.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPassword;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtPasswordRepeat.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtPasswordRepeat;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo CompareValidator1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CompareValidator CompareValidator1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtSubmit.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtSubmit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_userLogin.ascx.cs" Inherits="CompanyRegistration.WebUserControls.cmp_userLogin" %>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace CompanyRegistration.WebUserControls
|
||||
{
|
||||
public partial class cmp_userLogin : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CompanyRegistration.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_userLogin
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_userRegistration.ascx.cs" Inherits="CompanyRegistration.WebUserControls.cmp_userRegistration" %>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">Registrazione nuovo utente</h5>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Inserisci i dati richesti per proseguire</h5>
|
||||
<div class="form-group">
|
||||
<label for="txtEmail">Email address</label>
|
||||
<asp:Label runat="server" ID="lblError" CssClass="text-danger" Visible="false" />
|
||||
<asp:TextBox runat="server" ID="txtEmail" placeholder="email" class="form-control" TextMode="Email" />
|
||||
<small id="emailHelp" class="form-text text-muted">L'email sarà impiegata come login e non sarà diffusa ne utilizzata per scopi non inerenti la gestione della piattaforma.</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="txtFirstName">Nome</label>
|
||||
<asp:TextBox runat="server" ID="txtFirstName" placeholder="Nome" class="form-control" />
|
||||
<small id="firstnameHelp" class="form-text text-muted">Prego indicare il vostro nome</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="txtLastName">Cognome</label>
|
||||
<asp:TextBox runat="server" ID="txtLastName" placeholder="Cognome" class="form-control" />
|
||||
<small id="lastnameHelp" class="form-text text-muted">Prego indicare il vostro cognome</small>
|
||||
</div>
|
||||
<%--<div class="form-group">
|
||||
<label for="exampleInputPassword1">Password</label>
|
||||
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
|
||||
</div>--%>
|
||||
<div class="row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-3">
|
||||
<asp:LinkButton runat="server" ID="lbtSubscribe" class="btn btn-primary btn-block" OnClick="lbtSubscribe_Click">Submit</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<asp:LinkButton runat="server" ID="lbtReset" class="btn btn-warning btn-block" Visible="false" OnClick="lbtReset_Click">Reset Password</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-md-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,74 @@
|
||||
using AppData;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace CompanyRegistration.WebUserControls
|
||||
{
|
||||
public partial class cmp_userRegistration : System.Web.UI.UserControl
|
||||
{
|
||||
protected DataLayer dl = new DataLayer();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected string email
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtEmail.Text.Trim();
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtSubscribe_Click(object sender, EventArgs e)
|
||||
{
|
||||
// check login esistente
|
||||
var userFound = dl.taAnagUsers.getByKey(txtEmail.Text.Trim());
|
||||
if (userFound == null || userFound.Count == 0)
|
||||
{
|
||||
lblError.Visible = false;
|
||||
lbtReset.Visible = false;
|
||||
// registro su DB
|
||||
var newRecord = dl.taAnagUsers.insertNew(email, txtFirstName.Text.Trim(), txtLastName.Text.Trim());
|
||||
string token = "###";
|
||||
if (newRecord != null && newRecord.Count == 1)
|
||||
{
|
||||
token = newRecord[0].saltSeed;
|
||||
}
|
||||
// invio email x pwd reset
|
||||
string oggetto = "reset password utente piattaforma SmartCheckIn";
|
||||
string corpo = $"Buongiorno<br/>Prego cliccare sul <a href=\"http:////seriate.steamware.net:8083//SmartCheckIn//User//resetPwd?email={email}&token={token}\">link seguente</a> per effettuare il reset della password associata alla tua email per la piattaforma smartcheckin.site";
|
||||
AppData.utility.inviaEmail(txtEmail.Text.Trim(), oggetto, corpo, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
// errore email già esistente
|
||||
lblError.Visible = true;
|
||||
lblError.Text = "Errore: email già esistente, se vuoi resettare password prego premi sul pulsante in calce";
|
||||
lbtReset.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
var userFound = dl.taAnagUsers.getByKey(txtEmail.Text.Trim());
|
||||
if (userFound != null || userFound.Count == 1)
|
||||
{
|
||||
string token = userFound[0].saltSeed;
|
||||
// invio email x pwd reset
|
||||
string oggetto = "reset password utente piattaforma SmartCheckIn";
|
||||
string corpo = $"Buongiorno<br/>Prego cliccare sul <a href=\"http:////seriate.steamware.net:8083//SmartCheckIn//User//resetPwd?email={email}&token={token}\">link seguente</a> per effettuare il reset della password associata alla tua email per la piattaforma smartcheckin.site";
|
||||
AppData.utility.inviaEmail(txtEmail.Text.Trim(), oggetto, corpo, 1);
|
||||
// nascondo errore
|
||||
lblError.Visible = false;
|
||||
lbtReset.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CompanyRegistration.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class cmp_userRegistration
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblError.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblError;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtEmail.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtEmail;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtFirstName.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtFirstName;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtLastName.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtLastName;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtSubscribe.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtSubscribe;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtReset.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtReset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/SiteContent.master" AutoEventWireup="true" CodeBehind="resetPwd.aspx.cs" Inherits="CompanyRegistration.resetPwd" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/cmp_resetPwd.ascx" TagPrefix="uc1" TagName="cmp_resetPwd" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<uc1:cmp_resetPwd runat="server" id="cmp_resetPwd" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace CompanyRegistration
|
||||
{
|
||||
public partial class resetPwd : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CompanyRegistration
|
||||
{
|
||||
|
||||
|
||||
public partial class resetPwd
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo cmp_resetPwd.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::CompanyRegistration.WebUserControls.cmp_resetPwd cmp_resetPwd;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user