duheng
2024-07-18 7bf79c6515f27ba9be8d2b3fb4e3ceae5718e3e5
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
using System.ComponentModel.DataAnnotations;
 
namespace HStation.WinFrmUI
{
    /// <summary>
    /// 模块枚举
    /// </summary>
    public enum eModular
    {
        [Display(Name = "未知")]
        Unknow = -1,
 
        [Display(Name = "权限")]
        Auth = 0,
 
        [Display(Name = "基础")]
        Basic = 1,
 
        [Display(Name = "资产")]
        Assets = 2,
 
        [Display(Name = "模型")]
        Model = 3,
 
        [Display(Name = "计算")]
        TheoryCalc = 4,
 
        [Display(Name = "设置")]
        Setting = 99,
 
        [Display(Name = "帮助")]
        Helper = 100,
    }
 
    /// <summary>
    /// 接口标识
    /// </summary>
    public class SurfaceGuid
    {
        public SurfaceGuid()
        { }
 
        public SurfaceGuid(eModular modular, string function)
        {
            this.Modular = modular;
            this.Function = function;
        }
 
        public eModular Modular { get; set; }
        public string Function { get; set; }
        public string TagName { get; set; }
 
        public override string ToString()
        {
            return $"{(int)Modular}#{Function}#{TagName}";
        }
    }
}