refresh progetto SMART x licenze

This commit is contained in:
Samuele Locatelli
2021-11-10 10:07:10 +01:00
parent 0bb07270fa
commit 85fe87bbf9
12 changed files with 442 additions and 404 deletions
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
@@ -15,11 +15,11 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
@@ -25,11 +25,11 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
@@ -19,11 +19,11 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
@@ -19,11 +19,11 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<ObjectGroup Name="GPW_data.Properties.Settings.GPWConnectionString" Order="1" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\GPW_data.Properties.Settings.GPWConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
+31 -31
View File
@@ -4,55 +4,55 @@
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
Nell'esempio seguente, la trasformazione "SetAttributes" modifica il valore di
"connectionString" in modo da utilizzare "ReleaseSQLServer" solo quando il localizzatore "Match"
Nell'esempio seguente, la trasformazione "SetAttributes" modifica il valore di
"connectionString" in modo da utilizzare "ReleaseSQLServer" solo quando il localizzatore "Match"
individua un attributo "name" con valore "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
</connectionStrings>
-->
<appSettings>
<!--area conf email-->
<add key="adminAnomalieEmail" value="lucia.gervasoni@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="adminContinuatoEmail" value="lucia.gervasoni@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="adminOreLavEmail" value="lucia.gervasoni@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="checkAnomOreLav" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="checkAnomOreLavComm" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="_fromEmail" value="GPW@steamware.net" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="_smtpCli" value="smtp.gmail.com" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="_emailUser" value="info@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="_emailPwd" value="spsstampi_2012" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="_enableSSL" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="adminAnomalieEmail" value="lucia.gervasoni@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="adminContinuatoEmail" value="lucia.gervasoni@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="adminOreLavEmail" value="lucia.gervasoni@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="checkAnomOreLav" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="checkAnomOreLavComm" value="false" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_fromEmail" value="GPW@steamware.net" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_smtpCli" value="smtp.gmail.com" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_emailUser" value="info@spsstampi.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_emailPwd" value="spsstampi_2012" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="_enableSSL" value="true" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<!--altri parametri-->
<add key="authKey" value="giambaSPS" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="baseUrl" value="http://W2012FS/GPW_SPS/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="GpwSmartUrl" value="../../GPW_SPS/SMART" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="GpwBCodeUrl" value="../../GPW_SPS/BCODE" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="reportBaseUrl" value="http://W2012FS/ReportServer?/Steamware/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="authKey" value="giambaSPS" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="baseUrl" value="http://W2012FS/GPW_SPS/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="GpwSmartUrl" value="../../GPW_SPS/SMART" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="GpwBCodeUrl" value="../../GPW_SPS/BCODE" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="reportBaseUrl" value="http://W2012FS/ReportServer?/Steamware/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<!--area DB-->
<add key="PermessiConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="UtenteCdcConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="VocabolarioConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="GPWConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
<add key="PermessiConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="UtenteCdcConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="VocabolarioConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
<add key="GPWConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
</appSettings>
<connectionStrings>
<add name="GPW_data.Properties.Settings.GPWConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
<add name="GPW_data.Properties.Settings.GPWConnectionString" connectionString="Data Source=SQLSTEAM;Initial Catalog=SPS_GPW;Persist Security Info=True;User ID=sa;Password=steamware" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
</connectionStrings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
Nell'esempio seguente, la trasformazione "Replace" sostituisce l'intera
Nell'esempio seguente, la trasformazione "Replace" sostituisce l'intera
sezione <customErrors> del file web.config.
Poiché è presente un'unica sezione customErrors nel
Poiché è presente un'unica sezione customErrors nel
nodo <system.web>, non è necessario utilizzare l'attributo "xdt:Locator".
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
<error statusCode="500" redirect="InternalError.htm" />
</customErrors>
-->
</system.web>
+230 -230
View File
@@ -4,140 +4,140 @@
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.6.2" />
<httpRuntime targetFramework="4.6.2" />
<pages>
<namespaces>
<add namespace="System.Web.Optimization" />
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.6.2" />
<httpRuntime targetFramework="4.6.2" />
<pages>
<namespaces>
<add namespace="System.Web.Optimization" />
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
<!--<customErrors mode="Off" />-->
<customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPage" />
<globalization culture="it-IT" enableClientBasedCulture="true" uiCulture="it" />
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
</httpModules>
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="GPW_SMART" databaseId="1" />
</providers>
</sessionState>
</system.web>
<appSettings>
<!--Redis conn-->
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false" />
<add key="redisDb" value="1" />
<!--Impostazione gestione serializzazione variabili in sessione (es per Redis)-->
<add key="serializeSession" value="true" />
<add key="errorPageRedirect" value="./Reset?Action=CDV" />
<add key="shotTimeCache" value="300" />
<!--Conf generale-->
<add key="appName" value="GPW" />
<add key="titleApp" value="GPW" />
<add key="welcomeApp" value="GPW_welcome" />
<add key="SiteName" value="Steamware" />
<!--<add key="mainRev" value="1.8" />
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
<!--<customErrors mode="Off" />-->
<customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPage" />
<globalization culture="it-IT" enableClientBasedCulture="true" uiCulture="it" />
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
</httpModules>
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="GPW_SMART" databaseId="1" />
</providers>
</sessionState>
</system.web>
<appSettings>
<!--Redis conn-->
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false" />
<add key="redisDb" value="1" />
<!--Impostazione gestione serializzazione variabili in sessione (es per Redis)-->
<add key="serializeSession" value="true" />
<add key="errorPageRedirect" value="./Reset?Action=CDV" />
<add key="shotTimeCache" value="300" />
<!--Conf generale-->
<add key="appName" value="GPW" />
<add key="titleApp" value="GPW" />
<add key="welcomeApp" value="GPW_welcome" />
<add key="SiteName" value="Steamware" />
<!--<add key="mainRev" value="1.8" />
<add key="minRev" value="375" />-->
<add key="copyRight" value="SteamWare" />
<add key="CodModulo" value="GPW" />
<add key="_safePages" value="unauthorized.aspx#forceUser.aspx#login#login.aspx#test.aspx#Test.aspx" />
<!--Gestione forzatura priam timbratura ad entrata-->
<add key="firstIsIN" value="true" />
<add key="ttlAbilitaAll" value="10" />
<!--Gestione notifiche anomalie-->
<add key="adminAnomalieEmail" value="samuele@steamware.net" />
<add key="adminContinuatoEmail" value="samuele@steamware.net" />
<add key="adminOreLavEmail" value="samuele@steamware.net" />
<add key="gg2Chk" value="60" />
<add key="gg2ChkCont" value="30" />
<add key="gg2ChkOreCaricate" value="30" />
<add key="checkAnomTimb" value="true" />
<add key="checkAnomAppr" value="true" />
<add key="checkAnomOreLav" value="true" />
<add key="checkAnomOreLavComm" value="true" />
<add key="checkAnomContinuato" value="true" />
<add key="sendEmailToUser" value="true" />
<add key="firstHour2Check" value="6" />
<add key="enableDailyCheck" value="true" />
<!--Timeout vari-->
<add key="intUpdatePagina_ms" value="120000" />
<add key="intUpdateFooter_ms" value="1000" />
<add key="maxRefreshToReload" value="30" />
<!--ricerca autocomplete-->
<add key="maxNumSuggest" value="30" />
<!--Logging-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
<add key="_logLevel" value="6" />
<add key="_logMaxMb" value="30" />
<!--Definizione default x registrazione commesse-->
<add key="defRegAttMin" value="60" />
<add key="maxErr" value="30" />
<add key="maxErrMin" value="-30" />
<add key="maxErrPlus" value="91" />
<!--default visualizzazione timbrature-->
<add key="reviewShowCN" value="true" />
<add key="reviewShowOreMin" value="false" />
<add key="reviewShowStraord" value="true" />
<!--gestione warning x calcolo real/budget-->
<add key="warningRatioPerc" value="80" />
<!--Definizione URL e rete locale-->
<add key="localNet" value="10.74" />
<add key="dhcpLeaseTime" value="15" />
<!--Conf x grafici a barre-->
<add key="maxBarplotLargh" value="1000" />
<!--Conf attivazione funzionalità opzionali-->
<add key="barcodeAutoApprove" value="true" />
<add key="regAttEnabled" value="true" />
<!--Gestione selettore periodo-->
<add key="defDayFrom" value="-30" />
<add key="mostraSelOra" value="false" />
<!--Timbratrice x Zucchetti-->
<add key="codTimbra" value="90" />
<!--Gestione email-->
<add key="_fromEmail" value="steamwarebot@gmail.com" />
<add key="_smtpCli" value="smtp.gmail.com" />
<add key="_emailUser" value="steamwarebot@gmail.com" />
<add key="_emailPwd" value="drmfsls16" />
<add key="_enableSSL" value="true" />
<!--gestione tac cloud-->
<add key="TagCloudMode" value="elenco" />
<!--Gestione auth dispositivi mobile-->
<add key="authKey" value="keyhammer" />
<add key="baseUrl" value="http://10.74.82.219/GPW/SMART/" />
<add key="baseWebUrl" value="http://seriate.steamware.net:8083/GPW/SMART/" />
<!--Gestione SSRS-->
<add key="reportBaseUrl" value="http://sql-steam/ReportServer?/Steamware/" />
<!--Conf DB-->
<add key="PermessiConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="UtenteCdcConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=Steamware_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="VocabolarioConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW_vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="GPWConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
</appSettings>
<connectionStrings>
<add name="GPW_data.Properties.Settings.GPWConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
<add name="ErrorLog" connectionString="Data Source=SQL2016DEV;Initial Catalog=Elmah;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<add key="copyRight" value="SteamWare" />
<add key="CodModulo" value="GPW" />
<add key="_safePages" value="unauthorized.aspx#forceUser.aspx#login#login.aspx#test.aspx#Test.aspx" />
<!--Gestione forzatura priam timbratura ad entrata-->
<add key="firstIsIN" value="true" />
<add key="ttlAbilitaAll" value="10" />
<!--Gestione notifiche anomalie-->
<add key="adminAnomalieEmail" value="samuele@steamware.net" />
<add key="adminContinuatoEmail" value="samuele@steamware.net" />
<add key="adminOreLavEmail" value="samuele@steamware.net" />
<add key="gg2Chk" value="60" />
<add key="gg2ChkCont" value="30" />
<add key="gg2ChkOreCaricate" value="30" />
<add key="checkAnomTimb" value="true" />
<add key="checkAnomAppr" value="true" />
<add key="checkAnomOreLav" value="true" />
<add key="checkAnomOreLavComm" value="true" />
<add key="checkAnomContinuato" value="true" />
<add key="sendEmailToUser" value="true" />
<add key="firstHour2Check" value="6" />
<add key="enableDailyCheck" value="true" />
<!--Timeout vari-->
<add key="intUpdatePagina_ms" value="120000" />
<add key="intUpdateFooter_ms" value="1000" />
<add key="maxRefreshToReload" value="30" />
<!--ricerca autocomplete-->
<add key="maxNumSuggest" value="30" />
<!--Logging-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
<add key="_logLevel" value="6" />
<add key="_logMaxMb" value="30" />
<!--Definizione default x registrazione commesse-->
<add key="defRegAttMin" value="60" />
<add key="maxErr" value="30" />
<add key="maxErrMin" value="-30" />
<add key="maxErrPlus" value="91" />
<!--default visualizzazione timbrature-->
<add key="reviewShowCN" value="true" />
<add key="reviewShowOreMin" value="false" />
<add key="reviewShowStraord" value="true" />
<!--gestione warning x calcolo real/budget-->
<add key="warningRatioPerc" value="80" />
<!--Definizione URL e rete locale-->
<add key="localNet" value="10.74" />
<add key="dhcpLeaseTime" value="15" />
<!--Conf x grafici a barre-->
<add key="maxBarplotLargh" value="1000" />
<!--Conf attivazione funzionalità opzionali-->
<add key="barcodeAutoApprove" value="true" />
<add key="regAttEnabled" value="true" />
<!--Gestione selettore periodo-->
<add key="defDayFrom" value="-30" />
<add key="mostraSelOra" value="false" />
<!--Timbratrice x Zucchetti-->
<add key="codTimbra" value="90" />
<!--Gestione email-->
<add key="_fromEmail" value="steamwarebot@gmail.com" />
<add key="_smtpCli" value="smtp.gmail.com" />
<add key="_emailUser" value="steamwarebot@gmail.com" />
<add key="_emailPwd" value="drmfsls16" />
<add key="_enableSSL" value="true" />
<!--gestione tac cloud-->
<add key="TagCloudMode" value="elenco" />
<!--Gestione auth dispositivi mobile-->
<add key="authKey" value="keyhammer" />
<add key="baseUrl" value="http://10.74.82.219/GPW/SMART/" />
<add key="baseWebUrl" value="http://seriate.steamware.net:8083/GPW/SMART/" />
<!--Gestione SSRS-->
<add key="reportBaseUrl" value="http://sql-steam/ReportServer?/Steamware/" />
<!--Conf DB-->
<add key="PermessiConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="UtenteCdcConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=Steamware_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="VocabolarioConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=GPW_vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="GPWConnectionString" value="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
</appSettings>
<connectionStrings>
<add name="GPW_data.Properties.Settings.GPWConnectionString" connectionString="Data Source=SQLSTEAM;Initial Catalog=GPW;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
<add name="ErrorLog" connectionString="Data Source=SQL2016DEV;Initial Catalog=Elmah;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
@@ -338,101 +338,101 @@
<assemblyIdentity name="System.Collections.Concurrent" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.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>
<dependentAssembly>
<assemblyIdentity name="DnsClient" publicKeyToken="4574bb5573c51424" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.3.2.0" newVersion="1.3.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.28.1.0" newVersion="0.28.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.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.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.Pkcs" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<staticContent>
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
<modules>
<remove name="Session" />
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
</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>
<elmah>
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ErrorLog" />
<security allowRemoteAccess="false" />
</elmah>
<location path="elmah.axd" inheritInChildApplications="false">
<system.web>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
</system.webServer>
</location>
</configuration>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.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>
<dependentAssembly>
<assemblyIdentity name="DnsClient" publicKeyToken="4574bb5573c51424" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.3.2.0" newVersion="1.3.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-0.28.1.0" newVersion="0.28.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.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.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.Pkcs" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.0.0.1" newVersion="5.0.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<staticContent>
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
<modules>
<remove name="Session" />
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
</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>
<elmah>
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ErrorLog" />
<security allowRemoteAccess="false" />
</elmah>
<location path="elmah.axd" inheritInChildApplications="false">
<system.web>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
</system.webServer>
</location>
</configuration>
+15 -21
View File
@@ -56,44 +56,38 @@
<div class="row small pt-3 pb-0">
<div class="col-6 py-0">
<address>
<strong>Sede Operativa</strong><br />
<strong>Sede Legale ed Operativa</strong><br />
via Nazionale, 93<br />
24068 Seriate - BG<br />
<abbr title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></abbr>
<a href="mailto:info@steamware.net">info@steamware.net</a><br />
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
035.218124<br />
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
035.290178<br />
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
035.460560
ITALIA<br />
<br />
<abbr title="P.Iva">VAT:03985390164</abbr>
</address>
</div>
<div class="col-6 py-0">
<address>
<strong>Sede Legale</strong><br />
via Briolo Fuori, 27<br />
24015 San Giovanni Bianco
Bergamo - ITALY<br />
<abbr title="P.Iva">VAT:</abbr>
03274190168<br />
<strong>Contatti</strong><br />
<abbr title="email"><i class="fa fa-envelope-o" aria-hidden="true"></i></abbr>
<a href="mailto:info@steamware.net">info@egalware.com</a><br />
<abbr title="pec"><i class="fa fa-envelope" aria-hidden="true"></i></abbr>
steamware@pec.it<br />
<abbr title="SDI">SDI:</abbr>
M5UXCR1<br />
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
+39 035.460560<br />
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
+39 035.290178<br />
<abbr title="Phone"><i class="fa fa-phone" aria-hidden="true"></i></abbr>
+39 035.218124
</address>
</div>
</div>
<div class="row small pb-2 px-0">
<div class="col text-center">
<a href="https://www.steamware.net" target="_blank" class="btn btn-block btn-primary"><i class="fa fa-globe" aria-hidden="true"></i> www.steamware.net
</a>
</div>
</div>
</div>
<div class="card-footer small">
Key:
<asp:Label runat="server" ID="lblAuthKey" Font-Size="0.6em" />
<a href="https://www.egalware.com" target="_blank" class="btn btn-block btn-primary"><i class="fa fa-globe" aria-hidden="true"></i> www.egalware.com
</a>
</div>
</div>
</div>
+78 -70
View File
@@ -6,83 +6,91 @@ using System.Web.UI;
namespace GPW_Smart.WebUserControls
{
public partial class cmp_info : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
public partial class cmp_info : System.Web.UI.UserControl
{
if (!Page.IsPostBack)
{
lblInstallation.Text = licenzeGPW.installazione;
lblApplication.Text = licenzeGPW.applicazione;
lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb);
lblNumLic.ToolTip = "licenze valide (licenze su db)";
lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString();
lblAuthKey.Text = licenzeGPW.authKey;
}
}
#region Public Properties
public string cssCheckClass
{
get
{
string answ = "";
if (licenzeGPW.scadenzaLicenza >= DateTime.Now)
public string cognomeNome
{
answ = "border-success";
get
{
return memLayer.ML.StringSessionObj("cognomeNome");
}
}
else
public string copyRight
{
answ = "border-danger";
get
{
return string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight"));
}
}
return answ;
}
}
public string hashEmail
{
get
{
return memLayer.ML.StringSessionObj("hashEmail");
}
}
public string email
{
get
{
return memLayer.ML.StringSessionObj("email");
}
}
public string cognomeNome
{
get
{
return memLayer.ML.StringSessionObj("cognomeNome");
}
}
public string IP
{
get
{
return Request.UserHostName;
}
}
public string cssCheckClass
{
get
{
string answ = "";
if (licenzeGPW.scadenzaLicenza >= DateTime.Now)
{
answ = "border-success";
}
else
{
answ = "border-danger";
}
return answ;
}
}
public string versione
{
get
{
return string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
}
public string email
{
get
{
return memLayer.ML.StringSessionObj("email");
}
}
public string hashEmail
{
get
{
return memLayer.ML.StringSessionObj("hashEmail");
}
}
public string IP
{
get
{
return Request.UserHostName;
}
}
public string versione
{
get
{
return string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
}
}
#endregion Public Properties
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
lblInstallation.Text = licenzeGPW.installazione;
lblApplication.Text = licenzeGPW.applicazione;
lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb);
lblNumLic.ToolTip = "licenze valide (licenze su db)";
lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString();
}
}
#endregion Protected Methods
}
public string copyRight
{
get
{
return string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight"));
}
}
}
}
+27 -34
View File
@@ -1,60 +1,53 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Smart.WebUserControls {
public partial class cmp_info {
namespace GPW_Smart.WebUserControls
{
public partial class cmp_info
{
/// <summary>
/// Controllo lblInstallation.
/// lblInstallation control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblInstallation;
/// <summary>
/// Controllo lblApplication.
/// lblApplication control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblApplication;
/// <summary>
/// Controllo lblNumLic.
/// lblNumLic control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumLic;
/// <summary>
/// Controllo lblExpiryDate.
/// lblExpiryDate control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblExpiryDate;
/// <summary>
/// Controllo lblAuthKey.
/// </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 lblAuthKey;
}
}
@@ -13,6 +13,9 @@
ToolTip="Ore caricate a commessa / ore lavorate da timbrature" />
</div>
</div>
<div class="col-12 alert alert-danger text-center " id="divAlertLic" runat="server">
<b><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Attenzione: licenza non valida, impossibile aggiunta record progetti</b>
</div>
</div>
<div class="row mb-5">
<div class="col">
@@ -9,6 +9,15 @@ namespace GPW.WebUserControls
{
public partial class mod_commAttivita : System.Web.UI.UserControl
{
#region Private Properties
private bool checkLicOk
{
get => licenzeGPW.checkLicenze && licenzeGPW.checkPayload;
}
#endregion Private Properties
#region Protected Properties
/// <summary>
@@ -31,15 +40,34 @@ namespace GPW.WebUserControls
/// </summary>
protected string rhProjByIF { get; set; }
protected bool userEnabled
{
get => (DataProxy.currDipIsActive && DataProxy.currDipHasPayloadActive);
}
protected bool userEnabled { get; set; } = false;
#endregion Protected Properties
#region Public Properties
/// <summary>
/// idxDipendente in sessione
/// </summary>
public static int idxDipendenteCurr
{
get
{
int idx = 0;
try
{
idx = memLayer.ML.IntSessionObj("IdxDipendente");
}
catch
{ }
return idx;
}
set
{
memLayer.ML.setSessionVal("idxDipendente", value);
}
}
/// <summary>
/// data riferimento (selezionata) da session
/// </summary>
@@ -167,7 +195,7 @@ namespace GPW.WebUserControls
{
int maxErrMinus = memLayer.ML.confReadInt("maxErrMinus");
int maxErrPlus = memLayer.ML.confReadInt("maxErrPlus");
DS_Applicazione.v_logCommUtRow rigaLog = DataProxy.DP.taLCU.getByIdxDipDate(memLayer.ML.IntSessionObj("idxDipendente"), dataRif, dataRif.AddDays(1), maxErrMinus, maxErrPlus)[0];
DS_Applicazione.v_logCommUtRow rigaLog = DataProxy.DP.taLCU.getByIdxDipDate(idxDipendenteCurr, dataRif, dataRif.AddDays(1), maxErrMinus, maxErrPlus)[0];
lblTotOreRA.Text = string.Format("<b>{0:0.##}</b> / <b>{1:0.##}</b> h", rigaLog.h_com, rigaLog.h_lav);
}
catch
@@ -177,7 +205,9 @@ namespace GPW.WebUserControls
memLayer.ML.setSessionVal("dataFromRA", dataRif.Date);
memLayer.ML.setSessionVal("dataToRA", dataRif.AddDays(1).Date);
// controllo aggiunta da licenza
lnkCreateNew.Visible = userEnabled;
var licOk = userEnabled;
lnkCreateNew.Visible = licOk;
divAlertLic.Visible = !licOk;
}
#endregion Private Methods
@@ -262,6 +292,7 @@ namespace GPW.WebUserControls
protected void Page_Load(object sender, EventArgs e)
{
userEnabled = DataProxy.currDipIsActive && checkLicOk && DataProxy.currDipHasPayloadActive;
if (!Page.IsPostBack)
{
// controllo se ho una data selezionata da URL
@@ -41,6 +41,15 @@ namespace GPW.WebUserControls
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblTotOreRA;
/// <summary>
/// divAlertLic control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divAlertLic;
/// <summary>
/// grView control.
/// </summary>