App.config 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
  5. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  6. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  7. <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  8. </configSections>
  9. <startup>
  10. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  11. </startup>
  12. <entityFramework>
  13. <defaultConnectionFactory type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  14. <providers>
  15. <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  16. </providers>
  17. </entityFramework>
  18. <system.data>
  19. <DbProviderFactories>
  20. <remove invariant="Oracle.ManagedDataAccess.Client" />
  21. <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  22. </DbProviderFactories>
  23. </system.data>
  24. <runtime>
  25. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  26. <dependentAssembly>
  27. <publisherPolicy apply="no" />
  28. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  29. <bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.121.2.0" />
  30. </dependentAssembly>
  31. </assemblyBinding>
  32. </runtime>
  33. <oracle.manageddataaccess.client>
  34. <version number="*">
  35. <dataSources>
  36. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-HQT08HUB45B)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE))) " />
  37. </dataSources>
  38. </version>
  39. </oracle.manageddataaccess.client>
  40. <oracle.dataaccess.client>
  41. <settings>
  42. <add name="bool" value="edmmapping number(1,0)" />
  43. <add name="byte" value="edmmapping number(3,0)" />
  44. <add name="int16" value="edmmapping number(4,0)" />
  45. <add name="int32" value="edmmapping number(9,0)" />
  46. <add name="int64" value="edmmapping number(18,0)" />
  47. </settings>
  48. </oracle.dataaccess.client>
  49. <connectionStrings>
  50. <add name="OracleDbContext" providerName="Oracle.ManagedDataAccess.Client" connectionString="Data Source= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.168.1.14)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = GDNXFD) ) );User Id=nxfdprod;Password=gdnxfd123;" />
  51. </connectionStrings>
  52. <system.serviceModel>
  53. <bindings>
  54. <basicHttpBinding>
  55. <binding name="MyBinding" sendTimeout="00:03:00" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" >
  56. <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647"/>
  57. </binding>
  58. </basicHttpBinding>
  59. </bindings>
  60. <services>
  61. <service name="GDNXFD.WcfService.AlertService">
  62. <endpoint address="" binding="basicHttpBinding" contract="GDNXFD.WcfService.IAlertService">
  63. <identity>
  64. <dns value="localhost" />
  65. </identity>
  66. </endpoint>
  67. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  68. <host>
  69. <baseAddresses>
  70. <add baseAddress="http://localhost:8733/GDNXFD/AlertService/" />
  71. </baseAddresses>
  72. </host>
  73. </service>
  74. <service name="GDNXFD.WcfService.AdviceService">
  75. <endpoint address="" binding="basicHttpBinding" contract="GDNXFD.WcfService.IAdviceService">
  76. <identity>
  77. <dns value="localhost" />
  78. </identity>
  79. </endpoint>
  80. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  81. <host>
  82. <baseAddresses>
  83. <add baseAddress="http://localhost:8733/GDNXFD/AdviceService/" />
  84. </baseAddresses>
  85. </host>
  86. </service>
  87. <service name="GDNXFD.WcfService.DefectBillService">
  88. <endpoint address="" binding="basicHttpBinding" contract="GDNXFD.WcfService.IDefectBillService">
  89. <identity>
  90. <dns value="localhost" />
  91. </identity>
  92. </endpoint>
  93. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  94. <host>
  95. <baseAddresses>
  96. <add baseAddress="http://localhost:8733/GDNXFD/DefectBillService/" />
  97. </baseAddresses>
  98. </host>
  99. </service>
  100. <service name="GDNXFD.WcfService.FaultInfoService">
  101. <endpoint address="" binding="basicHttpBinding" contract="GDNXFD.WcfService.IFaultInfoService">
  102. <identity>
  103. <dns value="localhost" />
  104. </identity>
  105. </endpoint>
  106. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  107. <host>
  108. <baseAddresses>
  109. <add baseAddress="http://localhost:8733/GDNXFD/FaultInfoService/" />
  110. </baseAddresses>
  111. </host>
  112. </service>
  113. </services>
  114. <behaviors>
  115. <serviceBehaviors>
  116. <behavior>
  117. <!-- To avoid disclosing metadata information,
  118. set the values below to false before deployment -->
  119. <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
  120. <!-- To receive exception details in faults for debugging purposes,
  121. set the value below to true. Set to false before deployment
  122. to avoid disclosing exception information -->
  123. <serviceDebug includeExceptionDetailInFaults="False" />
  124. </behavior>
  125. </serviceBehaviors>
  126. </behaviors>
  127. </system.serviceModel>
  128. <appSettings>
  129. <add key="ClientSettingsProvider.ServiceUri" value="" />
  130. <add key="RestServerUrl" value="http://127.0.0.1:8011/ts" />
  131. <!--风机启停推荐计算 短期风速统一编码-->
  132. <add key="WindSpeed_Up82" value="AI024" />
  133. <add key="WindSpeed_Up105" value="AI381" />
  134. <add key="WindSpeedCode_FiveMin" value="5FZPJFS" />
  135. <!--用户取消推荐 有效期-->
  136. <add key="UserCancelTime" value="300000" />
  137. <!-- 全局无风的情况下 推荐待机状态的风机变成维护状态 -->
  138. <add key="ThereIsNoWind" value="2.70"/>
  139. <add key="TheWindIsComing" value="3.40"/>
  140. <add key="ThereIsAlmostNoWind" value="3.00"/>
  141. <!-- kW.h,小于这个值,则推荐停机 -->
  142. <add key="ThereIsAlmostNoPower" value="-2.00" />
  143. <!-- 大风天气,风机这个时候不可推荐启动 -->
  144. <add key="ThereIsSuperWind" value="18.00"/>
  145. <add key="MaintainLowTemperature" value="0.00"/>
  146. <add key="UnMaintainLowTemperature" value="-10.00"/>
  147. <add key ="StationFGLYC" value="FCFGCDQ0001,FCFGCDQ0002,FCFGCDQ0003,FCFGCDQ0004,FCFGCDQ0005,FCFGCDQ0006,FCFGCDQ0007,FCFGCDQ0008,FCFGCDQ0009,FCFGCDQ0010,FCFGCDQ0011,FCFGCDQ0012,FCFGCDQ0013,FCFGCDQ0014,FCFGCDQ0015,FCFGCDQ0016"></add>
  148. <add key ="StationFGLYCSBQ" value="FCFGCDQ0001A,FCFGCDQ0002A,FCFGCDQ0003A,FCFGCDQ0004A,FCFGCDQ0005A,FCFGCDQ0006A,FCFGCDQ0007A,FCFGCDQ0008A,FCFGCDQ0009A,FCFGCDQ0010A,FCFGCDQ0011A,FCFGCDQ0012A,FCFGCDQ0013A,FCFGCDQ0014A,FCFGCDQ0015A,FCFGCDQ0016A"></add>
  149. <add key="AllowDebug" value="Y"/>
  150. <add key="AllowPrint" value="Y"/>
  151. </appSettings>
  152. <log4net>
  153. <appender name="AppLogFile" type="log4net.Appender.RollingFileAppender,log4net">
  154. <param name="File" value="log\AppLog.txt" />
  155. <param name="AppendToFile" value="false" />
  156. <param name="RollingStyle" value="Date" />
  157. <param name="DatePattern" value=".yyyy.MM.dd" />
  158. <param name="StaticLogFileName" value="true" />
  159. <layout type="log4net.Layout.PatternLayout,log4net">
  160. <param name="ConversionPattern" value="%d -- %m%n" />
  161. </layout>
  162. </appender>
  163. <appender name="ErrorRollingFileAppender" type="log4net.Appender.RollingFileAppender" LEVEL="ERROR">
  164. <param name="File" value="log\ErrorLog.txt" />
  165. <param name="AppendToFile" value="false" />
  166. <param name="RollingStyle" value="Date" />
  167. <param name="DatePattern" value=".yyyy.MM.dd" />
  168. <param name="StaticLogFileName" value="true" />
  169. <layout type="log4net.Layout.PatternLayout,log4net">
  170. <param name="ConversionPattern" value="%d -- %m%n" />
  171. </layout>
  172. <filter type="log4net.Filter.LevelRangeFilter">
  173. <param name="LevelMin" value="ERROR" />
  174. <param name="LevelMax" value="ERROR" />
  175. </filter>
  176. </appender>
  177. <appender name="RichTextBoxAppender" type="TestEDos.RichTextBoxAppender">
  178. <layout type="log4net.Layout.PatternLayout">
  179. <param name="Header" value="[Header]\r\n" />
  180. <param name="Footer" value="[Footer]\r\n" />
  181. <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} -- %m%n" />
  182. </layout>
  183. </appender>
  184. <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
  185. <layout type="log4net.Layout.PatternLayout">
  186. <conversionPattern value="%d{yyyy-MM-dd HH:mm:ss} -- %m%n" />
  187. </layout>
  188. </appender>
  189. <logger name="AppLog">
  190. <level value="Info" />
  191. <appender-ref ref="ErrorRollingFileAppender" />
  192. <appender-ref ref="AppLogFile" />
  193. </logger>
  194. </log4net>
  195. <system.web>
  196. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  197. <providers>
  198. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
  199. </providers>
  200. </membership>
  201. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  202. <providers>
  203. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
  204. </providers>
  205. </roleManager>
  206. </system.web>
  207. </configuration>