using System.Collections.Generic; using System.ComponentModel; namespace Kingo.Plugin.YJJK.ModelEntity { public class RuleTableEntity : INotifyPropertyChanged { /// /// 表名 /// public string TableName { get; set; } /// /// 表中文名 /// public string TableAliasName { get; set; } /// /// 检查说明 /// public string CheckDescription { get; set; } /// /// 图层类型:点,线,面 /// public string Type { get; set; } /// /// 是否必须图层 /// public bool IsNecessary { get; set; } /// /// 要素代码 /// public string YSDM { get; set; } /// /// 层代码 /// public string CDM { get; set; } bool _IsChecked = false; /// /// 是否检查 /// public bool IsChecked { set { _IsChecked = value; if (PropertyChanged != null)//有改变 { PropertyChanged(this, new PropertyChangedEventArgs("IsChecked"));//对Name进行监听 } } get { return _IsChecked; } } public event PropertyChangedEventHandler PropertyChanged; public List Columns { get; set; } } /// /// 检查规则对应的表字段实体 /// public class RuleColumnEntity { /// /// 列名 /// public string ColumnName { get; set; } /// /// 字段说明 /// public string AliasName { get; set; } /// /// 字段是否可为空 /// public bool AllowDBNull { get; set; } /// /// 值是否唯一 /// public bool IsUnique { get; set; } /// /// 是否做非法字符检查 true:检查 false:不检查 /// public bool IllegalityCheck { get; set; } /// /// 字段类型 /// public string DataType { get; set; } /// /// 字段长度 /// public int MaxLength { get; set; } /// /// 字段精度 /// public int Precision { get; set; } /// /// 值域 /// public string Range { get; set; } /// /// 字典 /// public string DIC { get; set; } /// /// 当前字段值是否应该是椭球面积 true:是 false:不是 /// public bool IsEllipsoidArea { get; set; } /// /// 是否是扩展字段 /// public bool ExtendField { get; set; } /// /// 字段显示标注说明 /// public string ToolTip { get; set; } /// /// 字段名显示约束条件 /// public string Pic { get; set; } } }