You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mesnac.Action.Base;
namespace Mesnac.Action.Feeding.Qingquan.Sys
{
/// <summary>
/// 调用工艺回溯应用程序
/// </summary>
public class BackViewAction : FeedingAction, IAction
{
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime);
try
{
string fileName = base.GetConfigValue("BackViewAppPath", String.Empty);
if (System.IO.File.Exists(fileName))
{
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
Info.FileName = fileName;//"calc.exe"为计算器,"notepad.exe"为记事本
System.Diagnostics.Process Proc = System.Diagnostics.Process.Start(Info);
}
}
catch (Exception ex)
{
ICSharpCode.Core.LoggingService.Error("调用工艺回溯失败:" + ex.Message);
}
}
}
}