using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Kingo.Plugin.DataLoad.Model
{
    /// 
    /// 检查规则对应的表结构实体
    /// 
    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; }
    }
}