Example #1
0
 public string GetView(DataByPage datapage)
 {
     DataTable table = new DataTable();
     table.RowHead = this.rowHeah;
     table.RowText = this.rowText;
     table.DataReader = datapage.DataReader;
     string str = table.GetDataTable() + datapage.PageToolBar;
     datapage.Dispose();
     datapage = null;
     table = null;
     return str;
 }
Example #2
0
 public string GetView()
 {
     DataByPage page = new DataByPage();
     page.Sql = this.sql;
     page.GetRecordSetByPage();
     DataTable table = new DataTable();
     table.RowHead = this.rowHeah;
     table.RowText = this.rowText;
     table.DataReader = page.DataReader;
     string str = table.GetDataTable() + page.PageToolBar;
     page.Dispose();
     page = null;
     table = null;
     return str;
 }