public override List<EventLogEntry> GetEventLogs(int pageindex, int pagesize, EventLogQuery query, out int total)
        {
            List<EventLogEntry> eventlist = new List<EventLogEntry>();
            SqlParameter p;
            if (pageindex != -1)
            {
                using (IDataReader reader = CommonPageSql.GetDataReaderByPager(_con, pageindex, pagesize, query, out p))
                {
                    while (reader.Read())
                    {
                        eventlist.Add(PopulateEventLogEntry(reader));
                    }
                }
                total = int.Parse(p.Value.ToString());
            }

            else
            {
                using (IDataReader reader = CommonSelectSql.SelectGetReader(_con, pagesize, query))
                {
                    while (reader.Read())
                    {
                        eventlist.Add(PopulateEventLogEntry(reader));
                    }
                }
                total = eventlist.Count();
            }
            return eventlist;
        }
Example #2
0
 public static List<EventLogEntry> GetList(int pageindex, int pagesize, EventLogQuery query, out int total)
 {
     return CommonDataProvider.Instance().GetEventLogs(pageindex, pagesize, query, out total);
 }
Example #3
0
 public static List <EventLogEntry> GetList(int pageindex, int pagesize, EventLogQuery query, out int total)
 {
     return(CommonDataProvider.Instance().GetEventLogs(pageindex, pagesize, query, out total));
 }
Example #4
0
 public abstract List<EventLogEntry> GetEventLogs(int pageindex, int pagesize, EventLogQuery query, out int total);