CheckBoxItem.cs
1.38 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
using System;
using System.Collections.Generic;
namespace Hh.Mes.POJO.ViewModel
{
public class CheckBoxItem
{
/// <summary>
/// 复选框id
/// </summary>
public string Id { set; get; } = Guid.NewGuid().ToString();
/// <summary>
/// 复选框值
/// </summary>
public string Value { set; get; }
/// <summary>
/// 复选框文本内容
/// </summary>
public string Text { set; get; }
/// <summary>
/// 是否选中
/// </summary>
public bool Checked { set; get; }
/// <summary>
/// 是否可用
/// </summary>
public bool Disabled { set; get; }
/// <summary>
/// 按钮样式
/// </summary>
public string BtnClass { get; set; }
/// <summary>
/// 图标Unicode
/// </summary>
public string Icon { get; set; }
/// <summary>
/// 排序
/// </summary>
public int Sort { set; get; }
}
public class AreaBtnModel
{
public AreaBtnModel()
{
CheckBoxItems = new List<CheckBoxItem>();
}
/// <summary>
/// 区域数值目前只能是1、2或3
/// </summary>
public string Area { get; set; }
public ICollection<CheckBoxItem> CheckBoxItems { get; set; }
}
}