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.
		
		
		
		
		
			
		
			
				
					
					
						
							180 lines
						
					
					
						
							5.0 KiB
						
					
					
				
			
		
		
	
	
							180 lines
						
					
					
						
							5.0 KiB
						
					
					
				using System; | 
						|
using System.Collections.Generic; | 
						|
using System.ComponentModel; | 
						|
using System.Drawing; | 
						|
 | 
						|
namespace Kingo.Plugin.BGSetting.Service | 
						|
{ | 
						|
    [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> | 
						|
        /// 图层数据来源 1国家监测图斑 2自主变更图斑 3无人机举证图斑 | 
						|
        /// </summary> | 
						|
        public string LayerSJLY { 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 string m_IsWRJ; | 
						|
        private string m_IsSelectFile; | 
						|
        private string m_IsNeedCreate; | 
						|
 | 
						|
        private bool layerIsChecked = true; | 
						|
 | 
						|
        public bool LayerIsChecked | 
						|
        { | 
						|
            get { return LayerSource == null || LayerSource.Count <= 0 ? false : layerIsChecked; } | 
						|
            set | 
						|
            { | 
						|
                layerIsChecked = value; | 
						|
                OnPropertyChanged("LayerIsChecked"); | 
						|
            } | 
						|
        } | 
						|
 | 
						|
        public string IsWRJ { get => m_IsWRJ; set => m_IsWRJ = value; } | 
						|
        public string IsSelectFile { get => m_IsSelectFile; set => m_IsSelectFile = value; } | 
						|
        public string IsNeedCreate { get => m_IsNeedCreate; set => m_IsNeedCreate = value; } | 
						|
 | 
						|
        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; } | 
						|
    } | 
						|
}
 | 
						|
 |