z8018
2 天以前 d8dc91f9c1fece5711e38edd1b1274cb9e579015
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEA_Core
{
    // 定义一个泛型类PageGridData,用于存储分页数据
    public class PageGridData<T>
    {
        // 总记录数
        public int Total { get; set; }
        // 数据列表
        public List<T> Rows { get; set; }
        // 汇总数据
        public object Summary { get; set; }
 
        // 无参构造函数
        public PageGridData()
        {
 
        }
 
        // 带参构造函数,初始化总记录数和数据列表
        public PageGridData(int total, List<T> rows)
        {
            Total = total;
            Rows = rows;
        }
    }
}