@@ -11,14 +11,16 @@ namespace UAS_LabelMachine
public class DataHelper
{
- //富为外网地址
+ ////富为外网地址
//private readonly string ConnectionStrings = "Data Source=richwellgroup.com.cn/orcl;User ID=DATACENTER;PassWord=select!#%*(";
- //富为ERP地址
+ ////富为ERP地址
//public static readonly string ERPAddesss = "http://richwellgroup.com.cn:8099/ERP/";
- //富为FTP
+ ////富为FTP
//public static readonly string FTPAdress = "ftp://richwellgroup.com.cn|printuser|printuser";
- //Oracle端口
+ ////Oracle端口
//public static readonly string OraclePort = "1521";
+ ////需要显示的账套
+ //public static readonly string Masters = "JDTSY,FW_JDT,N_DATACENTER,FY_TEST,JD_TEST,XY_TEST,FW_TEST,DATACENTER,FW,XY,FY";
//怡海能达外网地址
private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=sz.hi-mantech.com)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
@@ -18,7 +18,7 @@ namespace UAS_LabelMachine
public ftpOperater()
- string[] FTPInf = Properties.Settings.Default.FTPAddress.Split('|');
+ string[] FTPInf = DataHelper.FTPAdress.Split('|');
this.ftpServerIP = FTPInf[0];
this.ftpUser = FTPInf[1];
this.ftpPwd = FTPInf[2];
@@ -137,7 +137,7 @@ namespace UAS_LabelMachine
/// 实现ftp下载操作
/// </summary>
/// <param name="fileName">远程文件名</param>
- public string Download(string fileName,DateTime time)
+ public string Download(string fileName, DateTime time)
FtpWebRequest reqFTP;
try