You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.1 KiB
78 lines
2.1 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
using Kingo.Plugin.MapView.Enum; |
|
|
|
namespace Kingo.Plugin.MapView.Model |
|
{ |
|
/// <summary> |
|
/// 属性联动配置类 |
|
/// </summary> |
|
public class Linkage |
|
{ |
|
/// <summary> |
|
/// 源属性名 |
|
/// </summary> |
|
public string SourcePropertyName { get; set; } |
|
/// <summary> |
|
/// 目标属性名 |
|
/// </summary> |
|
public string TargetPropertyName { get; set; } |
|
/// <summary> |
|
/// 源属性名 |
|
/// </summary> |
|
public string SourcePropertyAliasName { get; set; } |
|
/// <summary> |
|
/// 目标属性名 |
|
/// </summary> |
|
public string TargetPropertyAliasName { get; set; } |
|
/// <summary> |
|
/// 联动类型 |
|
/// </summary> |
|
public EnumLinkageType LinkageType { get; set; } |
|
|
|
private string _DisplayPath; |
|
/// <summary> |
|
/// 显示字段(初始化字典绑定) |
|
/// </summary> |
|
public string DisplayMemberPath |
|
{ |
|
get |
|
{ |
|
if (string.IsNullOrWhiteSpace(_DisplayPath)) |
|
return "NAME"; |
|
return _DisplayPath; |
|
} |
|
set |
|
{ |
|
_DisplayPath = value; |
|
} |
|
} |
|
private string _ValuePath; |
|
/// <summary> |
|
/// 值字段(初始化字典绑定) |
|
/// </summary> |
|
public string ValuePath |
|
{ |
|
get |
|
{ |
|
if (string.IsNullOrWhiteSpace(_ValuePath)) |
|
return "CODE"; |
|
return _ValuePath; |
|
} |
|
set |
|
{ |
|
_ValuePath = value; |
|
} |
|
} |
|
/// <summary> |
|
/// 如果是下拉框,是否需要分组 |
|
/// </summary> |
|
public bool IsGroup { get; set; } |
|
public bool IsReadOnly { get; set; } |
|
public string SourcePropertyValue { get; set; } |
|
public string TargetPropertyValue { get; set; } |
|
} |
|
}
|
|
|