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;