Exemple #1
0
        //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执行完毕");
        }
Exemple #2
0
        public static void RunAmsWIPTest()
        {
            LogHelper.WIPInfoLog("开始RunAMSWIPTest");
            AMSWIP          wip          = new AMSWIP();
            WIPFileOperator fileOperator = new WIPFileOperator(wip);

            try
            {
                fileOperator.OperateFiles();
                //SshOper ssh = new SshOper();
                //LogHelper.WIPInfoLog("AMSWIPTest\t" + ssh.GetResault("sh ~/eda/wip.sh\nsh ~/eda/chamber.sh"));
                fileOperator.OperateDefectFiles();
            }
            catch (NoQueryDataException ne)
            {
                LogHelper.WIPInfoLog(ne.Message);
            }
            catch (Exception e)
            {
                LogHelper.ErrorLog("AMSWIPTest", e);
            }
            LogHelper.WIPInfoLog("RunAMSWIPTest执行完毕");
        }