예제 #1
0
        /// <summary>
        /// Query System Log by filters
        /// </summary>
        /// <param name="_logCode"></param>
        /// <param name="_logLevel"></param>
        /// <param name="_testTimeStart"></param>
        /// <param name="_testTimeEnd"></param>
        /// <returns></returns>
        public List <SysLog> GetSystemLogList(DateTime _testTimeStart)
        {
            if (SystemLogList.Count > 0)
            {
                SystemLogList.Clear();
            }

            try
            {
                foreach (var valLog in SystemLogBLL.SystemLogTable(_testTimeStart))
                {
                    SysLog systemlogtemp = new SysLog();

                    systemlogtemp.LogID          = valLog.LogId;
                    systemlogtemp.Operator       = valLog.Operator;
                    systemlogtemp.LogDescription = valLog.LogMessage;
                    systemlogtemp.LogTime        = valLog.OperateTime;

                    SystemLogList.Add(systemlogtemp);
                }
            }
            catch (Exception ex)
            {
                //LogHelper.ToLog("DBErr.txt", ex);
            }

            return(SystemLogList);
        }