/// <summary> /// 构建行(自定义统计行)(datarow) /// </summary> /// <param name="table"></param> protected virtual void BuildRows(QTable table, System.Data.DataTable dt, QCountRow countRow) { int index = 0; foreach (var obj in dt.Rows) { QLeafRow leafRow = new QLeafRow { Entity = obj }; table.Rows.AddRow(leafRow); index++; } countRow.SumCount = index; table.Rows.AddRow(countRow); }
/// <summary> /// 构建行(自定义统计行)(object) /// </summary> /// <param name="table"></param> protected virtual void BuildRows(QTable table, List<object> objList, QCountRow countRow) { int index = 0; foreach (object obj in objList) { QLeafRow leafRow = new QLeafRow { Entity = obj }; table.Rows.AddRow(leafRow); index++; } countRow.SumCount = index; table.Rows.AddRow(countRow); }