App.config 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <appSettings>
  4. <add key="APPName" value="大表通讯服务器" />
  5. <add key="db" value="Data Source=47.105.45.253;Initial Catalog=RuralWaterPipNetWork;Persist Security Info=True;User ID=sa;Password=wwkj@2136828;Pooling=yes;MultipleActiveResultSets=True" />
  6. <!--心跳间隔时间(毫秒)-->
  7. <add key="ConnectionTimeOut" value="120000" />
  8. <!--执行断开静默链接间隔时间毫秒-->
  9. <add key="ConnectionTimeOutInterval" value="10000" />
  10. <!--设备类型 1:电池供电;2:市电供电MODBUS;3:电池供电和市电供电MODBUS-->
  11. <add key="IsHaveModBus" value="1" />
  12. <!--MODBUS轮询获取抄表数据时间毫秒-->
  13. <add key="ModBusQueryInterval" value="120000" />
  14. <!--电池供电判断超时最大下发指令次数-->
  15. <add key="ParamSendTimeOutNum" value="3" />
  16. <!--电池供电最大下发指令次数-->
  17. <add key="ParamSendMaxNum" value="6" />
  18. <!--电池供电同一设备下发指令每次间隔时间(秒)-->
  19. <add key="ParamSendInterval" value="5" />
  20. <!-- 农村供水预付费系统阀门状态同步接口 (http://xxxxx/RuralWater/MeterValveStatusApi.ashx)-->
  21. <add key="RuralWaterURL" value="" />
  22. <!-- 农村供水预付费系统阀门状态控制结果通知接口 (http://xxxxx/RuralWater/MeterValveStatusApi.ashx)-->
  23. <add key="RuralWaterCommdURL" value="" />
  24. <add key="ClientSettingsProvider.ServiceUri" value="" />
  25. <!--自动启动标志1:自动启动;0:不自动启动-->
  26. <add key="AutoStart" value="0" />
  27. <!--上报IP-->
  28. <add key="ReportIP" value="" />
  29. <!--上报端口-->
  30. <add key="ReportPort" value="123" />
  31. <!--监听端口-->
  32. <add key="MonitorPort" value="" />
  33. <!--是否记录所有日志 1:是,0:否(只记录错误日志)-->
  34. <add key="IsAllLog" value="1" />
  35. <!--是否记录所有日志 1:是,0:否(只记录错误日志)-->
  36. <add key="IsAllLog" value="1" />
  37. <!-- 上报抄表数据对应的数据库字段(历史记录表MeterAssessment_***) -->
  38. <add key="DataColumnHis" value="NetCumulativeFlow|净累计流量,PositiveCumulativeFlow|正累计流量,NegativeCumulativeFlow|负累计流量,InstantaneousFlow|瞬时流量,Pressure|压力,BatteryVoltageValue|电池电压,signalQuality|信号质量" />
  39. <!-- 上报抄表数据对应的数据库字段(水表表MeterAssessmentBase) -->
  40. <add key="DataColumnMeter" value="NetCumulativeFlow|净累计流量,PositiveCumulativeFlow|正累计流量,NegativeCumulativeFlow|负累计流量,InstantaneousFlow|瞬时流量,Pressure|压力,BatteryVoltageValue|电池电压,signalQuality|信号质量" />
  41. <!-- 上报抄表数据净累计流量字段 -->
  42. <add key="NetCumulativeFlow" value="净累计流量" />
  43. <!-- 极大值 时间范围参数 单位分钟-->
  44. <add key="BigNumberTimeScopeParam" value="30" />
  45. </appSettings>
  46. <startup>
  47. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
  48. </startup>
  49. <system.web>
  50. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  51. <providers>
  52. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
  53. </providers>
  54. </membership>
  55. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  56. <providers>
  57. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
  58. </providers>
  59. </roleManager>
  60. </system.web>
  61. </configuration>