コード例 #1
0
        public void BindLogs()
        {
            DbQueryResult logs = EventLogs.GetLogs(this.GetOperationLogQuery());

            this.dlstLog1.DataSource = logs.Data;
            this.dlstLog1.DataBind();
            this.SetSearchControl();
            this.pager.TotalRecords = logs.TotalRecords;
        }
コード例 #2
0
ファイル: ManageLogs.aspx.cs プロジェクト: yuelinsoft/himedi
        public void BindLogs()
        {
            DbQueryResult logs = EventLogs.GetLogs(GetOperationLogQuery());

            dlstLog.DataSource = logs.Data;
            dlstLog.DataBind();
            SetSearchControl();
            pager.TotalRecords  = logs.TotalRecords;
            pager1.TotalRecords = logs.TotalRecords;
        }
コード例 #3
0
        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);
        }