SysModuleView.cs
1.07 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
using Infrastructure;
using System.Collections.Generic;
namespace WebRepository
{
public class SysModuleView: TreeEntity
{
/// <summary>
/// 主页面URL
/// </summary>
/// <returns></returns>
public string Url { get; set; }
/// <summary>
/// 节点图标文件名称
/// </summary>
/// <returns></returns>
public string IconName { get; set; }
public bool Checked { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
public string Code { get; set; }
public int IsShow { get; set; }
/// <summary>
/// 模块中的元素
/// </summary>
public List<SysModuleElement> Elements { get; set; }
public static implicit operator SysModuleView(SysModule module)
{
return module.MapTo<SysModuleView>();
}
public static implicit operator SysModule(SysModuleView view)
{
return view.MapTo<SysModule>();
}
}
}