天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.6 KiB

using System;
using System.Configuration;
using QMFrameWork.Log;
namespace AutoFileCopyNet.HaiTianFileCopy
{
///<summary>
/// 模块编号:AutoFileCopyNet.HaiTianFileCopy.HaiTianFileCopyJob
/// 作 用:根据设备信息,从设备共享目录复制文件,设备类型为:海天注塑机
/// 作 者:sunguoqiang
/// 编写日期:2012-11-28
///</summary>
public class HaiTianFileCopyJob
{
#region AutoFileCopyJob 成员
public void Run()
{
try
{
String equipmentType = GetConfigurationSettings.DCS_ET_HAITIAN_TYPE;
String toDir = GetConfigurationSettings.DCSFilesPath;
String localDriverPath = GetConfigurationSettings.DCSLocalDriverPath;
String netUser = GetConfigurationSettings.DCSNetUser;
String userPwd = GetConfigurationSettings.DCSNetPwd;
String fileRenamePrefix = DirHandler.GetNewPrefix();
String errorMessageHead = ConstParam.ERROR_MESSAGE_HEAD;
string Equipment_IP = GetConfigurationSettings.Equipment_IP;
//AutoFileCopy.AutoFileCopyFromEquipmentByType(equipmentType,Equipment_IP, toDir, localDriverPath, netUser, userPwd, fileRenamePrefix, errorMessageHead);
}
catch (Exception ex)
{
LogFileAccess.WriteLogFile("海天网络共享文件抓取失败" + ex.Message + ex.Source + "---" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
}
}
#endregion
}
}