schangxiang@126.com
2025-08-05 04d10bce51a6272d02a4a0f1b05a4f64bf73f273
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0"?>
<configuration>
  <configSections>
    <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"/>
  </configSections>
  <appSettings>
    <!-- 是否模拟PLC,发布一定是 FALSE -->
    <add key="IsSimulationPLC" value="false"/>
    <!-- 是否是随机寻找库位,建议是false-->
    <add key="IsRandomFindPlace" value="false"/>
    <!-- 西港WMS的API-->
    <add key="XiGang_WMSApi" value="http://192.168.10.5:8084/api/MES/"/>
    <!-- 西港WMS的发动机出库-->
    <add key="XiGang_WMSApi_OutStoreToMes" value="OutStoreToMes"/>
  </appSettings>
  <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"/>
      <layout type="log4net.Layout.PatternLayout">
        <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"/>
      </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"/>
      <layout type="log4net.Layout.PatternLayout">
        <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"/>
      </filter>
    </appender>
    <root>
      <appender-ref ref="InfoAppender"/>
      <appender-ref ref="ErrorAppender"/>
    </root>
    <logger name="logerror">
      <level value="ALL"/>
      <appender-ref ref="ErrorAppender"/>
    </logger>
    <logger name="loginfo">
      <level value="ALL"/>
      <appender-ref ref="InfoAppender"/>
    </logger>
  </log4net>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <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"/>
    </client>
  </system.serviceModel>
  <connectionStrings>
    <!--<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=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=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"/>
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
    </providers>
  </entityFramework>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>