MenuOperation.cs
3.03 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
128
129
130
131
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HHECS.Model.Entities
{
[Table("wcsmenuoperation")]
public class MenuOperation : BaseModel
{
/// <summary>
/// 菜单名
/// </summary>
private string menuName;
public string MenuName
{
get { return menuName; }
set
{
menuName = value;
HandlerPropertyChanged("MenuName");
}
}
/// <summary>
/// 父
/// </summary>
private int? parentId;
public int? ParentId
{
get { return parentId; }
set
{
parentId = value;
HandlerPropertyChanged("ParentId");
}
}
/// <summary>
/// 创建路径
/// </summary>
private string url;
public string Url
{
get { return url; }
set { url = value; HandlerPropertyChanged("Url"); }
}
/// <summary>
/// 菜单类型
/// </summary>
private string menuType;
public string MenuType
{
get { return menuType; }
set { menuType = value; HandlerPropertyChanged("MenuType"); }
}
public bool Visible { get; set; }
/// <summary>
/// 权限值
/// </summary>
private string perms;
public string Perms
{
get { return perms; }
set { perms = value; HandlerPropertyChanged("Perms"); }
}
/// <summary>
/// 备注
/// </summary>
private string remark;
public string Remark
{
get { return remark; }
set { remark = value; HandlerPropertyChanged("Remark"); }
}
//获取子菜单
private List<MenuOperation> children;
public List<MenuOperation> Children
{
get
{
if (children == null)
{
children = new List<MenuOperation>();
}
return children;
}
set { children = value; }
}
/// <summary>
/// 图标
/// </summary>
public string Icon { get; set; }
/// <summary>
/// 顺序
/// </summary>
private int? orderNum;
public int? OrderNum
{
get { return orderNum; }
set { orderNum = value; HandlerPropertyChanged("OrderNum"); }
}
/// <summary>
/// 对应角色是否有权限
/// </summary>
private bool hasPerm;
[Editable(false)]
public bool HasPerm
{
get { return hasPerm; }
set { hasPerm = value; HandlerPropertyChanged("HasPerm"); }
}
}
}