tangxu
2024-10-22 6a07c4c846ffbb1e93afdf0260e123e4c145f419
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace DPumpHydr.WinFrmUI.Impeller
{
    /// <summary>
    /// 步骤树节点
    /// </summary>
    public class TreeStepNode
    {
        /// <summary>
        /// 数据的有效性
        /// </summary>
        public enum eDataState
        {
            错误 = 0,
            正确 = 1,
            未知 = 2
        }
 
        /// <summary>
        /// 步骤进度状态
        /// </summary>
        public enum eProgressState
        {
            未完成 = 0,
            正在进行 = 1,
            已完成 = 2
        }
 
        /// <summary>
        /// 唯一标识
        /// </summary>
        public long ID { get; set; }
        /// <summary>
        /// 父节点ID
        /// </summary>
        public long ParentID { get; set; }
        /// <summary>
        /// 显示文本
        /// </summary>
        public string Caption { get; set; }
        /// <summary>
        /// 步骤名:不对外显示
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 数据的有效性
        /// </summary>
        public eDataState DataState
        {
            get { return _dataState; }
            set { _dataState = value; }
        }
        private eDataState _dataState = eDataState.正确;
        /// <summary>
        /// 进度状态
        /// </summary>
        public eProgressState ProgressState
        {
            get { return _progressState; }
            set { _progressState = value; }
        }
        private eProgressState _progressState = eProgressState.未完成;
 
        /// <summary>
        /// 是否可选_如果设置为false则对应节点不能聚焦(默认是TRUE)
        /// </summary>
        public bool AllowSelect
        {
            get { return _allowSelect; }
            set { _allowSelect = value; }
        }
        private bool _allowSelect = true;
 
        /// <summary>
        /// 作为一种分组标识使用
        /// </summary>
        public string Group
        {
            get { return _group; }
            set { _group = value; }
        }
        private string _group = null;
 
        /// <summary>
        /// 是否只读(指控件)
        /// </summary>
        private bool _isReadOnly = false;
        public bool IsReadOnly
        {
            get { return _isReadOnly; }
            set { _isReadOnly = value; }
        }
 
 
 
 
 
        /// <summary>
        /// TAG
        /// </summary>
        public object Tag { get; set; }
 
 
    }
}