public static void RunAMSInline(DateTime from, DateTime to, bool isRun2Now = true) { LogHelper.InlineInfoLog(string.Format("开始RunAMSInline,From:{0},To:{1}", from.ToString("yyyy-MM-dd HH:mm:ss.ffffff"), to.ToString("yyyy-MM-dd HH:mm:ss.ffffff"))); AMSInline inline = new AMSInline { StartTime = from, EndTime = to, IsRun2Now = isRun2Now }; InlineFileOperator fileOperator = new InlineFileOperator(inline); try { fileOperator.OperateFiles(); SshOper ssh = new SshOper(); LogHelper.InlineInfoLog("AMSInline\t" + ssh.GetResault("sh ~/eda/inline.sh")); } catch (NoQueryDataException ne) { LogHelper.InlineInfoLog(ne.Message); } catch (Exception e) { LogHelper.ErrorLog("AMSInline", e); } LogHelper.InlineInfoLog("RunAMSInline执行完毕"); }
//public static bool IsRunToNow { get; set; } = true; public static void RunAmsWIP(DateTime from, DateTime to, bool isRun2Now = true) { LogHelper.WIPInfoLog(string.Format("开始RunAMSInline,From:{0},To:{1}", from.ToString("yyyy-MM-dd HH:mm:ss.ffffff"), to.ToString("yyyy-MM-dd HH:mm:ss.ffffff"))); AMSWIP wip = new AMSWIP() { StartTime = from, EndTime = to, IsRun2Now = isRun2Now }; WIPFileOperator fileOperator = new WIPFileOperator(wip); try { fileOperator.OperateFiles(); SshOper ssh = new SshOper(); LogHelper.WIPInfoLog("AMSWIP\t" + ssh.GetResault("sh ~/eda/wip.sh")); //单独loadDefect WIP fileOperator.OperateDefectFiles(); } catch (NoQueryDataException ne) { LogHelper.WIPInfoLog(ne.Message); } catch (Exception e) { LogHelper.ErrorLog("AMSWIP", e); } LogHelper.WIPInfoLog("RunAMSWIP执行完毕"); }
public static void RunAMSInline() { LogHelper.InlineInfoLog("开始RunAMSInline"); AMSInline inline = new AMSInline(); InlineFileOperator fileOperator = new InlineFileOperator(inline); try { fileOperator.OperateFiles(); SshOper ssh = new SshOper(); LogHelper.InlineInfoLog("AMSInline\t" + ssh.GetResault("sh ~/eda/inline.sh")); } catch (NoQueryDataException ne) { LogHelper.InlineInfoLog(ne.Message); } catch (Exception e) { LogHelper.ErrorLog("AMSInline", e); } LogHelper.InlineInfoLog("RunAMSInline执行完毕"); }
//public static void RunDebug() //{ // LogHelper.InlineInfoLog("开始执行InlineDebugTranslator"); // //InlineTempDebug inline = new InlineTempDebug(); // MESInline inline = new MESInline(); // InlineFileOperator fileOperator = new InlineFileOperator(inline); // try // { // fileOperator.OperateFiles(); // SshOper ssh = new SshOper(); // LogHelper.InlineInfoLog("Inline\t"+ssh.GetResault("sh ~/eda/inline.sh")); // } // catch (Exception e) // { // LogHelper.ErrorLog("Inline", e); // } // //try // //{ // // EDC_Lot_Summary summary = new EDC_Lot_Summary(); // //} // //catch (Exception e) // //{ // // LogHelper.ErrorLog("Inline", e); // //} // LogHelper.InlineInfoLog("InlineDebugTranslator执行完毕"); //} //public static void RunTest() //{ // LogHelper.InlineInfoLog("开始执行InlineTestTranslator"); // MESInline inline = new MESInline(); // InlineFileOperator fileOperator = new InlineFileOperator(inline); // try // { // fileOperator.OperateTestFiles(); // SshOper ssh = new SshOper(); // LogHelper.InlineInfoLog("Inline\t" + ssh.GetResault("sh ~/eda/inline.sh")); // } // catch (Exception e) // { // LogHelper.ErrorLog("InlineTest", e); // } // LogHelper.InlineInfoLog("InlineTestTranslator执行完毕"); //} public static void RunInlineTest() { LogHelper.InlineInfoLog("开始RunInlineTestTranslator"); AMSInline inline = new AMSInline(); InlineFileOperator fileOperator = new InlineFileOperator(inline); try { fileOperator.OperateTestFiles(); SshOper ssh = new SshOper(); LogHelper.InlineInfoLog("Inline\t" + ssh.GetResault("sh ~/eda/inline.sh")); } catch (NoQueryDataException ne) { LogHelper.InlineInfoLog(ne.Message); } //catch (Exception e) //{ // LogHelper.ErrorLog("InlineTest", e); //} LogHelper.InlineInfoLog("InlineTestTranslator执行完毕"); }
public static void RunAMSChamber() { LogHelper.ChamberInfoLog("开始RunAMSChamber"); AMSChamber chamber = new AMSChamber(); ChamberFileOperator fileOperator = new ChamberFileOperator(chamber); try { fileOperator.OperateFiles(); SshOper ssh = new SshOper(); LogHelper.ChamberInfoLog("AMSChamber\t" + ssh.GetResault("sh ~/eda/chamber.sh")); } catch (NoQueryDataException ne) { LogHelper.ChamberInfoLog(ne.Message); } catch (Exception e) { LogHelper.ErrorLog("AMSChamber", e); } LogHelper.ChamberInfoLog("RunAMSChamber执行完毕"); }
public static void RunAmsWIP() { LogHelper.WIPInfoLog("开始RunAMSWIP"); AMSWIP wip = new AMSWIP(); WIPFileOperator fileOperator = new WIPFileOperator(wip); try { fileOperator.OperateFiles(); SshOper ssh = new SshOper(); LogHelper.WIPInfoLog("AMSWIP\t" + ssh.GetResault("sh ~/eda/wip.sh")); //单独loadDefect WIP fileOperator.OperateDefectFiles(); } catch (NoQueryDataException ne) { LogHelper.WIPInfoLog(ne.Message); } catch (Exception e) { LogHelper.ErrorLog("AMSWIP", e); } LogHelper.WIPInfoLog("RunAMSWIP执行完毕"); }