duheng
2024-04-22 a549072a040749f7c732c83d2d0f138614ac08e5
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
using System.ComponentModel.DataAnnotations;
 
namespace IStation.WinFrmUI
{
    /// <summary>
    /// 模块枚举
    /// </summary>
    public enum eModular
    {
        [Display(Name = "基础数据")]
        Basic = 0,
 
        [Display(Name = "曲线导入")]
        Impor = 1,
 
        [Display(Name = "曲线编辑")]
        Edit = 2,
 
        [Display(Name = "曲线分析")]
        Analy = 3,
 
        [Display(Name = "定总量")]
        CalcErQu1 = 4,
 
        [Display(Name = "定水位")]
        CalcErQu2 = 5,
 
        [Display(Name = "历史方案")]
        PrjHistory = 6
    }
 
 
    /// <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}";
        }
    }
}