示例#1
0
        public ActiveRecordList <TActiveRecord> GetResults(bool useDefaultOrderBy)
        {
            var sql = GetSql();

            sql.Paging(ItemsPerPage, PageNum);
            var list = new ActiveRecordList <TActiveRecord>();

            ActiveRecordLoader.LoadRecords <TActiveRecord>(list, sql);
            return(list);
        }
示例#2
0
 public SavvyDataForm(Sql sql, SubformOptions options)
 {
     this.options    = options;
     this.recordList = new TActiveRecordList();
     this.recordList.LoadRecords(sql);
 }
示例#3
0
 public SavvyDataForm(ActiveRecordList <TActiveRecord> list, SubformOptions options)
 {
     this.options    = options;
     this.recordList = list;
 }
示例#4
0
 // methods
 /// <summary>
 /// Default constructor: Pass in an ActiveRecordList that will be used in the subform.
 /// </summary>
 /// <param name="list">The ActiveRecordList </param>
 public SavvyDataForm(TActiveRecordList list)
 {
     this.recordList = list;
 }
示例#5
0
文件: Export.cs 项目: cmcd74/SavvyCMS
 public static void ExportToExcel(ActiveRecordList <ActiveRecord> list, string filename)
 {
     ExportToExcel(list.innerList, filename);
 }