|
|
|
|
using KGIS.Framework.Platform;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Kingo.PluginServiceInterface.Model
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class BatchAttribute : INotifyPropertyChanged
|
|
|
|
|
{
|
|
|
|
|
private string _AttributeName;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 属性名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string AttributeName
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _AttributeName;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_AttributeName = value;
|
|
|
|
|
if (PropertyChanged != null)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged(this, new PropertyChangedEventArgs("AttributeName"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _AttributeAliasName;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 属性别名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string AttributeAliasName
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _AttributeAliasName;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_AttributeAliasName = value;
|
|
|
|
|
if (PropertyChanged != null)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged(this, new PropertyChangedEventArgs("AttributeAliasName"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _AttributeValue;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 属性值
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string AttributeValue
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _AttributeValue;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_AttributeValue = value;
|
|
|
|
|
if (PropertyChanged != null)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged(this, new PropertyChangedEventArgs("AttributeValue"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsCheck { get; set; }
|
|
|
|
|
|
|
|
|
|
private List<DataDicTionary> _DicData;
|
|
|
|
|
public List<DataDicTionary> DicData
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _DicData;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_DicData = value;
|
|
|
|
|
if (PropertyChanged != null)
|
|
|
|
|
{
|
|
|
|
|
PropertyChanged(this, new PropertyChangedEventArgs("DicData"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string _DisplayPath;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 显示字段(初始化字典绑定)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DisplayMemberPath
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(_DisplayPath))
|
|
|
|
|
return "NAME";
|
|
|
|
|
return _DisplayPath;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_DisplayPath = value;
|
|
|
|
|
//if (PropertyChanged != null)
|
|
|
|
|
//{
|
|
|
|
|
// PropertyChanged(this, new PropertyChangedEventArgs("DisplayMemberPath"));
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private string _ValuePath;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 值字段(初始化字典绑定)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ValuePath
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(_ValuePath))
|
|
|
|
|
return "CODE";
|
|
|
|
|
return _ValuePath;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_ValuePath = value;
|
|
|
|
|
//if (PropertyChanged != null)
|
|
|
|
|
//{
|
|
|
|
|
// PropertyChanged(this, new PropertyChangedEventArgs("ValuePath"));
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;// = delegate { };
|
|
|
|
|
|
|
|
|
|
public enumPropertyType PropertyType { get; set; }
|
|
|
|
|
|
|
|
|
|
public enum enumPropertyType
|
|
|
|
|
{
|
|
|
|
|
Default = 0,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文本框
|
|
|
|
|
/// </summary>
|
|
|
|
|
TextBox = 1,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 下拉框
|
|
|
|
|
/// </summary>
|
|
|
|
|
ComboBox = 2,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 复选框
|
|
|
|
|
/// </summary>
|
|
|
|
|
CheckBox = 3,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 日期控件
|
|
|
|
|
/// </summary>
|
|
|
|
|
DatePicker = 4,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数字控件
|
|
|
|
|
/// </summary>
|
|
|
|
|
SpinEdit = 5,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 带按钮的文本框
|
|
|
|
|
/// </summary>
|
|
|
|
|
ButtonEdit = 6,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 带下拉框的文本框
|
|
|
|
|
/// </summary>
|
|
|
|
|
AutoCompleteBox = 7,
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 附件的文本选择框
|
|
|
|
|
/// </summary>
|
|
|
|
|
ButtonEditFJ = 8
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|