<?xml version="1.0" encoding="utf-8"?>
<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>
  <!--
    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>.
      <system.Web>
        <httpRuntime targetFramework="4.6.1" />
      </system.Web>
  -->
  <system.web>
    <identity />
    <authentication mode="Windows" />
    <globalization culture="IT-it" enableClientBasedCulture="true" uiCulture="IT-it" />
    <httpRuntime targetFramework="4.6.2" />
    <pages>
      <namespaces>
        <add namespace="System.Web.Optimization" />
      </namespaces>
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
        <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
      </controls>
    </pages>
    <compilation debug="true" targetFramework="4.6.2" batch="false">
      <assemblies>
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
    </compilation>
    <sessionState mode="Custom" customProvider="MySessionStateStore">
      <providers>
        <add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="localhost" ssl="false" applicationName="GMW" databaseId="3" />
      </providers>
    </sessionState>
    <customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPage" />
    <httpModules>
      <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
      <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
      <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
    </httpModules>
  </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="3" />
    <add key="cacheOnRedis" value="true" />  
    <!--area logger-->
    <add key="_logDir" value="~/logs/" />
    <add key="enableDumpDiag" value="false" />
    <add key="doShrinkFolder" value="true" />
    <add key="_logLevel" value="6" />
    <add key="_logMaxMb" value="30" />
    <add key="logMitigSec" value="30" />
    <!--Impostazione gestione serializzazione variabili in sessione (es per Redis)-->
    <add key="serializeSession" value="true" />
    <!--<add key="disable_singleton" value="true" />-->
    <add key="errorPageRedirect" value="./Reset?Action=CDV" />
    <add key="maxAgeAppConf_min" value="15" />
    <!--cache decodificaBCode-->
    <!--<add key="BCDecodeDurationSec" value="30" />
    <add key="EnableDecodeCache" value="true" />-->
    <!--Setup applicazione-->
    <add key="CodModulo" value="GMW" />
    <add key="_titoloPagina" value="GMW - Gruppo Mazzucconi S.p.A, portale Gestione Magazzino Web" />
    <add key="titleApp" value="GMW - Tekal" />
    <add key="appName" value="GMW" />
    <add key="SiteName" value="Tekal" />
    <add key="copyRight" value="SteamWare © 2010" />
    <add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx#ErrorCodes.aspx" />
    <!--<add key="_commonPages" value="menu.aspx#chLang.aspx" />-->
    <add key="defaultApp" value="GMW_Appl" />
    <add key="defaultTitle" value="GMW_ShortWelcome" />
    <add key="defaultBody" value="GMW_LongWelcome" />
    <add key="intUpdatePagina_ms" value="240000" />
    <add key="_fromEmail" value="GMW@steamware.net" />
    <add key="urlWebServer" value="http://SRV-PRODSP01/GMW_Test/" />
    <!--<add key="echoLemmi" value="false" />-->
    <add key="urlRT" value="http://IIS02/GMW-RT" />
    <add key="updateTablet" value="true" />
    <add key="useStoredLiqSP" value="true" />
    <add key="enableDtxNotAcq" value="false" />
    <!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
    <add key="sqlLongCommandTimeout" value="600" />
    <!--gestione clock-->
    <add key="intUpdateClock_ms" value="1000" />
    <add key="maxRefreshToReload" value="60" />
    <!--gestione numKey-->
    <add key="showNumKey" value="false" />
    <!--setup gestione OpAuth-->
    <!--<add key="enableOpAuth" value="true" />-->
    <!--<add key="resetCodSogg" value="000" />-->
    <!--<add key="defRemAuth" value="1" />
    <add key="defMinScad" value="15" />-->
    <!--<add key="attrOpAuth" value="OC" />-->
    <!--area temp-->
    <add key="maxAgeTempAreaHours" value="24" />
    <!--Default values vari-->
    <add key="NumX" value="10" />
    <add key="NumY" value="5" />
    <add key="NumZ" value="1" />
    <add key="BilanciaMP" value="MP" />
    <add key="CodStatoMP" value="MP" />
    <add key="CodStatoMP-NA" value="MP-NA" />
    <add key="numGgToReloadRQ" value="60" />
    <add key="showSizeCellaInDettMag" value="false" />
    <add key="maxBarplotLargh" value="1000" />
    <!--spostamenti UDC resettano UDC in lista prelievo-->
    <add key="spostaUdcResettaLdp" value="true" />
    <!--Datamatrix-->
    <add key="showReloadDataMatrix" value="true" />
    <!--gestione NC-->
    <add key="assSpediti" value="true" />
    <add key="assConsumati" value="true" />
    <add key="prtSpediti" value="true" />
    <add key="prtConsumati" value="true" />
    <add key="ggRimozDelibNC" value="7" />
    <add key="checkUDC_NC" value="false" />
    <!--Setup urls stampa reports-->
    <add key="urlReporting" value="http://{0}/ReportServer?/{1}/{2}&amp;rs:Command=Render&amp;rc:Parameters=true&amp;rc:Toolbar=true&amp;CodListaPrel={3}{4}" />
    <add key="reportingServerAddress" value="SRV65:8282" />
    <add key="reportDir" value="POSSIDONIO/MAGAZZINO" />
    <add key="reportName" value="Lista_di_Prelievo_Test" />
    <add key="reportOpzPdf" value="&amp;rs:Format=PDF" />
    <!--Setup x stampa dei PDF come copia-->
    <add key="doPdfCopy" value="true" />
    <add key="PdfFolder" value="PDF" />
    <!--Print Queue: parametri-->
    <add key="enableQueue" value="true" />
    <add key="minWait" value="100" />
    <add key="maxWait" value="300" />
    <!--tempo (ms) dopo il quale un processo di stampa è giudicato zombie (e annullabile)-->
    <add key="zombieMsTime" value="10000" />
    <!--tempo (minuti) dopo il quale una linea non è + occupata da una postazione x sterratura/lavorazioni-->
    <add key="minutiBloccoLinea" value="10" />
    <!--setup storico azioni operatore-->
    <add key="defaultYearSAO" value="10" />
    <!--Configurazioni ad hoc per ogni sito-->
    <add key="Cosumo84PostDelibera" value="true" />
    <add key="riattUdcPermessa" value="true" />
    <!--Setup periodo controlli date-->
    <add key="defDayFrom" value="-60" />
    <add key="mostraSelOra" value="false" />
    <!--conf blocchi-->
    <add key="CodBloccoFusi" value="W10" />
    <add key="CodBloccoTrattati" value="W21" />
    <!--Gestione multiselezione automatica UDC x linee multiple-->
    <add key="num4Cell" value="2" />
    <add key="minTimeDef" value="120" />
    <add key="maxTimeDef" value="10080" />
    <!--setup celle per LDP-->
    <add key="cellaLPA" value="LPA010101" />
    <add key="cellaLPX" value="LPX010101" />
    <!--particolare di default x trattamenti-->
    <add key="particTratt" value="--" />
    <!--Setup codMag-->
    <add key="CodMagMP" value="6" />
    <add key="CodMagMP_NA" value="6666" />
    <!-- setup odette -->
    <add key="raggMagOdette" value="SP" />
    <add key="qtaOdette" value="18" />
    <add key="indStabFrom" value="via Don Minzoni,14 I-41039 S.Possidonio MO" />
    <!--setup BCode printing-->
    <add key="bcodeLabelWidth" value="244" />
    <add key="bcodeLabelHeight" value="114" />
    <add key="bcodeFontBase" value="8" />
    <add key="bcodeLabFormat" value="Post Fus, {0:yyyy/MM/dd ddd, HH:mm:ss}" />
    <add key="bcodeValFormat" value="DT{0:yyMMddHHmm}" />
    <add key="bcodeLabFormatPI" value="Fus {1}, {0:yyyy/MM/dd ddd, HH:mm:ss}" />
    <add key="bcodeValFormatPI" value="DT{0:yyMMddHHmm}{1}" />
    <add key="bCodeUseNewPage" value="true" />
    <add key="extBCodeUrl" value="http://IIS02/GMW-UT/BCodeCall.aspx?valore={0}" />
    <!--setup gestione stampa postazione cartellini-->
    <add key="keepParticolareSel" value="true" />
    <add key="keepKitAnimeSel" value="true" />
    <!--area deroghe speciali-->
    <add key="codPartTrattDeroga" value="#1GRZ02810000#1GRZ03950000#1GRZ03960000#" />
    <!--area stampe reporting services-->
    <add key="urlStampeSSRS" value="http://SRV65:8282/Reports/Pages/Folder.aspx?ItemPath=/POSSIDONIO/MAGAZZINO/TEST" />
    <!--Abilitazione Elimina UDC in storico azioni utente-->
    <add key="userCanDelUdc" value="true" />
    <!--Setup installazione-->
    <add key="passkey" value="pi=314" />
    <add key="MinutiFinestraEditUDC" value="10" />
    <add key="_adminEmail" value="giancarlo@steamware.net" />
    <add key="_smtpCli" value="keyhammer.ath.cx" />
    <add key="owin:AutomaticAppStartup" value="false" />
    <!--Sviluppo TK = Initial Catalog=TK_GMW-->
    <!--Sviluppo SP = Initial Catalog=GMW-->
    <add key="DbConfConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
    <add key="GMWConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
    <add key="SP_produzioneConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=ProduzionePossidonio;Persist Security Info=True;User ID=connGMW;Password=steamware" />
    <add key="PermessiConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
    <add key="UtenteCdcConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=GMW_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
    <add key="VocabolarioConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
  </appSettings>
  <connectionStrings>
    <!--Sviluppo TK-->
    <add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <!-- va rimosso e riaggiunto x nuova versione redis, vedere qui: https://github.com/Azure/aspnet-redis-providers/issues/99 -->
      <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>
    <handlers>
      <remove name="ChartImageHandler" />
    </handlers>
    <validation validateIntegratedModeConfiguration="false" />
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
   
    </assemblyBinding>
  </runtime>
  <system.webServer>
    <staticContent>
      <!--aggiunto mimetype x scaricamento fonts aggiuntive-->
      <remove fileExtension=".woff" />
      <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
      <remove fileExtension=".woff2" />
      <mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
      <!--<mimeMap fileExtension=".woff" mimeType="APPLICATION/X-WOFF" />-->
    </staticContent>
  </system.webServer>
  <elmah>
    <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>
