年度变更建库软件5.0版本
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.

159 lines
3.7 KiB

6 months ago
using System;
using System.Collections.Generic;
namespace Kingo.Framework.LayerStyleConvert.XSDClass
{
public class ItemInfo
{
public double CurrentVersion { get; set; }
public int Id { get; set; }
public string Name { get; set; }
public string Type { get; set; }
public string Description { get; set; }
public string CopyrightText { get; set; }
public bool DefaultVisibility { get; set; }
public EditFieldsInfo EditFieldsInfo { get; set; }
public OwnershipBasedAccessControlForFeatures OwnershipBasedAccessControlForFeatures { get; set; }
public bool SyncCanReturnChanges { get; set; }
public List<Relationship> Relationships { get; set; }
public bool IsDataVersioned { get; set; }
public bool SupportsRollbackOnFailureParameter { get; set; }
public bool SupportsStatistics { get; set; }
public bool SupportsAdvancedQueries { get; set; }
public esriGeometryType GeometryType { get; set; }
public int MinScale { get; set; }
public int MaxScale { get; set; }
public Extent Extent { get; set; }
public DrawingInfo DrawingInfo { get; set; }
public bool HasM { get; set; }
public bool HasZ { get; set; }
public bool AllowGeometryUpdates { get; set; }
public bool HasAttachments { get; set; }
public string HtmlPopupType { get; set; }
public string ObjectIdField { get; set; }
public string GlobalIdField { get; set; }
public string DisplayField { get; set; }
public string TypeIdField { get; set; }
public List<Field> Fields { get; set; }
public List<UniqueType> Types { get; set; }
// Token: 0x17000020 RID: 32
// (get) Token: 0x0600003F RID: 63 RVA: 0x00002430 File Offset: 0x00000630
// (set) Token: 0x06000040 RID: 64 RVA: 0x00002447 File Offset: 0x00000647
public List<Template> Templates { get; set; }
// Token: 0x17000021 RID: 33
// (get) Token: 0x06000041 RID: 65 RVA: 0x00002450 File Offset: 0x00000650
// (set) Token: 0x06000042 RID: 66 RVA: 0x00002467 File Offset: 0x00000667
public int MaxRecordCount { get; set; }
// Token: 0x17000022 RID: 34
// (get) Token: 0x06000043 RID: 67 RVA: 0x00002470 File Offset: 0x00000670
// (set) Token: 0x06000044 RID: 68 RVA: 0x00002487 File Offset: 0x00000687
public string SupportedQueryFormats { get; set; }
// Token: 0x17000023 RID: 35
// (get) Token: 0x06000045 RID: 69 RVA: 0x00002490 File Offset: 0x00000690
// (set) Token: 0x06000046 RID: 70 RVA: 0x000024A7 File Offset: 0x000006A7
public string Capabilities { get; set; }
// Token: 0x06000047 RID: 71 RVA: 0x000024B0 File Offset: 0x000006B0
public ItemInfo()
{
this.Id = 1;
this.CurrentVersion = 10.22;
this.Name = "";
this.Type = "Feature Layer";
this.Description = "";
this.CopyrightText = "";
this.DefaultVisibility = true;
this.SyncCanReturnChanges = false;
this.Relationships = new List<Relationship>();
this.SupportsRollbackOnFailureParameter = true;
this.SupportsStatistics = true;
this.SupportsAdvancedQueries = true;
this.GeometryType = esriGeometryType.esriGeometryPolygon;
this.Extent = new Extent();
this.DrawingInfo = new DrawingInfo();
this.AllowGeometryUpdates = true;
this.HtmlPopupType = "esriServerHTMLPopupTypeAsHTMLText";
this.ObjectIdField = "OBJECTID";
this.DisplayField = "";
this.TypeIdField = "";
this.Fields = new List<Field>();
this.Types = new List<UniqueType>();
this.Templates = new List<Template>();
this.MaxRecordCount = 1000;
this.SupportedQueryFormats = "JSON, AMF";
this.Capabilities = "Query";
}
public string ToJson()
{
return CommonMethod.SerializerToJson(this);
}
public static ItemInfo FromJson(string json)
{
return CommonMethod.DeSerializerFromJson<ItemInfo>(json);
}
}
}