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