You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
6.2 KiB

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<dataConfiguration defaultDatabase="BaseDb" />
<connectionStrings>
<!--<add name="ConnectionString" connectionString="Data Source=39.105.6.170; Initial Catalog=HFMesDB3;Persist Security Info=True;User ID=sa;Password=qwe123$$" providerName="System.Data.SqlClient" />-->
<!--<add name="BaseDb" connectionString="Data Source=127.0.0.1;port=3306;pooling=true;max pool size=50; min pool size=5;Initial Catalog=autoweight;user id=root;password=2LBd74KoapPCnZR9;charset=utf8" providerName="MySql.Data.MySqlClient" />-->
<add name="BaseDb" connectionString="Data Source=192.168.1.119;port=3306;pooling=true;max pool size=50; min pool size=5;Initial Catalog=autoweight;user id=root;password=123456;charset=utf8" providerName="MySql.Data.MySqlClient" />
<!--<add name="AccessConnectionString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Persist Security Info=False;Data Source=C:\Works\Self\Pos\MyPos\MyPos\bin\Debug\DB\MyPos.mdb" />-->
</connectionStrings>
<appSettings>
<!--时间均为毫秒,按秒使用需换算,1秒=1000毫秒-->
<!--站点编号-->
<add key="SITE_Name" value="珠海1号站点" />
<!--入场前相机IP-->
<add key="CAMERA_ADDRESS1" value="192.168.1.81" />
<!--入场后相机IP-->
<add key="CAMERA_ADDRESS2" value="192.168.1.82" />
<!--出前相机IP-->
<add key="CAMERA_ADDRESS3" value="192.168.1.83" />
<!--出后相机IP-->
<add key="CAMERA_ADDRESS4" value="192.168.1.84" />
<add key="CAMERA_SOCKET_PORT" value="80" />
<add key="CAMERA_USERNAME" value="admin" />
<add key="CAMERA_PASSWORD" value="admin" />
<add key="AutoDetectInterval" value="6000" />
<!--称重-->
<add key="WT_COM" value="COM3" />
<add key="WT_BaudRate" value="9600" />
<add key="WT_ReceivedBytesThreshold" value="32" />
<add key="WT_Diff" value="0.01" />
<add key="WT_Interval" value="1000" />
<add key="WT_LenLimit" value="10" />
<add key="WT_DiscardInBuffer_Flag" value="1" />
<add key="WT_Transmit_Flag" value="0" />
<add key="WT_Transmit_Com" value="COM5" />
<!--指示灯继电器-->
<add key="Light_Relay_COM" value="COM4" />
<add key="Light_Relay_BaudRate" value="9600" />
<add key="Light_Code_Name" value="lightCode2.json" />
<add key="Light_Interval" value="8000" />
<add key="Light_Blink" value="300" />
<!--Led控制-->
<add key="Led_Ip" value="192.168.1.85" />
<add key="Led_Port" value="5005" />
<add key="BoardThread_Interval" value="5000" />
<add key="Board_Type" value="1" />
<!--提示跑马灯-->
<add key="ScrollText_Interval" value="300" />
<add key="ScrollText_Gap" value="15" />
<!--超时检测-->
<add key="InTimeOut" value="600" />
<add key="OutTimeOut" value="600" />
<!--seconds 300s = 5min-->
<add key="Bill_Interval" value="300" />
<!--其它-->
<add key="SavePhoto_Day" value="90" />
<add key="IsPretreatPlate" value="1" />
<add key="ShowDebug" value="1" />
<add key="ShowTrailer" value="1" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<log4net>
<!--定义输出到文件中-->
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<encoding value="UTF-8" />
<!--定义文件存放位置-->
<file value="log4j\\" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyy\\MM\\yyyy-MM-dd'.txt'" />
<staticLogFileName value="false" />
<param name="MaxSizeRollBackups" value="100" />
<layout type="log4net.Layout.PatternLayout">
<!--输出格式-->
<conversionPattern value="【日志级别】%-5level 【记录时间】%date 【线程编号】[%thread]【执行时间】[%r]毫秒 【当前的类】%logger 属性[%property{NDC}] %n【日志描述】%message %n %n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<!--文件形式记录日志-->
<appender-ref ref="RollingLogFileAppender" />
</root>
</log4net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.29.0" newVersion="8.0.29.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.4.0" newVersion="4.0.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
</configuration>