This commit is contained in:
PastSaid
2024-12-05 15:39:19 +08:00
parent 5472714e30
commit 9725ab5376
128 changed files with 46381 additions and 69 deletions

View File

@@ -9,15 +9,11 @@ using System.Linq;
using HandleUtils;
using System.Data.SqlClient;
using Kingdee.BOS.Util;
using E_ZKEcc.Service;
using E_ZKEcc.Domian;
using E_ZKEcc.Request;
using Kingdee.BOS.Core.Util;
using LexmarkSFTPSDK.Response;
using System.Globalization;
using System.Xml;
using System.Text;
using HUIWEI.Lexmark.sftp.SDK.Doamin;
using Microsoft.Office.Interop.Excel;
namespace UnitTestProject2
@@ -73,17 +69,24 @@ namespace UnitTestProject2
public void TestMethod2()
{
// HUIWE_SFTP_TST@sftp.betagrid.gxs.com 22
string ip = "sftp.betagrid.gxs.com";
var port = 22;
string user = "HUIWE_SFTP_TST";
string pPath = "LEXMK_SFTP_TST";
string pwd = "@m+n|9+v^.R}1[^";
//string ip = "sftp.betagrid.gxs.com";
//string user = "HUIWE_SFTP_TST";
//string pPath = "LEXMK_SFTP_TST";
//string pwd = "@m+n|9+v^.R}1[^";
string ip = "sftp.tradinggrid.gxs.com";
string user = "HUIWE_SFTP_PRD";
string pPath = "LEXMK_SFTP_PRD";
string pwd = "i9{)Cso+k9M1AYm";
string localPath = @"D:\Work\GateDge\SFTP\POACK_20240507_4.xml";
string remotePath = "/././POLLABLE";
SFTPHelper SFTPHelper = new SFTPHelper(ip, user, pwd, port);
//var result = SFTPHelper.GetFileList(remotePath, "*BIN");
//SFTPHelper.Put(localPath, "/HUIWE_SFTP_TST/LEXMK_SFTP_TST/*BIN");
SFTPHelper.Mget(remotePath, @"D:\Work\GateDge\SFTP\sftpFolder\", null);
//SFTPHelper.Mget(remotePath, @"D:\Work\GateDge\SFTP\sftpFolder\", null);
var nameList = SFTPHelper.GetFileList(remotePath);
SFTPHelper.Disconnect();
return;

View File

@@ -39,21 +39,15 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="BGP.K3.GSP.Business.PlugIn">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\BGP.K3.GSP.Business.PlugIn.dll</HintPath>
</Reference>
<Reference Include="BGP.K3.GSP.Temporary.Business.PlugIn">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\BGP.K3.GSP.Temporary.Business.PlugIn.dll</HintPath>
</Reference>
<Reference Include="GDHNJN.BusinessForm.BusinessPlugIn">
<HintPath>C:\Users\Fareoh\Desktop\对比\dll\GDHNJN.BusinessForm.BusinessPlugIn.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.App">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.App.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.App.Security">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.App.Security.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.Core">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.Core.dll</HintPath>
</Reference>
@@ -63,6 +57,9 @@
<Reference Include="Kingdee.BOS.Model">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.Model.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.WebApi.Client">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Kingdee\K3Cloud\WebSite\bin\Kingdee.BOS.WebApi.Client.dll</HintPath>
</Reference>
<Reference Include="Kingdee.K3.SCM.App.Stock.Report">
<HintPath>..\..\..\..\..\..\Program Files\SupportClient\ReceivedFiles\Kingdee.K3.SCM.App.Stock.Report.dll</HintPath>
</Reference>
@@ -107,10 +104,6 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\00.SDK\E_ZKEccSDK\E_ZKEccSDK.csproj">
<Project>{9a0273e4-d584-4418-951c-020d4eff1732}</Project>
<Name>E_ZKEccSDK</Name>
</ProjectReference>
<ProjectReference Include="..\..\00.SDK\LexmarkSFTPSDK\LexmarkSFTPSDK.csproj">
<Project>{e11471a4-ead7-4c61-9ae3-ade93d267a0b}</Project>
<Name>LexmarkSFTPSDK</Name>
@@ -119,10 +112,6 @@
<Project>{d6a5e5a0-7529-4ffa-9f9d-b2c610919bf6}</Project>
<Name>HandleUtils</Name>
</ProjectReference>
<ProjectReference Include="..\..\03.珠海市汇威精密制造有限公司\HUIWEI.Lexmark.sftp.SDK\HUIWEI.Lexmark.sftp.SDK.csproj">
<Project>{1452970B-B4C7-4B42-803E-9DB6EE63ED91}</Project>
<Name>HUIWEI.Lexmark.sftp.SDK</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="OrderBySeq.xml" />