Пример #1
0
 //处理日志事件
 public void onLog(object sender, cGatherTaskLogArgs e)
 {
     if (e_TaskStarted != null && !e.Cancel)
     {
         e_Log(sender, e);
     }
 }
Пример #2
0
        //处理日志事件
        public void onLog(object sender, cGatherTaskLogArgs e)
        {
            if (e_TaskStarted != null && !e.Cancel)
            {
                e_Log(sender, e);
            }

            //在此处理是否写入错误数据到日志的请求
            if (e.IsSaveErrorLog == true)
            {
                cErrLog eLog = new cErrLog();
                eLog.WriteLog(this.TaskName, cGlobalParas.LogType.GatherError, e.strLog);
                eLog = null;
            }
        }
 //������־�¼�
 public void onLog(object sender, cGatherTaskLogArgs e)
 {
     if (e_TaskStarted != null && !e.Cancel)
     {
         e_Log(sender, e);
     }
 }
Пример #4
0
        //д��־�¼�
        private void tManage_Log(object sender, cGatherTaskLogArgs e)
        {
            //д��־
            Int64 TaskID = e.TaskID;
            string strLog = e.strLog;
            string conName="sCon" + TaskID ;
            string pageName="page" + TaskID ;

            try
            {
                SetValue(this.tabControl1.TabPages[pageName].Controls[conName].Controls[1].Controls[0], "Text", strLog);
            }
            catch (System.Exception ex)
            {
                InvokeMethod(this, "ExportLog", new object[] { ex.Message });
            }
        }