using System; using System.Collections.Generic; using System.Linq; using System.Text; using Mesnac.Action.Base; namespace Mesnac.Action.Feeding.Qingquan.Sys { /// /// 调用工艺回溯应用程序 /// 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); } } } }