|
|
|
|
using KGIS.Framework.Utils;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Kingo.Plugin.MakeTaskPackage.Model
|
|
|
|
|
{
|
|
|
|
|
[XmlRoot("config")]
|
|
|
|
|
public class LayerConfig
|
|
|
|
|
{
|
|
|
|
|
public LayerConfig()
|
|
|
|
|
{
|
|
|
|
|
layers = new Layers();
|
|
|
|
|
AnalysisCig = new AnalysisConfig();
|
|
|
|
|
CompAnalyse = new CompareAnalyse();
|
|
|
|
|
}
|
|
|
|
|
[XmlElement(ElementName = "layer")]
|
|
|
|
|
public Layers layers { get; set; }
|
|
|
|
|
[XmlElement(ElementName = "statistics")]
|
|
|
|
|
public AnalysisConfig AnalysisCig { get; set; }
|
|
|
|
|
[XmlElement(ElementName = "compareAnalyse")]
|
|
|
|
|
public CompareAnalyse CompAnalyse { get; set; }
|
|
|
|
|
public string ToXML()
|
|
|
|
|
{
|
|
|
|
|
string Str = SerializeAPI.SerializeToXML<LayerConfig>(this);
|
|
|
|
|
return Str;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public class Layers
|
|
|
|
|
{
|
|
|
|
|
public Layers()
|
|
|
|
|
{
|
|
|
|
|
LayerInfo = new List<LayerInfo>();
|
|
|
|
|
}
|
|
|
|
|
[XmlElement(ElementName = "MapLayer")]
|
|
|
|
|
public List<LayerInfo> LayerInfo { get; set; }
|
|
|
|
|
}
|
|
|
|
|
public class LayerInfo
|
|
|
|
|
{
|
|
|
|
|
public LayerInfo()
|
|
|
|
|
{
|
|
|
|
|
LayerFields = new List<FieldInfo>();
|
|
|
|
|
}
|
|
|
|
|
[XmlAttribute("layerName")]
|
|
|
|
|
public string LayerName { get; set; }
|
|
|
|
|
[XmlAttribute("layerType")]
|
|
|
|
|
public string LayerType { get; set; }
|
|
|
|
|
[XmlAttribute("mapGroupIndex")]
|
|
|
|
|
public int GroupIndex { get; set; }
|
|
|
|
|
[XmlAttribute("mapGroupName")]
|
|
|
|
|
public string GroupName { get; set; }
|
|
|
|
|
[XmlAttribute("layerIndex")]
|
|
|
|
|
public int LayerIndex { get; set; }
|
|
|
|
|
[XmlAttribute("layerUrl")]
|
|
|
|
|
public string LayerUrl { get; set; }
|
|
|
|
|
[XmlAttribute("queryUrl")]
|
|
|
|
|
public string queryUrl { get; set; }
|
|
|
|
|
[XmlAttribute("isVisible")]
|
|
|
|
|
public bool IsVisible { get; set; }
|
|
|
|
|
[XmlAttribute("tableName")]
|
|
|
|
|
public string TableName { get; set; }
|
|
|
|
|
[XmlAttribute("isSurvey")]
|
|
|
|
|
public bool IsSurvey { get; set; }
|
|
|
|
|
[XmlAttribute("primaryKey")]
|
|
|
|
|
public string PrimaryKey { get; set; }
|
|
|
|
|
[XmlAttribute("headerField")]
|
|
|
|
|
public string HeaderField { get; set; }
|
|
|
|
|
[XmlAttribute("secondField")]
|
|
|
|
|
public string SecondField { get; set; }
|
|
|
|
|
[XmlAttribute("layerDbName")]
|
|
|
|
|
public string LayerDbName { get; set; }
|
|
|
|
|
[XmlAttribute("SFJZ")]
|
|
|
|
|
public string SFJZ { get; set; }
|
|
|
|
|
[XmlAttribute("layerMinScale")]
|
|
|
|
|
public int LayerMinScale { get; set; }
|
|
|
|
|
[XmlAttribute("layerMaxScale")]
|
|
|
|
|
public int LayerMaxScale { get; set; }
|
|
|
|
|
[XmlAttribute("layerFillColor")]
|
|
|
|
|
public string layerFillColor { get; set; }
|
|
|
|
|
[XmlAttribute("layerBorderColor")]
|
|
|
|
|
public string layerBorderColor { get; set; }
|
|
|
|
|
[XmlAttribute("LayerLableColor")]
|
|
|
|
|
public string LayerLableColor { get; set; }
|
|
|
|
|
[XmlAttribute("layerBorderWidth")]
|
|
|
|
|
public double layerBorderWidth { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("LayerBorderStyle")]
|
|
|
|
|
public double LayerBorderStyle { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("layerLabelName")]
|
|
|
|
|
public string layerLabelName { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("queryTableName")]
|
|
|
|
|
public string queryTableName { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("TBMJ")]
|
|
|
|
|
public string TBMJ { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[XmlElement(ElementName = "LayerField")]
|
|
|
|
|
public List<FieldInfo> LayerFields { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public class FieldInfo
|
|
|
|
|
{
|
|
|
|
|
[XmlAttribute("Name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
[XmlAttribute("Alias")]
|
|
|
|
|
public string Alias { get; set; }
|
|
|
|
|
[XmlAttribute("Index")]
|
|
|
|
|
public int Index { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class CompareAnalyse
|
|
|
|
|
{
|
|
|
|
|
public CompareAnalyse()
|
|
|
|
|
{
|
|
|
|
|
Groups = new List<AnalysisConfig>();
|
|
|
|
|
}
|
|
|
|
|
[XmlElement(ElementName = "analyseGroup")]
|
|
|
|
|
public List<AnalysisConfig> Groups { get; set; }
|
|
|
|
|
}
|
|
|
|
|
public class AnalysisConfig
|
|
|
|
|
{
|
|
|
|
|
public AnalysisConfig()
|
|
|
|
|
{
|
|
|
|
|
Items = new List<AnalysisInfo>();
|
|
|
|
|
}
|
|
|
|
|
[XmlAttribute("name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
[XmlElement(ElementName = "item")]
|
|
|
|
|
public List<AnalysisInfo> Items { get; set; }
|
|
|
|
|
}
|
|
|
|
|
public class AnalysisInfo
|
|
|
|
|
{
|
|
|
|
|
[XmlAttribute("name")]
|
|
|
|
|
public string name { get; set; }
|
|
|
|
|
[XmlAttribute("dbPath")]
|
|
|
|
|
public string dbPath { get; set; }
|
|
|
|
|
[XmlAttribute("tableName")]
|
|
|
|
|
public string tableName { get; set; }
|
|
|
|
|
[XmlAttribute("jbnt")]
|
|
|
|
|
public string jbnt { get; set; }
|
|
|
|
|
[XmlAttribute("price")]
|
|
|
|
|
public string price { get; set; }
|
|
|
|
|
[XmlAttribute("values")]
|
|
|
|
|
public string values { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|