111
cjs
2025-06-06 03e67373c4c3bef21936ec1f9037f2ebcd434583
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=301879
  -->
<configuration>
  <configSections>
    <!-- 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="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
  </configSections>
  <connectionStrings>
    <!--AMS MsSql 数据库连接-->
    <!--<add name="amsConnection" connectionString="Data Source=192.168.1.199;Initial Catalog=XYL_AMS;Persist Security Info=True;User ID=sa;Password=test?123;" providerName="System.Data.SqlClient"/>-->
      <!--<add name="amsConnection" connectionString="Data Source=192.168.1.103;Initial Catalog=CS_AMS;Persist Security Info=True;User ID=sa;Password=test?123;" providerName="System.Data.SqlClient"/>-->
    <!--<add name="amsConnection" connectionString="Data Source=192.168.1.199;Initial Catalog=HC_AMS;Persist Security Info=True;User ID=sa;Password=test?123;" providerName="System.Data.SqlClient"/-->
    <add name="amsConnection" connectionString="Data Source=192.168.1.198\SQL2008;Initial Catalog=AMS_V2;Persist Security Info=True;User ID=sa;Password=sa@2015;" providerName="System.Data.SqlClient"/>
    <!--<add name="amsConnection" connectionString="Data Source=192.168.1.140;Initial Catalog=AMS_V2;Persist Security Info=True;User ID=sa;Password=Han123;" providerName="System.Data.SqlClient"/>-->
    <!--AMS MySql 数据库连接-->
    <!--<add name="amsConnection" connectionString="Server=192.168.1.198;Port=3306;Database=ams_v2;Uid=root;Pwd=123456;Old Guids=true;" providerName="MySql.Data.MySqlClient"/>-->
    <!--数据库连接类型 MSSQL MYSQL ORACLE-->
    <add name="DataType" connectionString="MSSQL"/>
    <!--MongoDB1服务器数据库地址(主设备业务数据)-->
    <add name="MIP1" connectionString="192.168.1.199"/>
    <add name="MPORT1" connectionString="27017"/>
    <add name="MDB1" connectionString="xyl_mtl"/>
    <add name="MUSER1" connectionString="xyl"/>
    <add name="MPWD1" connectionString="123456"/>
    <add name="MinConnectionPoolSize1" connectionString="20"/>
    <add name="WaitQueueSize1" connectionString="50"/>
 
    <!--MongoDB2服务器数据库地址(设备对象业务数据)-->
    <add name="MIP2" connectionString="192.168.1.199" />
    <add name="MPORT2" connectionString="27017" />
    <add name="MDB2" connectionString="xyl_mtl" />
    <add name="MUSER2" connectionString="xyl" />
    <add name="MPWD2" connectionString="123456" />
  </connectionStrings>
  <appSettings>
    <!-- 依赖于所属于的项目 -->
    <add key="appCode" value="AMS"/>
    <!--Redis访问地址-->
    <add key="RedisPath" value="123456@192.168.1.153:6379"/>
    <!--默认存储rendis的位置-->
    <add key="DefaultDb" value="2"/>
    <!--Autobom数据库连接字符串 支持三种数据库类型-->
    <!--<add key="DbProvider" value="HH.AMS.Ex.MSSQLServices" />-->
    <add key="DbProvider" value="HH.AMS.Ex.MySQLServicess" />
    <!--<add key="DbProvider" value="HH.AMS.Ex.OracleServices" />-->
    <add key="MYSQL" value="Server=192.168.1.198;Port=3306;Database=ams_v2;Uid=root;Pwd=123456;Old Guids=true;"/>
    <add key="MSSQL" value="Data Source=192.168.1.146\SQL2016;Initial Catalog=ZC_Autobom;User ID=sa;Password=test?123;" />
    <add key="ORACLE" value="data source = {0};user id= {2};password={3};persist security info=false;"/>
    <!--Autobom数据库连接字符串 支持三种数据库类型-->
    <add key="Npgsql" value="Host=192.168.1.198;Username=postgres;Password=qaz123;Database=HH_AMS_BAT"/>
    <!--iWCS Socket 服务配置-->
    <add key="iWCSSocketServerIP" value="192.168.1.234"/>
    <add key="iWCSSocketCommandTerminator" value="\r\n"/>
    <!--命令结束符-->
    <add key="iWCSSocketServerPort" value="2000"/>
    <!--杭叉AMS计算货位算法-->
    <add key="Calculate" value="HH.AMS.Ex.HangChaWMSCalculate"/>
  </appSettings>
  <log4net>
    <logger name="ModbusPlugins">
      <level value="Debug"/>
      <appender-ref ref="RollingFile"/>
    </logger>
    <!--将日志以回滚文件的形式写到文件中-->
    <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
      <!--该配置项参数指明了日志文件存放的地方-->
      <param name="File" value="Logs\AMSAPI_"/>
      <param name="DatePattern" value="yyyyMMdd.lo\g"/>
      <param name="RollingStyle" value="Date"/>
      <param name="StaticLogFileName" value="false"/>
      <!--该配置项参数指明是否在原文件中添加日志信息-->
      <param name="AppendToFile" value="true"/>
      <!--该配置项参数指明输出信息的布局或格式-->
      <layout type="log4net.Layout.PatternLayout">
        <!--
          日志的显示格式:"%timestamp [%thread] %-5level %logger - %message%newline"
          Timestamp: 表示程序已经开始执行的时间。 单位[毫秒]
          Thread:执行当前代码的线程
          Level:日志的级别
          Logger:日志相关请求的名称
          Message:日志消息
        -->
        <param name="ConversionPattern" value="%d [%t] [%-5p] - %m%n"/>
      </layout>
    </appender>
  </log4net>
  <system.data>
    <DbProviderFactories>
      <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.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
    </DbProviderFactories>
  </system.data>
  <system.web>
    <authentication mode="None" />
    <compilation debug="true" targetFramework="4.5.1">
      <assemblies>
        <add assembly="System.Runtime, Version=4.0.0.0 , Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </assemblies>
    </compilation>
    <httpRuntime targetFramework="4.5.1" maxRequestLength="52428800" useFullyQualifiedRedirectUrl="false" maxQueryStringLength="2097151" />
  </system.web>
  <system.webServer>
    <modules>
      <remove name="FormsAuthentication" />
    </modules>
    <handlers>
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="3000000000" maxQueryString="2097151" />
      </requestFiltering>
    </security>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
     <dependentAssembly>
        <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <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>
</configuration>