public void BindLogs() { DbQueryResult logs = EventLogs.GetLogs(this.GetOperationLogQuery()); this.dlstLog1.DataSource = logs.Data; this.dlstLog1.DataBind(); this.SetSearchControl(); this.pager.TotalRecords = logs.TotalRecords; }
public void BindLogs() { DbQueryResult logs = EventLogs.GetLogs(GetOperationLogQuery()); dlstLog.DataSource = logs.Data; dlstLog.DataBind(); SetSearchControl(); pager.TotalRecords = logs.TotalRecords; pager1.TotalRecords = logs.TotalRecords; }
private DataGridViewModel <Dictionary <string, object> > GetDataList(OperationLogQuery query) { DataGridViewModel <Dictionary <string, object> > dataGridViewModel = new DataGridViewModel <Dictionary <string, object> >(); if (query != null) { DbQueryResult logs = EventLogs.GetLogs(query); dataGridViewModel.rows = DataHelper.DataTableToDictionary(logs.Data); dataGridViewModel.total = logs.TotalRecords; foreach (Dictionary <string, object> row in dataGridViewModel.rows) { } } return(dataGridViewModel); }