3 Commits

Author SHA1 Message Date
Samuele E. Locatelli 35bc5837bb fix selezione periodo da tendina 2020-09-17 16:48:28 +02:00
Samuele E. Locatelli 8acad11240 Merge branch 'develop' into ETS 2020-09-17 16:32:30 +02:00
Samuele E. Locatelli 1c8e1b702f Fix selezione periodo che non permette editing oltre 2 week 2020-09-17 16:32:19 +02:00
4 changed files with 615 additions and 591 deletions
+226 -226
View File
@@ -4,15 +4,15 @@
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>
<!--
<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>
<!--
Per una descrizione delle modifiche al file web.config, vedere il sito Web all'indirizzo http://go.microsoft.com/fwlink/?LinkId=235367.
Gli attributi seguenti possono essere impostati sul tag <httpRuntime>.
@@ -20,70 +20,70 @@
<httpRuntime targetFramework="4.7.2" />
</system.Web>
-->
<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" />
<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>
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="GPW_WRKLG" />
</providers>
</sessionState>
</system.web>
<appSettings>
<!--Impostazione gestione serializzazione variabili in sessione (es per Redis)-->
<add key="serializeSession" value="true" />
<!--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#forceUser#login#login#test#Test" />
<!--Gestione forzatura priam timbratura ad entrata-->
<add key="firstIsIN" value="true" />
<!--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" />
<!--Abilitazione link timbrature-->
<add key="showRepTimb" value="true" />
<!--Gestione Barcode-->
<!--<add key="secTimeoutBCode" value="8" />
<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" />
<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>
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="GPW_WRKLG" />
</providers>
</sessionState>
</system.web>
<appSettings>
<!--Impostazione gestione serializzazione variabili in sessione (es per Redis)-->
<add key="serializeSession" value="true" />
<!--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#forceUser#login#login#test#Test" />
<!--Gestione forzatura priam timbratura ad entrata-->
<add key="firstIsIN" value="true" />
<!--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="180000" />
<add key="intUpdateFooter_ms" value="1000" />
<add key="maxRefreshToReload" value="30" />
<!--Abilitazione link timbrature-->
<add key="showRepTimb" value="true" />
<!--Gestione Barcode-->
<!--<add key="secTimeoutBCode" value="8" />
<add key="prefComandi" value="CMD" />
<add key="prefIdx" value="idx" />
<add key="prefMatr" value="matr" />
@@ -92,163 +92,163 @@
<add key="uscita" value="CMDOUT" />
<add key="ipv4StazBCode" value="*" />
<add key="showNameAfterCmd" value="true" />-->
<!--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.82" />
<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="-10" />
<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://iis02/GPW/" />
<add key="baseWebUrl" value="http://seriate.steamware.net:8083/GPW/" />
<add key="GpwSmartUrl" value="../../GPW/SMART" />
<add key="GpwBCodeUrl" value="../../GPW/BCODE" />
<!--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">
<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.26.0.0" newVersion="0.26.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</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.1.0" newVersion="4.0.1.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="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="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>
</assemblyBinding>
</runtime>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
<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>
<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>
<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>
<!--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.82" />
<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="-10" />
<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://iis02/GPW/" />
<add key="baseWebUrl" value="http://seriate.steamware.net:8083/GPW/" />
<add key="GpwSmartUrl" value="../../GPW/SMART" />
<add key="GpwBCodeUrl" value="../../GPW/BCODE" />
<!--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">
<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.26.0.0" newVersion="0.26.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</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.1.0" newVersion="4.0.1.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="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="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>
</assemblyBinding>
</runtime>
<system.webServer>
<handlers>
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
<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>
<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>
<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>
</location>
<!--<location path="~/Controllers">
<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>
<!--<location path="~/Controllers">
<system.web>
<authorization>
<allow users="?"/>
<allow users="?" />
</authorization>
</system.web>
</location>-->
</configuration>
</configuration>
@@ -9,9 +9,6 @@
<%@ Register Src="~/WebUserControls/cmp_rilTemp.ascx" TagPrefix="uc2" TagName="cmp_rilTemp" %>
<%@ Register Src="~/WebUserControls/cmp_chart.ascx" TagPrefix="uc2" TagName="cmp_chart" %>
<asp:HiddenField runat="server" ID="hfDataFrom" />
<asp:HiddenField runat="server" ID="hfDataTo" />
@@ -164,4 +161,4 @@
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
+387 -360
View File
@@ -16,44 +16,25 @@ namespace GPW_Commesse.WebUserControls
/// elenco giornate e resoconto
/// </summary>
elenco,
/// <summary>
/// edit timbrature attivo
/// </summary>
editTimb,
/// <summary>
/// edit Registro Attività attivo
/// </summary>
editRegAtt,
/// <summary>
/// edit Rilievo Temperatura attivo
/// </summary>
editRilTemp
}
public partial class mod_commUtLog : BaseUserControl
{
/// <summary>
/// Determina se visualizzare entrambe le schede...
/// </summary>
protected bool openBoth
{
get
{
return cmp_toggle.toggleValue;
}
}
public string cssClassProgetti
{
get
{
string answ = "";
if (openBoth)
{
answ = " d-inline-block text-truncate";
}
return answ;
}
}
public modoCommesse activeMode
{
get
@@ -72,205 +53,20 @@ namespace GPW_Commesse.WebUserControls
memLayer.ML.setSessionVal("activeModeComm", value);
}
}
/// <summary>
/// Avvio pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
public string cssClassProgetti
{
memLayer.ML.setSessionVal("maxErrMin", memLayer.ML.confReadInt("maxErrMin"));
memLayer.ML.setSessionVal("maxErrPlus", memLayer.ML.confReadInt("maxErrPlus"));
if (!Page.IsPostBack)
get
{
activeMode = modoCommesse.elenco;
intervalloDate periodo = new intervalloDate();
periodo.fine = DateTime.Now.AddDays(1);
periodo.inizio = periodo.fine.AddDays(memLayer.ML.confReadInt("defDayFrom"));
mod_periodoAnalisi1.intervalloAnalisi = periodo;
// salvo link in HF
hfDataFrom.Value = periodo.inizio.ToString();
hfDataTo.Value = periodo.fine.ToString();
// imposto modo tag cloud
string modoTC = memLayer.ML.confReadString("TagCloudMode");
switch (modoTC)
{
case "elenco":
mod_TagCloudProgetti1.modo = TagCloudMode.elenco;
break;
case "elencoCPF":
mod_TagCloudProgetti1.modo = TagCloudMode.elencoCPF;
break;
case "piramide":
mod_TagCloudProgetti1.modo = TagCloudMode.piramide;
break;
case "standard":
default:
mod_TagCloudProgetti1.modo = TagCloudMode.standard;
break;
}
}
showPanels();
grView.DataBind();
mod_commUtMancTimbr1.eh_nuovoValore += new EventHandler(mod_commUtMancTimbr1_eh_nuovoValore);
mod_commAttivitaDesk1.eh_nuovoValore += new EventHandler(mod_commAttivitaDesk1_eh_nuovoValore);
mod_TagCloudProgetti1.eh_newVal += new EventHandler(mod_TagCloudProgetti1_eh_newVal);
mod_TagCloudProgetti1.eh_refresh += mod_TagCloudProgetti1_eh_refresh;
mod_periodoAnalisi1.eh_doUpdate += mod_periodoAnalisi1_eh_doUpdate;
cmp_toggle.ehToggle += Cmp_toggle_ehToggle;
cmp_rilTemp.ehCancel += cmp_rilTemp_ehCancel;
cmp_rilTemp.ehSave += cmp_rilTemp_ehSave;
}
private void cmp_rilTemp_ehSave(object sender, EventArgs e)
{
activeMode = modoCommesse.elenco;
showPanels();
}
private void cmp_rilTemp_ehCancel(object sender, EventArgs e)
{
activeMode = modoCommesse.elenco;
showPanels();
grView.SelectedIndex = -1;
grView.DataBind();
}
private void Cmp_toggle_ehToggle(object sender, EventArgs e)
{
showPanels();
}
void mod_TagCloudProgetti1_eh_refresh(object sender, EventArgs e)
{
mod_commAttivitaDesk1.doUpdate();
grView.DataBind();
}
void mod_periodoAnalisi1_eh_doUpdate(object sender, EventArgs e)
{
// 2016.04.07: salvo intervallo nei 2 hidden field
hfDataFrom.Value = mod_periodoAnalisi1.intervalloAnalisi.inizio.ToString();
hfDataTo.Value = mod_periodoAnalisi1.intervalloAnalisi.fine.ToString();
// update
mod_commAttivitaDesk1.doUpdate();
grView.DataBind();
}
void mod_TagCloudProgetti1_eh_newVal(object sender, EventArgs e)
{
mod_commAttivitaDesk1.doUpdate();
grView.DataBind();
}
void mod_commAttivitaDesk1_eh_nuovoValore(object sender, EventArgs e)
{
mod_TagCloudProgetti1.doUpdate();
grView.DataBind();
}
void mod_commUtMancTimbr1_eh_nuovoValore(object sender, EventArgs e)
{
grView.DataBind();
}
/// <summary>
/// inverte valore booleano
/// </summary>
/// <param name="isEnt"></param>
/// <returns></returns>
public bool invBool(object valore)
{
bool answ = true;
try
{
answ = !Convert.ToBoolean(valore);
}
catch
{ }
return answ;
}
private void editTemp(string dataRif)
{
CultureInfo ita = new CultureInfo("it-IT");
cmp_rilTemp.dtRif = Convert.ToDateTime(dataRif, ita);
cmp_chart.dtRif = Convert.ToDateTime(dataRif, ita);
//salvo in sessione dati x detail timbrature
memLayer.ML.setSessionVal("idxDip_det", DataProxy.idxDipendente);
// imposto modalità
activeMode = modoCommesse.editRilTemp;
showPanels();
}
protected void lbShowTemp_Click(object sender, EventArgs e)
{
string dataRif = ((LinkButton)sender).CommandArgument;
// verifico se dip sia attivo...
if (DataProxy.currDipIsActive)
{
editTemp(dataRif);
}
}
private void editTimbr(string dataRif)
{
DateTime adesso = DateTime.Now;
CultureInfo ita = new CultureInfo("it-IT");
mod_commUtMancTimbr1.valoreDateTime = Convert.ToDateTime(dataRif, ita).AddHours(adesso.Hour).AddMinutes(adesso.Minute - adesso.Minute % 5);
//salvo in sessione dati x detail timbrature
memLayer.ML.setSessionVal("inizioDet", Convert.ToDateTime(dataRif, ita).Date);
memLayer.ML.setSessionVal("fineDet", Convert.ToDateTime(dataRif, ita).Date.AddDays(1));
memLayer.ML.setSessionVal("idxDip_det", DataProxy.idxDipendente);
// imposto modalità
activeMode = modoCommesse.editTimb;
showPanels();
}
protected void lnkEditTimbr_Click(object sender, EventArgs e)
{
string dataRif = ((LinkButton)sender).CommandArgument;
// verifico se dip sia attivo...
if (DataProxy.currDipIsActive)
{
editTimbr(dataRif);
// apro anche data dell'altro SE abilitato
string answ = "";
if (openBoth)
{
editCommDay(dataRif);
answ = " d-inline-block text-truncate";
}
return answ;
}
}
private void editCommDay(string dataRif)
{
CultureInfo ita = new CultureInfo("it-IT");
mod_commAttivitaDesk1.idxDipCurr = DataProxy.idxDipendente;
mod_commAttivitaDesk1.valoreDateTime = Convert.ToDateTime(dataRif, ita);
mod_TagCloudProgetti1.dataRif = Convert.ToDateTime(dataRif, ita);
//salvo in sessione dati x detail timbrature
memLayer.ML.setSessionVal("inizioDet", Convert.ToDateTime(dataRif, ita).Date);
memLayer.ML.setSessionVal("fineDet", Convert.ToDateTime(dataRif, ita).Date.AddDays(1));
memLayer.ML.setSessionVal("idxDip_det", DataProxy.idxDipendente);
// imposto modalità
activeMode = modoCommesse.editRegAtt;
showPanels();
mod_commAttivitaDesk1.doUpdate();
}
protected void lnkEditComm_Click(object sender, EventArgs e)
{
string dataRif = ((LinkButton)sender).CommandArgument;
// verifico se dip sia attivo...
if (DataProxy.currDipIsActive)
{
editCommDay(dataRif);
// apro anche data dell'altro SE abilitato
if (openBoth)
{
editTimbr(dataRif);
}
}
}
/// <summary>
/// indica se sia abilitato l'editing delle attività legate alle commesse e l'utente sia attivo!!!
/// </summary>
@@ -281,8 +77,20 @@ namespace GPW_Commesse.WebUserControls
return memLayer.ML.confReadBool("regAttEnabled") && DataProxy.currDipIsActive;
}
}
/// <summary>
///
/// Determina se visualizzare entrambe le schede...
/// </summary>
protected bool openBoth
{
get
{
return cmp_toggle.toggleValue;
}
}
/// <summary>
/// Calcola classe da permesso
/// </summary>
/// <param name="minPerm"></param>
/// <returns></returns>
@@ -295,126 +103,33 @@ namespace GPW_Commesse.WebUserControls
}
return answ;
}
/// <summary>
/// prepara tooltip permessi/straordinarie
/// formatta la durata in ore secondo web.config (centesimale/ore:min)
/// </summary>
/// <param name="minStra"></param>
/// <param name="minPerm"></param>
/// <param name="oreCent"></param>
/// <returns></returns>
public string tooltipPermStra(object minStra, object minPerm)
public string formatDurata(object oreCent)
{
string answ = "";
decimal ore = 0;
try
{
if (memLayer.ML.confReadBool("reviewShowOreMin"))
{
answ = string.Format("Straordinarie: {0} - Permessi: {1} (h:mm)", utils.formOreMin(Convert.ToDecimal(minStra) / 60), utils.formOreMin(Convert.ToDecimal(minPerm) / 60));
}
else
{
answ = string.Format("Straordinarie: {0:0.##} h - Permessi: {1:0.##} h", Convert.ToDouble(minStra) / 60, Convert.ToDouble(minPerm) / 60);
}
ore = Convert.ToDecimal(oreCent);
}
catch
{ }
return answ;
}
/// <summary>
/// imposta visualizzazione dei pannelli opzionali laterali a seocnda del modo attivo
/// </summary>
protected void showPanels()
{
// imposto valori default
bool commesse = false;
bool temp = false;
bool timbr = false;
divDx.Attributes.Remove("class");
divCn.Attributes.Remove("class");
divSx.Attributes.Remove("class");
if (openBoth)
string answ = "";
if (memLayer.ML.confReadBool("reviewShowOreMin"))
{
switch (activeMode)
{
case modoCommesse.editTimb:
case modoCommesse.editRegAtt:
commesse = true;
timbr = true;
divCn.Attributes.Add("class", "col-sm-6 px-1");
divSx.Attributes.Add("class", "col-sm-2 pr-0");
divDx.Attributes.Add("class", "col-sm-4 pl-0");
divDx.Visible = true;
divSx.Visible = true;
break;
case modoCommesse.editRilTemp:
temp = true;
divCn.Attributes.Add("class", "col-sm-7 col-md-8 col-lg-9");
divSx.Attributes.Add("class", "col-sm-5 col-md-4 col-lg-3");
divDx.Visible = false;
divSx.Visible = true;
break;
case modoCommesse.elenco:
default:
divCn.Attributes.Add("class", "col-12");
divDx.Visible = false;
divSx.Visible = false;
break;
}
answ = utils.formOreMin(ore);
}
else
{
switch (activeMode)
{
case modoCommesse.editTimb:
timbr = true;
divCn.Attributes.Add("class", "col-sm-7 col-md-8 col-lg-9");
divSx.Attributes.Add("class", "col-sm-5 col-md-4 col-lg-3");
divDx.Visible = false;
divSx.Visible = true;
break;
case modoCommesse.editRilTemp:
temp = true;
divCn.Attributes.Add("class", "col-12");
divDx.Visible = false;
divSx.Visible = false;
break;
case modoCommesse.editRegAtt:
commesse = true;
divCn.Attributes.Add("class", "col-sm-6 col-md-7 col-lg-8");
divDx.Attributes.Add("class", "col-sm-6 col-md-5 col-lg-4");
divDx.Visible = true;
divSx.Visible = false;
break;
case modoCommesse.elenco:
default:
divCn.Attributes.Add("class", "col-12");
divDx.Visible = false;
divSx.Visible = false;
break;
}
answ = ore.ToString("0.00");
}
// fix finale!
pnlEditCom.Visible = commesse;
pnlEditOre.Visible = timbr;
mod_commAttivitaDesk1.Visible = commesse;
mod_commUtMancTimbr1.Visible = timbr;
divRilTemp.Visible = temp;
cmp_rilTemp.Visible = temp;
cmp_chart.Visible = true;
return answ;
}
upMain.Update();
upCharts.Update();
}
/// <summary>
/// chiamata del button close (entrambi)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnClose_Click(object sender, EventArgs e)
{
activeMode = modoCommesse.elenco;
showPanels();
grView.DataBind();
}
/// <summary>
/// fornisce img x check coerenza ore timbrate e commesse
/// </summary>
@@ -434,47 +149,24 @@ namespace GPW_Commesse.WebUserControls
{ }
return answ;
}
/// <summary>
/// formatta stringa giustificativi
/// inverte valore booleano
/// </summary>
/// <param name="_minPerm">permessi</param>
/// <param name="_minFer">ferie</param>
/// <param name="_minMal">malattia</param>
/// <param name="_minFest">festività</param>
/// <param name="_minMPP">MPP</param>
/// <param name="isEnt"></param>
/// <returns></returns>
public string txtGiust(object _minPerm, object _minFer, object _minMal, object _minFest, object _minMPP, object _min104, object _minCassa)
public bool invBool(object valore)
{
string answ = "";
double minPerm = Convert.ToInt32(_minPerm);
double minFer = Convert.ToInt32(_minFer);
double minMal = Convert.ToInt32(_minMal);
double minFest = Convert.ToInt32(_minFest);
double minMpp = Convert.ToInt32(_minMPP);
double min104 = Convert.ToInt32(_min104);
double minCassa = Convert.ToInt32(_minCassa);
if (memLayer.ML.confReadBool("reviewShowOreMin"))
bool answ = true;
try
{
if (minPerm > 0) answ += string.Format("{0} Pe ", utils.formOreMin(Convert.ToDecimal(minPerm / 60)));
if (minFer > 0) answ += string.Format("{0} Fe ", utils.formOreMin(Convert.ToDecimal(minFer / 60)));
if (minMal > 0) answ += string.Format("{0} Ma ", utils.formOreMin(Convert.ToDecimal(minMal / 60)));
if (minFest > 0) answ += string.Format("{0} Fs ", utils.formOreMin(Convert.ToDecimal(minFest / 60)));
if (minMpp > 0) answ += string.Format("{0} Mpp ", utils.formOreMin(Convert.ToDecimal(minMpp / 60)));
if (min104 > 0) answ += string.Format("{0} 104 ", utils.formOreMin(Convert.ToDecimal(min104 / 60)));
if (minCassa > 0) answ += string.Format("{0} Cassa ", utils.formOreMin(Convert.ToDecimal(minCassa / 60)));
}
else
{
if (minPerm > 0) answ += string.Format("{0:0.00} Pe ", minPerm / 60);
if (minFer > 0) answ += string.Format("{0:0.00} Fe ", minFer / 60);
if (minMal > 0) answ += string.Format("{0:0.00} Ma ", minMal / 60);
if (minFest > 0) answ += string.Format("{0:0.00} Fs ", minFest / 60);
if (minMpp > 0) answ += string.Format("{0:0.00} Mpp ", minMpp / 60);
if (min104 > 0) answ += string.Format("{0:0.00} 104 ", min104 / 60);
if (minCassa > 0) answ += string.Format("{0:0.00} Cassa ", minCassa / 60);
answ = !Convert.ToBoolean(valore);
}
catch
{ }
return answ;
}
/// <summary>
/// formatta stringa tooltip giustificativi
/// </summary>
@@ -516,31 +208,366 @@ namespace GPW_Commesse.WebUserControls
}
return answ;
}
/// <summary>
/// formatta la durata in ore secondo web.config (centesimale/ore:min)
/// prepara tooltip permessi/straordinarie
/// </summary>
/// <param name="oreCent"></param>
/// <param name="minStra"></param>
/// <param name="minPerm"></param>
/// <returns></returns>
public string formatDurata(object oreCent)
public string tooltipPermStra(object minStra, object minPerm)
{
decimal ore = 0;
string answ = "";
try
{
ore = Convert.ToDecimal(oreCent);
if (memLayer.ML.confReadBool("reviewShowOreMin"))
{
answ = string.Format("Straordinarie: {0} - Permessi: {1} (h:mm)", utils.formOreMin(Convert.ToDecimal(minStra) / 60), utils.formOreMin(Convert.ToDecimal(minPerm) / 60));
}
else
{
answ = string.Format("Straordinarie: {0:0.##} h - Permessi: {1:0.##} h", Convert.ToDouble(minStra) / 60, Convert.ToDouble(minPerm) / 60);
}
}
catch
{ }
return answ;
}
/// <summary>
/// formatta stringa giustificativi
/// </summary>
/// <param name="_minPerm">permessi</param>
/// <param name="_minFer">ferie</param>
/// <param name="_minMal">malattia</param>
/// <param name="_minFest">festività</param>
/// <param name="_minMPP">MPP</param>
/// <returns></returns>
public string txtGiust(object _minPerm, object _minFer, object _minMal, object _minFest, object _minMPP, object _min104, object _minCassa)
{
string answ = "";
double minPerm = Convert.ToInt32(_minPerm);
double minFer = Convert.ToInt32(_minFer);
double minMal = Convert.ToInt32(_minMal);
double minFest = Convert.ToInt32(_minFest);
double minMpp = Convert.ToInt32(_minMPP);
double min104 = Convert.ToInt32(_min104);
double minCassa = Convert.ToInt32(_minCassa);
if (memLayer.ML.confReadBool("reviewShowOreMin"))
{
answ = utils.formOreMin(ore);
if (minPerm > 0) answ += string.Format("{0} Pe ", utils.formOreMin(Convert.ToDecimal(minPerm / 60)));
if (minFer > 0) answ += string.Format("{0} Fe ", utils.formOreMin(Convert.ToDecimal(minFer / 60)));
if (minMal > 0) answ += string.Format("{0} Ma ", utils.formOreMin(Convert.ToDecimal(minMal / 60)));
if (minFest > 0) answ += string.Format("{0} Fs ", utils.formOreMin(Convert.ToDecimal(minFest / 60)));
if (minMpp > 0) answ += string.Format("{0} Mpp ", utils.formOreMin(Convert.ToDecimal(minMpp / 60)));
if (min104 > 0) answ += string.Format("{0} 104 ", utils.formOreMin(Convert.ToDecimal(min104 / 60)));
if (minCassa > 0) answ += string.Format("{0} Cassa ", utils.formOreMin(Convert.ToDecimal(minCassa / 60)));
}
else
{
answ = ore.ToString("0.00");
if (minPerm > 0) answ += string.Format("{0:0.00} Pe ", minPerm / 60);
if (minFer > 0) answ += string.Format("{0:0.00} Fe ", minFer / 60);
if (minMal > 0) answ += string.Format("{0:0.00} Ma ", minMal / 60);
if (minFest > 0) answ += string.Format("{0:0.00} Fs ", minFest / 60);
if (minMpp > 0) answ += string.Format("{0:0.00} Mpp ", minMpp / 60);
if (min104 > 0) answ += string.Format("{0:0.00} 104 ", min104 / 60);
if (minCassa > 0) answ += string.Format("{0:0.00} Cassa ", minCassa / 60);
}
return answ;
}
/// <summary>
/// chiamata del button close (entrambi)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnClose_Click(object sender, EventArgs e)
{
activeMode = modoCommesse.elenco;
showPanels();
grView.DataBind();
}
protected void lbShowTemp_Click(object sender, EventArgs e)
{
string dataRif = ((LinkButton)sender).CommandArgument;
// verifico se dip sia attivo...
if (DataProxy.currDipIsActive)
{
editTemp(dataRif);
}
}
protected void lnkEditComm_Click(object sender, EventArgs e)
{
string dataRif = ((LinkButton)sender).CommandArgument;
// verifico se dip sia attivo...
if (DataProxy.currDipIsActive)
{
editCommDay(dataRif);
// apro anche data dell'altro SE abilitato
if (openBoth)
{
editTimbr(dataRif);
}
}
}
protected void lnkEditTimbr_Click(object sender, EventArgs e)
{
string dataRif = ((LinkButton)sender).CommandArgument;
// verifico se dip sia attivo...
if (DataProxy.currDipIsActive)
{
editTimbr(dataRif);
// apro anche data dell'altro SE abilitato
if (openBoth)
{
editCommDay(dataRif);
}
}
}
/// <summary>
/// Avvio pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
memLayer.ML.setSessionVal("maxErrMin", memLayer.ML.confReadInt("maxErrMin"));
memLayer.ML.setSessionVal("maxErrPlus", memLayer.ML.confReadInt("maxErrPlus"));
if (!Page.IsPostBack)
{
activeMode = modoCommesse.elenco;
intervalloDate periodo = new intervalloDate();
periodo.fine = DateTime.Now.AddDays(1);
periodo.inizio = periodo.fine.AddDays(memLayer.ML.confReadInt("defDayFrom"));
mod_periodoAnalisi1.intervalloAnalisi = periodo;
// salvo link in HF
hfDataFrom.Value = periodo.inizio.ToString();
hfDataTo.Value = periodo.fine.ToString();
// imposto modo tag cloud
string modoTC = memLayer.ML.confReadString("TagCloudMode");
switch (modoTC)
{
case "elenco":
mod_TagCloudProgetti1.modo = TagCloudMode.elenco;
break;
case "elencoCPF":
mod_TagCloudProgetti1.modo = TagCloudMode.elencoCPF;
break;
case "piramide":
mod_TagCloudProgetti1.modo = TagCloudMode.piramide;
break;
case "standard":
default:
mod_TagCloudProgetti1.modo = TagCloudMode.standard;
break;
}
}
showPanels();
grView.DataBind();
mod_commUtMancTimbr1.eh_nuovoValore += new EventHandler(mod_commUtMancTimbr1_eh_nuovoValore);
mod_commAttivitaDesk1.eh_nuovoValore += new EventHandler(mod_commAttivitaDesk1_eh_nuovoValore);
mod_TagCloudProgetti1.eh_newVal += new EventHandler(mod_TagCloudProgetti1_eh_newVal);
mod_TagCloudProgetti1.eh_refresh += mod_TagCloudProgetti1_eh_refresh;
mod_periodoAnalisi1.eh_doUpdate += mod_periodoAnalisi1_eh_doUpdate;
cmp_toggle.ehToggle += Cmp_toggle_ehToggle;
cmp_rilTemp.ehCancel += cmp_rilTemp_ehCancel;
cmp_rilTemp.ehSave += cmp_rilTemp_ehSave;
}
/// <summary>
/// imposta visualizzazione dei pannelli opzionali laterali a seocnda del modo attivo
/// </summary>
protected void showPanels()
{
// 2016.04.07: salvo intervallo nei 2 hidden field
hfDataFrom.Value = mod_periodoAnalisi1.intervalloAnalisi.inizio.ToString();
hfDataTo.Value = mod_periodoAnalisi1.intervalloAnalisi.fine.ToString();
// imposto valori default
bool commesse = false;
bool temp = false;
bool timbr = false;
divDx.Attributes.Remove("class");
divCn.Attributes.Remove("class");
divSx.Attributes.Remove("class");
if (openBoth)
{
switch (activeMode)
{
case modoCommesse.editTimb:
case modoCommesse.editRegAtt:
commesse = true;
timbr = true;
divCn.Attributes.Add("class", "col-sm-6 px-1");
divSx.Attributes.Add("class", "col-sm-2 pr-0");
divDx.Attributes.Add("class", "col-sm-4 pl-0");
divDx.Visible = true;
divSx.Visible = true;
break;
case modoCommesse.editRilTemp:
temp = true;
divCn.Attributes.Add("class", "col-sm-7 col-md-8 col-lg-9");
divSx.Attributes.Add("class", "col-sm-5 col-md-4 col-lg-3");
divDx.Visible = false;
divSx.Visible = true;
break;
case modoCommesse.elenco:
default:
divCn.Attributes.Add("class", "col-12");
divDx.Visible = false;
divSx.Visible = false;
break;
}
}
else
{
switch (activeMode)
{
case modoCommesse.editTimb:
timbr = true;
divCn.Attributes.Add("class", "col-sm-7 col-md-8 col-lg-9");
divSx.Attributes.Add("class", "col-sm-5 col-md-4 col-lg-3");
divDx.Visible = false;
divSx.Visible = true;
break;
case modoCommesse.editRilTemp:
temp = true;
divCn.Attributes.Add("class", "col-12");
divDx.Visible = false;
divSx.Visible = false;
break;
case modoCommesse.editRegAtt:
commesse = true;
divCn.Attributes.Add("class", "col-sm-6 col-md-7 col-lg-8");
divDx.Attributes.Add("class", "col-sm-6 col-md-5 col-lg-4");
divDx.Visible = true;
divSx.Visible = false;
break;
case modoCommesse.elenco:
default:
divCn.Attributes.Add("class", "col-12");
divDx.Visible = false;
divSx.Visible = false;
break;
}
}
// fix finale!
pnlEditCom.Visible = commesse;
pnlEditOre.Visible = timbr;
mod_commAttivitaDesk1.Visible = commesse;
mod_commUtMancTimbr1.Visible = timbr;
divRilTemp.Visible = temp;
cmp_rilTemp.Visible = temp;
cmp_chart.Visible = true;
upMain.Update();
upCharts.Update();
}
private void cmp_rilTemp_ehCancel(object sender, EventArgs e)
{
activeMode = modoCommesse.elenco;
showPanels();
grView.SelectedIndex = -1;
grView.DataBind();
}
private void cmp_rilTemp_ehSave(object sender, EventArgs e)
{
activeMode = modoCommesse.elenco;
showPanels();
}
private void Cmp_toggle_ehToggle(object sender, EventArgs e)
{
showPanels();
}
private void editCommDay(string dataRif)
{
CultureInfo ita = new CultureInfo("it-IT");
mod_commAttivitaDesk1.idxDipCurr = DataProxy.idxDipendente;
mod_commAttivitaDesk1.valoreDateTime = Convert.ToDateTime(dataRif, ita);
mod_TagCloudProgetti1.dataRif = Convert.ToDateTime(dataRif, ita);
//salvo in sessione dati x detail timbrature
memLayer.ML.setSessionVal("inizioDet", Convert.ToDateTime(dataRif, ita).Date);
memLayer.ML.setSessionVal("fineDet", Convert.ToDateTime(dataRif, ita).Date.AddDays(1));
memLayer.ML.setSessionVal("idxDip_det", DataProxy.idxDipendente);
// imposto modalità
activeMode = modoCommesse.editRegAtt;
showPanels();
mod_commAttivitaDesk1.doUpdate();
}
private void editTemp(string dataRif)
{
CultureInfo ita = new CultureInfo("it-IT");
cmp_rilTemp.dtRif = Convert.ToDateTime(dataRif, ita);
cmp_chart.dtRif = Convert.ToDateTime(dataRif, ita);
//salvo in sessione dati x detail timbrature
memLayer.ML.setSessionVal("idxDip_det", DataProxy.idxDipendente);
// imposto modalità
activeMode = modoCommesse.editRilTemp;
showPanels();
}
private void editTimbr(string dataRif)
{
DateTime adesso = DateTime.Now;
CultureInfo ita = new CultureInfo("it-IT");
mod_commUtMancTimbr1.valoreDateTime = Convert.ToDateTime(dataRif, ita).AddHours(adesso.Hour).AddMinutes(adesso.Minute - adesso.Minute % 5);
//salvo in sessione dati x detail timbrature
memLayer.ML.setSessionVal("inizioDet", Convert.ToDateTime(dataRif, ita).Date);
memLayer.ML.setSessionVal("fineDet", Convert.ToDateTime(dataRif, ita).Date.AddDays(1));
memLayer.ML.setSessionVal("idxDip_det", DataProxy.idxDipendente);
// imposto modalità
activeMode = modoCommesse.editTimb;
showPanels();
}
private void mod_commAttivitaDesk1_eh_nuovoValore(object sender, EventArgs e)
{
mod_TagCloudProgetti1.doUpdate();
grView.DataBind();
}
private void mod_commUtMancTimbr1_eh_nuovoValore(object sender, EventArgs e)
{
grView.DataBind();
}
private void mod_periodoAnalisi1_eh_doUpdate(object sender, EventArgs e)
{
// 2016.04.07: salvo intervallo nei 2 hidden field
hfDataFrom.Value = mod_periodoAnalisi1.intervalloAnalisi.inizio.ToString();
hfDataTo.Value = mod_periodoAnalisi1.intervalloAnalisi.fine.ToString();
// update
mod_commAttivitaDesk1.doUpdate();
grView.DataBind();
}
private void mod_TagCloudProgetti1_eh_newVal(object sender, EventArgs e)
{
mod_commAttivitaDesk1.doUpdate();
grView.DataBind();
}
private void mod_TagCloudProgetti1_eh_refresh(object sender, EventArgs e)
{
mod_commAttivitaDesk1.doUpdate();
grView.DataBind();
}
}
}
Vendored
+1 -1
View File
@@ -10,7 +10,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=4125']) {
withEnv(['NEXT_BUILD_NUMBER=4127']) {
// env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'GPW'