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.
46 lines
1.7 KiB
46 lines
1.7 KiB
4 years ago
|
using System;
|
||
|
using System.Configuration;
|
||
|
using QMFrameWork.Log;
|
||
|
namespace AutoFileCopyNet.EngelFileCopy
|
||
|
{
|
||
|
///<summary>
|
||
|
/// 模块编号:AutoFileCopyNet.EngelFileCopy.EngelFileCopyJob
|
||
|
/// 作 用:根据设备信息,从设备共享目录复制文件,设备类型为:海天注塑机
|
||
|
/// 作 者:sunguoqiang
|
||
|
/// 编写日期:2012-11-28
|
||
|
///</summary>
|
||
|
public class EngelFileCopyJob
|
||
|
{
|
||
|
|
||
|
#region AutoFileCopyJob 成员
|
||
|
|
||
|
public void Run()
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
lock (this)
|
||
|
{
|
||
|
|
||
|
String equipmentType = GetConfigurationSettings.DCS_ET_ENGEL_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
|
||
|
|
||
|
}
|
||
|
}
|