-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEasyuiHelper.cs
More file actions
127 lines (126 loc) · 3.08 KB
/
EasyuiHelper.cs
File metadata and controls
127 lines (126 loc) · 3.08 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeGenerate.Common
{
public class datagrid
{
public datagrid(int total, dynamic rows)
{
this.total = total;
this.rows = rows;
}
public datagrid(int total, dynamic cols, dynamic rows)
{
this.total = total;
this.cols = cols;
this.rows = rows;
}
/// <summary>
/// 总数
/// </summary>
public int total;
/// <summary>
/// 列数据集
/// </summary>
public dynamic cols;
/// <summary>
/// 行数据集
/// </summary>
public dynamic rows;
}
public class cols
{
public cols(string field, string title, string align, int width)
{
this.field = field;
this.title = title;
this.align = align;
this.width = width;
}
public string field;
public string title;
public string align;
public int width;
}
public class treegrid
{
/// <summary>
/// 主键
/// </summary>
public string id;
/// <summary>
/// 显示内容
/// </summary>
public string text;
/// <summary>
/// 图标
/// </summary>
public string iconCls;
/// <summary>
/// 当前是展开还是收缩的状态
/// </summary>
public string state;
public string Remark;
/// <summary>
/// 子节点集合
/// </summary>
public List<treegrid> children = new List<treegrid>();
}
public class Tree
{
/// <summary>
/// 主键
/// </summary>
public string id;
/// <summary>
/// 显示内容
/// </summary>
public string text;
/// <summary>
/// 图标
/// </summary>
public string iconCls;
/// <summary>
/// 是否被选中,checked为C#关键字,所以前面加@
/// </summary>
public bool @checked = false;
/// <summary>
/// 当前是展开还是收缩的状态
/// </summary>
public string state;
/// <summary>
/// 子节点集合
/// </summary>
public List<Tree> children = new List<Tree>();
public string attributes { get; set; }
}
public class combobox
{
public string id { set; get; }
public string text { set; get; }
public bool selected { set; get; }
}
public class charts
{
public charts(string label, string value)
{
this.label = label;
this.value = value;
}
public string label;
public string value;
}
public class linecharts
{
public linecharts(string label, string value)
{
this.label = label;
this.value = value;
}
public string label;
public string value;
}
}