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.
170 lines
4.5 KiB
170 lines
4.5 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.ComponentModel; |
|
using System.Drawing; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
|
|
namespace Kingo.Plugin.ProofManager.Common |
|
{ |
|
[Serializable] |
|
public class LayerEntity : INotifyPropertyChanged |
|
{ |
|
/// <summary> |
|
/// 主键 |
|
/// </summary> |
|
public string PrimaryKey { get; set; } |
|
/// <summary> |
|
/// 一级标题 |
|
/// </summary> |
|
public string HeaderField { get; set; } |
|
/// <summary> |
|
/// 二级标题 |
|
/// </summary> |
|
public string SecondField { get; set; } |
|
public string LayyerGroup { get; set; } |
|
public int LayyerGroupType { get; set; } |
|
/// <summary> |
|
/// 图层名称 |
|
/// </summary> |
|
public string LayerName { get; set; } |
|
/// <summary> |
|
/// 图层数据源 |
|
/// </summary> |
|
public List<string> LayerSource { get; set; } |
|
/// <summary> |
|
/// 图层描述 |
|
/// </summary> |
|
public string LayerCaption { get; set; } |
|
/// <summary> |
|
/// 图层类型 |
|
/// </summary> |
|
public LayerTypeEnum LayerType { get; set; } |
|
/// <summary> |
|
/// 图层图标路径 |
|
/// </summary> |
|
public string LayerIconPath { get; set; } |
|
/// <summary> |
|
/// 图层显示比例尺 |
|
/// </summary> |
|
public int LayerMinScale { get; set; } |
|
/// <summary> |
|
/// 图层显示比例尺 |
|
/// </summary> |
|
public int LayerMaxScale { get; set; } |
|
/// <summary> |
|
/// 填充颜色 |
|
/// </summary> |
|
public Color LayerFillColor { get; set; } |
|
/// <summary> |
|
/// 边框颜色 |
|
/// </summary> |
|
public Color LayerBorderColor { get; set; } |
|
/// <summary> |
|
/// 边框宽度 |
|
/// </summary> |
|
public double LayerBorderWidth { get; set; } |
|
|
|
public int LayerBorderStyle { get; set; } |
|
/// <summary> |
|
/// 标签大小 |
|
/// </summary> |
|
public string LayerLableSize { get; set; } |
|
/// <summary> |
|
/// 标签名称 |
|
/// </summary> |
|
public string LayerLableName { get; set; } |
|
/// <summary> |
|
/// 标签颜色 |
|
/// </summary> |
|
public Color LayerLableColor { get; set; } |
|
/// <summary> |
|
/// 标签显示比例尺 |
|
/// </summary> |
|
public int LayerLableMinScale { get; set; } |
|
/// <summary> |
|
/// 标签显示比例尺 |
|
/// </summary> |
|
public int LayerLableMaxScale { get; set; } |
|
|
|
public System.Windows.Media.ImageSource ImageSource { get; set; } |
|
|
|
/// <summary> |
|
/// 图层路径 |
|
/// </summary> |
|
public string LayerPath { get; set; } |
|
|
|
/// <summary> |
|
/// 是否举证 |
|
/// </summary> |
|
public string SFJZ { get; set; } |
|
|
|
public int LayerIndex { get; set; } |
|
|
|
public bool LayerIsVisble { get; set; } |
|
|
|
public List<LayerField> Fields { get; set; } |
|
|
|
private bool layerIsChecked = true; |
|
|
|
public bool LayerIsChecked |
|
{ |
|
get { return LayerSource == null || LayerSource.Count <= 0 ? false : layerIsChecked; } |
|
set |
|
{ |
|
layerIsChecked = value; |
|
OnPropertyChanged("LayerIsChecked"); |
|
} |
|
} |
|
|
|
public event PropertyChangedEventHandler PropertyChanged; |
|
|
|
/// <summary> |
|
/// 属性改变时触发事件 |
|
/// </summary> |
|
/// <param name="propertyName">Property that changed.</param> |
|
private void OnPropertyChanged(string propertyName) |
|
{ |
|
PropertyChangedEventHandler handler = PropertyChanged; |
|
if (null != handler) |
|
{ |
|
handler.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
|
} |
|
|
|
} |
|
} |
|
|
|
/// <summary> |
|
/// 数据源 |
|
/// </summary> |
|
public class LayerSourceEntity |
|
{ |
|
public string LayerSourceName { get; set; } |
|
public string LayerSourcePath { get; set; } |
|
} |
|
|
|
public enum LayerTypeEnum |
|
{ |
|
矢量 = 0, |
|
影像 = 1 |
|
} |
|
public enum LayerGroupType |
|
{ |
|
基础资料 = 0, |
|
调绘图斑 = 1 |
|
} |
|
[Serializable] |
|
public class LayerField |
|
{ |
|
public string Name { get; set; } |
|
|
|
public string Alias { get; set; } |
|
|
|
public string FromValue { get; set; } |
|
|
|
public int Index { get; set; } |
|
|
|
public string FiledType { get; set; } |
|
} |
|
}
|
|
|