DS7_HYRD
hanxuntao 1 year ago
parent b9e97dec96
commit cdf2a60fc9

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<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"/>
</configSections>
<startup>
@ -13,22 +12,7 @@
<add key="UPDATESUBCOMPANY" value="1"/>
<add key="FilePath" value="D:\HXT"/>
<add key="FileType" value="提单COPY"/>
<!--
<add key="ConnectionString" value="Data Source=.;Initial Catalog=dongshengdata_jf;User ID=sa;Password=ds20040201"/>
-->
<!-- rabbitmq地址 -->
<!--
<add key="MQURL" value="amqp://djy_output:123qwe@47.104.207.5:12567/djy.output" />
-->
<!-- invtoD7
<add key="MQURL" value="amqp://djy_dev:dev123@60.209.125.238:33666" />
<add key="virtualhost" value="inv_customer" />
<add key="ConnectionStringFile" value="Data Source=.;Initial Catalog=dongshengdata_jf;User ID=sa;Password=ds20040201" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
-->
<!-- invtoD7 69测试 -->
<add key="DJYMQURL" value="amqp://xgs_test:xgs_test123@60.209.125.238:40101" />
<add key="virtualhost" value="XGSTEST" />
<add key="MQExchangeName" value="" />
@ -41,23 +25,6 @@
<add key="ConnectionString" value="Data Source=ds-hxt;Initial Catalog=SHIPPINGWEB_qj;User ID=sa;Password=Ds20040201" />
<add key="BSSQL" value=" ETD&gt;=GETDATE()" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<add key="ConnectionStringFile" value="Data Source=47.104.224.244;Initial Catalog=SHIPPINGWEB1;User ID=sa;Password=0820Ds2018" />
<!--
<add key="DJYUSERID:9f3b3526-4dd4-4997-b974-1f2adb2793c7" value="Server=47.104.102.13,3433;Database=SHIPPINGWEB_ds;User ID=sa;Password=Ds2019*20040201;Connect Timeout=120000;" />
-->
<!--DJYtoD7_OPSTATUS 大简云向DS7发布业务状态
<add key="MQURL" value="amqp://status_resp:djystatusresp2022@60.209.125.238:33666/status_resp"/>
<add key="DJYMQURL" value="amqp://booking_data_resp:djybookingresp2023@47.104.207.5:12567/booking_data_resp"/>
<add key="DGMQURL" value="amqp://djy_booking_new:123qwe@60.209.125.238:12567/djy_booking_new"/>
<add key="DJYCORPID:662145ea-ab74-44e0-9d31-d27369121c3c" value="Server=60.209.125.238,26600;Database=shippingwebTEST;User ID=sa;Password=Ds20040201;Connect Timeout=120000;"/>
-->
<!--
<add key="DJYUSERID:9f3b3526-4dd4-4997-b974-1f2adb2793c7" value="Server=123.234.225.158,26600;Database=DSWMS_Dev;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" />
<add key="DJYUSERID:a4464cee-7c15-41c2-80b1-1003bcc34350" value="Server=123.234.225.158,26600;Database=DSWMS_Dev;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" />
-->
</appSettings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

@ -106,6 +106,12 @@
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Channels">
<HintPath>..\..\packages\System.Threading.Channels.4.7.1\lib\net461\System.Threading.Channels.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions">
<HintPath>..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" />

@ -48,8 +48,6 @@ namespace D7MqClient
var CompanyQueueName = QueueName;
ConnectionFactory factory = new ConnectionFactory();
factory.Uri = new Uri(MQURL);
//factory.UserName = "xgs_test";
//factory.Password = "xgs_test123";
factory.VirtualHost = virtualhost;
mqConn = factory.CreateConnection();

@ -5,6 +5,7 @@ using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using log4net.Config;
namespace D7MqClient
{
@ -28,6 +29,7 @@ namespace D7MqClient
#region 测试用入口
//Application.EnableVisualStyles();
//Application.SetCompatibleTextRenderingDefault(false);
//XmlConfigurator.Configure();
//Application.Run(new testForm1());
#endregion
}

Loading…
Cancel
Save