|
|
|
<?xml version="1.0"?>
|
|
|
|
<configuration>
|
|
|
|
<configSections>
|
|
|
|
<!--日志处理组件-->
|
|
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
|
|
|
|
</configSections>
|
|
|
|
<connectionStrings>
|
|
|
|
<!--主数据库连接-->
|
|
|
|
<!--<add name="maindb" connectionString="Data Source=USER-20180104HU;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=qm;" providerName="System.Data.SqlClient"/>
|
|
|
|
<add name="maindbYBB" connectionString="Data Source=USER-20180104HU;Initial Catalog=ADIENT_QD_MES;User Id=sa;Password=qm;" providerName="System.Data.SqlClient"/>
|
|
|
|
<add name="maindbNCSYBB" connectionString="Data Source=USER-20180104HU;Initial Catalog=ADIENT_CD_MES;User Id=sa;Password=qm;" providerName="System.Data.SqlClient"/>-->
|
|
|
|
|
|
|
|
<add name="maindb" connectionString="Data Source=10.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" providerName="System.Data.SqlClient"/>
|
|
|
|
<add name="maindbYBB" connectionString="Data Source=10.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" providerName="System.Data.SqlClient"/>
|
|
|
|
<add name="maindbNCSYBB" connectionString="Data Source=10.117.133.48;Initial Catalog=ADIENT_TJ_MES;User Id=sa;Password=ASDqwe123!@#;" providerName="System.Data.SqlClient"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</connectionStrings>
|
|
|
|
<appSettings>
|
|
|
|
<!--任务调度服务凭据-->
|
|
|
|
<add key="ServiceCredentialID" value="d7911036-d36f-460f-a052-979628322df3" />
|
|
|
|
<!--服务中心调用凭据-->
|
|
|
|
<add key="ServiceCredential" value="123456"/>
|
|
|
|
|
|
|
|
<!--抓取文件存放的目录-->
|
|
|
|
<add key="DCS_FILEPATH" value="D:\Test"/>
|
|
|
|
<!--获取文件的IP 为服务器的时候需要写IP+共享文件夹 为设备的时候为空-->
|
|
|
|
<!--<add key="SHARESERVER_IP" value="\\192.168.0.202\temp" />-->
|
|
|
|
<add key="SHARESERVER_IP" value="D:\Test1" />
|
|
|
|
|
|
|
|
</appSettings>
|
|
|
|
<!--日志组件配置开始-->
|
|
|
|
<log4net>
|
|
|
|
<logger name="loginfo">
|
|
|
|
<level value="INFO"/>
|
|
|
|
<appender-ref ref="InfoAppender"/>
|
|
|
|
</logger>
|
|
|
|
<logger name="debuginfo">
|
|
|
|
<level value="DEBUG"/>
|
|
|
|
<appender-ref ref="DebugAppender"/>
|
|
|
|
</logger>
|
|
|
|
<logger name="errorinfo">
|
|
|
|
<level value="ERROR"/>
|
|
|
|
<appender-ref ref="ErrorAppender"/>
|
|
|
|
</logger>
|
|
|
|
<appender name="InfoAppender" type="log4net.Appender.RollingFileAppender">
|
|
|
|
<param name="File" value="Log\\Info\\" />
|
|
|
|
<param name="AppendToFile" value="true" />
|
|
|
|
<param name="MaxFileSize" value="10240" />
|
|
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
|
|
<param name="StaticLogFileName" value="false" />
|
|
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
|
|
<param name="RollingStyle" value="Date" />
|
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m" />
|
|
|
|
</layout>
|
|
|
|
</appender>
|
|
|
|
<appender name="DebugAppender" type="log4net.Appender.RollingFileAppender">
|
|
|
|
<param name="File" value="Log\\Debug\\" />
|
|
|
|
<param name="AppendToFile" value="true" />
|
|
|
|
<param name="MaxFileSize" value="10240" />
|
|
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
|
|
<param name="StaticLogFileName" value="false" />
|
|
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
|
|
<param name="RollingStyle" value="Date" />
|
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m" />
|
|
|
|
</layout>
|
|
|
|
</appender>
|
|
|
|
<appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender">
|
|
|
|
<param name="File" value="Log\\Error\\" />
|
|
|
|
<param name="AppendToFile" value="true" />
|
|
|
|
<param name="MaxFileSize" value="10240" />
|
|
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
|
|
<param name="StaticLogFileName" value="false" />
|
|
|
|
<param name="DatePattern" value="yyyyMMdd".txt"" />
|
|
|
|
<param name="RollingStyle" value="Date" />
|
|
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
|
|
<param name="ConversionPattern" value="日志时间:%d %n日志级别:%-5p %n日 志 类:%c [%x] %n%m " />
|
|
|
|
</layout>
|
|
|
|
</appender>
|
|
|
|
</log4net>
|
|
|
|
<system.serviceModel>
|
|
|
|
<bindings>
|
|
|
|
<basicHttpBinding>
|
|
|
|
<binding name="BasicHttpBinding_IGeneralService" closeTimeout="00:11:00" openTimeout="00:11:00" receiveTimeout="00:10:00" sendTimeout="00:11:00"
|
|
|
|
maxBufferSize="6553600" maxBufferPoolSize="52428800" maxReceivedMessageSize="6553600"
|
|
|
|
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
|
|
|
|
<readerQuotas maxDepth="32" maxStringContentLength="5097152" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
|
|
|
|
<security mode="None">
|
|
|
|
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
|
|
|
|
<message clientCredentialType="UserName" algorithmSuite="Default" />
|
|
|
|
</security>
|
|
|
|
</binding>
|
|
|
|
</basicHttpBinding>
|
|
|
|
<netTcpBinding>
|
|
|
|
<binding name="NetTcpBinding_ITaskService" maxBufferPoolSize="524288000" maxReceivedMessageSize="2147483647">
|
|
|
|
<readerQuotas maxStringContentLength="2097152000" maxArrayLength="1200000"/>
|
|
|
|
<security mode="None">
|
|
|
|
</security>
|
|
|
|
</binding>
|
|
|
|
</netTcpBinding>
|
|
|
|
</bindings>
|
|
|
|
<client>
|
|
|
|
<endpoint address="http://localhost:8938/GeneralService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="CenterGeneralService.IGeneralService" name="BasicHttpBinding_IGeneralService" />
|
|
|
|
<endpoint address="http://localhost:8938/LoginService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGeneralService" contract="LoginService.ILoginService" name="BasicHttpBinding_ILoginService" />
|
|
|
|
</client>
|
|
|
|
<services>
|
|
|
|
<!--公共查询服务-->
|
|
|
|
<service behaviorConfiguration="TaskServiceBehavior" name="QMTask.Core.TaskService">
|
|
|
|
<endpoint address="" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ITaskService" contract="QMTask.Core.ITaskService">
|
|
|
|
<identity>
|
|
|
|
<dns value="localhost"/>
|
|
|
|
</identity>
|
|
|
|
</endpoint>
|
|
|
|
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
|
|
|
|
<host>
|
|
|
|
<baseAddresses>
|
|
|
|
<add baseAddress="net.tcp://localhost:8732/QMTask.Core/TaskService/"/>
|
|
|
|
</baseAddresses>
|
|
|
|
</host>
|
|
|
|
</service>
|
|
|
|
</services>
|
|
|
|
<behaviors>
|
|
|
|
<serviceBehaviors>
|
|
|
|
<behavior name="TaskServiceBehavior">
|
|
|
|
<serviceMetadata/>
|
|
|
|
<serviceDebug includeExceptionDetailInFaults="true"/>
|
|
|
|
</behavior>
|
|
|
|
<behavior name="">
|
|
|
|
<serviceMetadata httpGetEnabled="true"/>
|
|
|
|
<serviceDebug includeExceptionDetailInFaults="true"/>
|
|
|
|
</behavior>
|
|
|
|
</serviceBehaviors>
|
|
|
|
</behaviors>
|
|
|
|
|
|
|
|
</system.serviceModel>
|
|
|
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|