|  |  |  | 
|---|
|  |  |  | <?xml version="1.0"?> | 
|---|
|  |  |  | <?xml version="1.0"?> | 
|---|
|  |  |  | <configuration> | 
|---|
|  |  |  | <configSections> | 
|---|
|  |  |  | <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> | 
|---|
|  |  |  | <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> | 
|---|
|  |  |  | <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | 
|---|
|  |  |  | <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | 
|---|
|  |  |  | <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> | 
|---|
|  |  |  | </configSections> | 
|---|
|  |  |  | <appSettings> | 
|---|
|  |  |  | <!-- 是否模拟PLC,发布一定是 FALSE --> | 
|---|
|  |  |  | 
|---|
|  |  |  | <log4net> | 
|---|
|  |  |  | <!--错误日志配置--> | 
|---|
|  |  |  | <appender name="ErrorAppender" type="log4net.Appender.RollingFileAppender" level="ERROR"> | 
|---|
|  |  |  | <param name="File" value="d:\\Log\\Error\\" /> | 
|---|
|  |  |  | <param name="AppendToFile" value="true" /> | 
|---|
|  |  |  | <param name="MaxSizeRollBackups" value="100" /> | 
|---|
|  |  |  | <param name="MaxFileSize" value="10240" /> | 
|---|
|  |  |  | <param name="StaticLogFileName" value="false" /> | 
|---|
|  |  |  | <param name="DatePattern" value="yyyy-MM-dd.LOG" /> | 
|---|
|  |  |  | <param name="RollingStyle" value="Date" /> | 
|---|
|  |  |  | <param name="File" value="d:\\Log\\Error\\"/> | 
|---|
|  |  |  | <param name="AppendToFile" value="true"/> | 
|---|
|  |  |  | <param name="MaxSizeRollBackups" value="100"/> | 
|---|
|  |  |  | <param name="MaxFileSize" value="10240"/> | 
|---|
|  |  |  | <param name="StaticLogFileName" value="false"/> | 
|---|
|  |  |  | <param name="DatePattern" value="yyyy-MM-dd.LOG"/> | 
|---|
|  |  |  | <param name="RollingStyle" value="Date"/> | 
|---|
|  |  |  | <layout type="log4net.Layout.PatternLayout"> | 
|---|
|  |  |  | <param name="ConversionPattern" value="%n异常时间:%d [%t] %n异常级别:%-5p %n异 常 类:%c [%x] %n%m %n " /> | 
|---|
|  |  |  | <param name="ConversionPattern" value="%n异常时间:%d [%t] %n异常级别:%-5p %n异 常 类:%c [%x] %n%m %n "/> | 
|---|
|  |  |  | </layout> | 
|---|
|  |  |  | <filter type="log4net.Filter.LevelRangeFilter"> | 
|---|
|  |  |  | <levelMin value="ERROR" /> | 
|---|
|  |  |  | <levelMax value="ERROR" /> | 
|---|
|  |  |  | <levelMin value="ERROR"/> | 
|---|
|  |  |  | <levelMax value="ERROR"/> | 
|---|
|  |  |  | </filter> | 
|---|
|  |  |  | </appender> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--消息日志配置--> | 
|---|
|  |  |  | <appender name="InfoAppender" type="log4net.Appender.RollingFileAppender" level="INFO"> | 
|---|
|  |  |  | <param name="File" value="d:\\Log\\Info\\" /> | 
|---|
|  |  |  | <param name="AppendToFile" value="true" /> | 
|---|
|  |  |  | <param name="MaxSizeRollBackups" value="100" /> | 
|---|
|  |  |  | <param name="MaxFileSize" value="10240" /> | 
|---|
|  |  |  | <param name="StaticLogFileName" value="false" /> | 
|---|
|  |  |  | <param name="DatePattern" value="yyyy-MM-dd.LOG" /> | 
|---|
|  |  |  | <param name="RollingStyle" value="Date" /> | 
|---|
|  |  |  | <param name="File" value="d:\\Log\\Info\\"/> | 
|---|
|  |  |  | <param name="AppendToFile" value="true"/> | 
|---|
|  |  |  | <param name="MaxSizeRollBackups" value="100"/> | 
|---|
|  |  |  | <param name="MaxFileSize" value="10240"/> | 
|---|
|  |  |  | <param name="StaticLogFileName" value="false"/> | 
|---|
|  |  |  | <param name="DatePattern" value="yyyy-MM-dd.LOG"/> | 
|---|
|  |  |  | <param name="RollingStyle" value="Date"/> | 
|---|
|  |  |  | <layout type="log4net.Layout.PatternLayout"> | 
|---|
|  |  |  | <param name="ConversionPattern" value="%n消息时间:%d [%t] %n消息级别:%-5p %n消 息 类:%c [%x] %n%m %n " /> | 
|---|
|  |  |  | <param name="ConversionPattern" value="%n消息时间:%d [%t] %n消息级别:%-5p %n消 息 类:%c [%x] %n%m %n "/> | 
|---|
|  |  |  | </layout> | 
|---|
|  |  |  | <filter type="log4net.Filter.LevelRangeFilter"> | 
|---|
|  |  |  | <levelMin value="INFO" /> | 
|---|
|  |  |  | <levelMax value="INFO" /> | 
|---|
|  |  |  | <levelMin value="INFO"/> | 
|---|
|  |  |  | <levelMax value="INFO"/> | 
|---|
|  |  |  | </filter> | 
|---|
|  |  |  | </appender> | 
|---|
|  |  |  | <root> | 
|---|
|  |  |  | <appender-ref ref="InfoAppender" /> | 
|---|
|  |  |  | <appender-ref ref="ErrorAppender" /> | 
|---|
|  |  |  | <appender-ref ref="InfoAppender"/> | 
|---|
|  |  |  | <appender-ref ref="ErrorAppender"/> | 
|---|
|  |  |  | </root> | 
|---|
|  |  |  | <logger name="logerror"> | 
|---|
|  |  |  | <level value="ALL" /> | 
|---|
|  |  |  | <appender-ref ref="ErrorAppender" /> | 
|---|
|  |  |  | <level value="ALL"/> | 
|---|
|  |  |  | <appender-ref ref="ErrorAppender"/> | 
|---|
|  |  |  | </logger> | 
|---|
|  |  |  | <logger name="loginfo"> | 
|---|
|  |  |  | <level value="ALL" /> | 
|---|
|  |  |  | <appender-ref ref="InfoAppender" /> | 
|---|
|  |  |  | <level value="ALL"/> | 
|---|
|  |  |  | <appender-ref ref="InfoAppender"/> | 
|---|
|  |  |  | </logger> | 
|---|
|  |  |  | </log4net> | 
|---|
|  |  |  | <system.serviceModel> | 
|---|
|  |  |  | <bindings> | 
|---|
|  |  |  | <basicHttpBinding> | 
|---|
|  |  |  | <binding name="MesWebServiceSoap" /> | 
|---|
|  |  |  | <binding name="BasicHttpBinding_ITrussService" /> | 
|---|
|  |  |  | <binding name="BasicHttpBinding_ISrmService" /> | 
|---|
|  |  |  | <binding name="MesWebServiceSoap"/> | 
|---|
|  |  |  | <binding name="BasicHttpBinding_ITrussService"/> | 
|---|
|  |  |  | <binding name="BasicHttpBinding_ISrmService"/> | 
|---|
|  |  |  | </basicHttpBinding> | 
|---|
|  |  |  | </bindings> | 
|---|
|  |  |  | <client> | 
|---|
|  |  |  | <endpoint address="http://192.168.1.29:8733/Design_Time_Addresses/iWareSda.TrussService/TrussService/" | 
|---|
|  |  |  | binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITrussService" | 
|---|
|  |  |  | contract="TrussService.ITrussService" name="BasicHttpBinding_ITrussService" /> | 
|---|
|  |  |  | <endpoint address="http://192.168.1.29:9090/MesWebService.asmx" | 
|---|
|  |  |  | binding="basicHttpBinding" bindingConfiguration="MesWebServiceSoap" | 
|---|
|  |  |  | contract="MesWebService.MesWebServiceSoap" name="MesWebServiceSoap" /> | 
|---|
|  |  |  | <endpoint address="http://192.168.1.29:8733/Design_Time_Addresses/iWareSda.SrmService/SrmService/" | 
|---|
|  |  |  | binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISrmService" | 
|---|
|  |  |  | contract="SrmService.ISrmService" name="BasicHttpBinding_ISrmService" /> | 
|---|
|  |  |  | <endpoint address="http://192.168.1.29:8733/Design_Time_Addresses/iWareSda.TrussService/TrussService/" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITrussService" contract="TrussService.ITrussService" name="BasicHttpBinding_ITrussService"/> | 
|---|
|  |  |  | <endpoint address="http://192.168.1.29:9090/MesWebService.asmx" binding="basicHttpBinding" bindingConfiguration="MesWebServiceSoap" contract="MesWebService.MesWebServiceSoap" name="MesWebServiceSoap"/> | 
|---|
|  |  |  | <endpoint address="http://192.168.1.29:8733/Design_Time_Addresses/iWareSda.SrmService/SrmService/" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISrmService" contract="SrmService.ISrmService" name="BasicHttpBinding_ISrmService"/> | 
|---|
|  |  |  | </client> | 
|---|
|  |  |  | </system.serviceModel> | 
|---|
|  |  |  | <connectionStrings> | 
|---|
|  |  |  | <!--<add name="DbModel" connectionString="data source=120.53.244.200;initial catalog=XiGangWarehouse;persist security info=True;user id=sa;password=123abccba;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />--> | 
|---|
|  |  |  | <!--<add name="DbModel" connectionString="data source=120.53.244.200;initial catalog=LA24030_LuLiPackageLine;persist security info=True;user id=sa;password=123abccba;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />--> | 
|---|
|  |  |  | <!--shaocx本地2017--> | 
|---|
|  |  |  | <!--<add name="DbModel" connectionString="data source=LAPTOP-9337IBI9\MSSQLSERVER2017;initial catalog=XiGangWarehouse;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />--> | 
|---|
|  |  |  | <!--<add name="DbModel" connectionString="data source=LAPTOP-9337IBI9\MSSQLSERVER2017;initial catalog=LA24030_LuLiPackageLine;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />--> | 
|---|
|  |  |  | <!--现场--> | 
|---|
|  |  |  | <add name="DbModel" connectionString="data source=192.168.10.5;initial catalog=XiGangWarehouse;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /> | 
|---|
|  |  |  | <add name="DbModel" connectionString="data source=192.168.10.5;initial catalog=LA24030_LuLiPackageLine;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient"/> | 
|---|
|  |  |  | </connectionStrings> | 
|---|
|  |  |  | <entityFramework> | 
|---|
|  |  |  | <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> | 
|---|
|  |  |  | <parameters> | 
|---|
|  |  |  | <parameter value="mssqllocaldb" /> | 
|---|
|  |  |  | <parameter value="mssqllocaldb"/> | 
|---|
|  |  |  | </parameters> | 
|---|
|  |  |  | </defaultConnectionFactory> | 
|---|
|  |  |  | <providers> | 
|---|
|  |  |  | <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> | 
|---|
|  |  |  | <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/> | 
|---|
|  |  |  | </providers> | 
|---|
|  |  |  | </entityFramework> | 
|---|
|  |  |  | </configuration> | 
|---|
|  |  |  | <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration> | 
|---|