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