コード例 #1
0
 /// <summary>
 /// 线程开始
 /// </summary>
 /// <param name="dtStart"></param>
 /// <param name="dtEnd"></param>
 /// <param name="log"></param>
 public void AutoStart(DateTime dtStart, DateTime dtEnd, bool blnBackUpData, string strBackFilePath, bool blnDeleteDataEveryHour, int iPCBLimit)
 {
     try
     {
         runnerDeleteData = new ThreadProcess(dtStart, dtEnd, blnBackUpData, strBackFilePath, blnDeleteDataEveryHour, iPCBLimit);
         runnerDeleteData.Run();
     }
     catch (Exception ex)
     {
         AppLogHelp.WriteLog(LogFileFormate.Delete, ThreadName + ex.ToString());
     }
 }
コード例 #2
0
ファイル: bu.cs プロジェクト: q527541060/autoappOnline
 public void AutoStart(DateTime dtEndTime, bool blnBackUpData, string strBackFilePath, Log log)
 {
     try
     {
         runner = new ThreadProcess(dtEndTime, blnBackUpData, strBackFilePath, log);
         runner.Run();
     }
     catch (Exception ex)
     {
         log.WriteErr("错误 ! " + ex.ToString(), ThreadName);
     }
 }
コード例 #3
0
 public void AutoStart(DateTime dtEndTime, bool blnBackUpData, string strBackFilePath, bool blnDeleteDataEveryHour, int iPCBLimit)
 {
     try
     {
         runnerDeleteData = new ThreadProcess(dtEndTime, blnBackUpData, strBackFilePath, blnDeleteDataEveryHour, iPCBLimit);
         runnerDeleteData.Run();
     }
     catch (Exception ex)
     {
         //log.WriteErr("错误 ! " + ex.ToString(), ThreadName);
         AppLogHelp.WriteError(LogFileFormate.Delete, ThreadName + " 错误 ! :" + ex.ToString());
         // moditied by peng 20190314
         throw ex;
     }
 }