using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kingo.Plugin.EngineEditor.Model
{
public class DataDicTionary : INotifyPropertyChanged
{
public override string ToString()
{
return CODE + "-" + NAME;
}
///
/// 序号 - 主键
///
public virtual int ID
{
get;
set;
}
///
/// 字典项编码
///
public virtual string CODE
{
get;
set;
}
public virtual int ClassID
{
get;
set;
}
///
/// 字典项名称
///
public virtual string NAME
{
get;
set;
}
///
/// 字典项名称
///
public virtual string DisplayName
{
get;
set;
}
///
/// 排序
///
public virtual decimal? SORT
{
get;
set;
}
///
/// 字典项描述
///
public virtual string REMARK
{
get;
set;
}
public virtual object Description
{
get;
set;
}
///
/// 父节点ID
///
public virtual decimal? PID
{
get;
set;
}
///
/// 字典项归属ID
///
public virtual string OWNERDIC
{
get;
set;
}
public List SubDic { get; set; }
private bool _isChecked = false;
public virtual bool IsChecked
{
set
{
_isChecked = value;
if (PropertyChanged != null)//有改变
{
PropertyChanged(this, new PropertyChangedEventArgs("IsChecked"));//对Name进行监听
}
}
get
{
return _isChecked;
}
}
public event PropertyChangedEventHandler PropertyChanged;
}
}