private void InitialSystemInfo() { #region 初始化配置 ProcessLogger = log4net.LogManager.GetLogger("ProcessLogger"); ExceptionLogger = log4net.LogManager.GetLogger("SystemExceptionLogger"); ProcessLogger.Fatal("System Start " + DateTime.Now.ToString()); #endregion }
private void inputdatacaipiao(object sender, DoWorkEventArgs e) { ALLResult = new List <clsDatabaseinfo>(); //导入程序集 DateTime oldDate = DateTime.Now; Result = new List <clsDatabaseinfo>(); clsAllnew BusinessHelp = new clsAllnew(); ProcessLogger.Fatal("1005--input kiajiang data" + DateTime.Now.ToString()); Result = BusinessHelp.InputclaimReport(ref this.bgWorker, MCpath); ALLResult = BusinessHelp.Result; ProcessLogger.Fatal("1006-- Input finish" + DateTime.Now.ToString()); DateTime FinishTime = DateTime.Now; // TimeSpan s = DateTime.Now - oldDate; string timei = s.Minutes.ToString() + ":" + s.Seconds.ToString(); string Showtime = clsShowMessage.MSG_029 + timei.ToString(); bgWorker.ReportProgress(clsConstant.Thread_Progress_OK, clsShowMessage.MSG_009 + "\r\n" + Showtime); }