MediII.Adapter.MsgToKCServer.exe.config 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <configSections>
  4. <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
  5. <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
  6. </configSections>
  7. <!--日志配置-->
  8. <loggingConfiguration name="" tracingEnabled="true" defaultCategory="General">
  9. <listeners>
  10. <add name="GeneralListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  11. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  12. fileName="General\rolling.log" formatter="Text Formatter" rollFileExistsBehavior="Increment"
  13. rollInterval="Day" maxArchivedFiles="0" traceOutputOptions="None" />
  14. <add name="SockListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  15. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  16. fileName="Sock\rolling.log" formatter="Text Formatter" rollInterval="Day" />
  17. <add name="ScanListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  18. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  19. fileName="Scan\rolling.log" formatter="Text Formatter" rollInterval="Day" />
  20. <add name="SqlListener" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  21. listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  22. fileName="SQL\logSql.log" formatter="Text Formatter" rollInterval="Day" />
  23. </listeners>
  24. <formatters>
  25. <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  26. template="Timestamp: {timestamp}{newline}&#xA;Message: {message}"
  27. name="Text Formatter" />
  28. </formatters>
  29. <categorySources>
  30. <add switchValue="All" name="General">
  31. <listeners>
  32. <add name="GeneralListener" />
  33. </listeners>
  34. </add>
  35. <add switchValue="All" name="Sock">
  36. <listeners>
  37. <add name="SockListener" />
  38. </listeners>
  39. </add>
  40. <add switchValue="All" name="AdapterScan">
  41. <listeners>
  42. <add name="ScanListener" />
  43. </listeners>
  44. </add>
  45. <add switchValue="All" name="SQL">
  46. <listeners>
  47. <add name="SqlListener" />
  48. </listeners>
  49. </add>
  50. </categorySources>
  51. <specialSources>
  52. <allEvents switchValue="All" name="All Events" />
  53. <notProcessed switchValue="All" name="Unprocessed Category" />
  54. <errors switchValue="All" name="Logging Errors &amp; Warnings" />
  55. </specialSources>
  56. </loggingConfiguration>
  57. <dataConfiguration defaultDatabase="DefaultDB" />
  58. <connectionStrings>
  59. <add name="DefaultDB" connectionString="Data Source=.;
  60. Initial Catalog=HL7_Platform;
  61. Persist Security Info=True;
  62. Integrated Security=False;
  63. User ID=sa;Password=123" providerName="System.Data.SqlClient"/>
  64. <add name="HealthCare" connectionString="Data Source=.;
  65. Initial Catalog=KC_JX;
  66. Persist Security Info=True;
  67. Integrated Security=False;
  68. User ID=sa;Password=123" providerName="System.Data.SqlClient"/>
  69. </connectionStrings>
  70. <appSettings>
  71. <!--测试-->
  72. <!--正式-->
  73. <add key="MediIIAddress" value="192.9.216.206" />
  74. <add key="MediIIPort" value="31001" />
  75. <add key="BufferSize" value="4048" />
  76. <add key="ReviceTimeOut" value="30000" />
  77. <add key="ErrorRepeatCount" value="1" />
  78. <add key="ErrorSleepMSecodes" value="3000" />
  79. <!--<add key="SedingApplication" value="UEHIS" />-->
  80. <add key="HosiptalName" value=""/>
  81. <add key="AddMinues" value="30"/>
  82. <add key="BranchID" value=""/>
  83. <!--查询数量-->
  84. <add key="SearchNum" value="50"/>
  85. <!--任务解锁时间 单位分钟-->
  86. <add key="TaskRunTime" value="5"/>
  87. <!--启动SQL日志-->
  88. <add key="LogSql" value="1"/>
  89. </appSettings>
  90. <system.serviceModel>
  91. <bindings>
  92. <basicHttpBinding>
  93. <binding name="WebServiceSoap"/>
  94. </basicHttpBinding>
  95. </bindings>
  96. <client>
  97. <endpoint address="http://localhost:8092/WebService.asmx" binding="basicHttpBinding" bindingConfiguration="WebServiceSoap" contract="ServiceTest.WebServiceSoap" name="WebServiceSoap"/>
  98. </client>
  99. </system.serviceModel>
  100. </configuration>