clsmapqueryenv.cs.svn-base

来自「以构建的方式来实现对通用的查询统计」· SVN-BASE 代码 · 共 70 行

SVN-BASE
70
字号
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
using System.Collections;
using ESRI.ArcGIS.Controls;

namespace dist.hb.EnvQueryStat.Query
{
  public delegate void MsgHandler(object sender, EventArgs e); 

  public enum MapQueryMethod
  {
    DRAW = 1,//在地图上画几何体选择要素
    SELECT = 2,//通过现有图层的要素来选择要查询的几何体
    CODE = 3,//通过代码来选择要查询的几何体
  }

  public enum MAPDRAW
  {
    MAPDRAW_POINT = 1,//"点";
    MAPDRAW_LINE = 2,//"线";
    MAPDRAW_POLYGON = 3,//"多边形";
    MAPDRAW_RECT = 4,//"矩形";
    MAPDRAW_CIRCLE = 5,//"圆";
  }

  public enum UnitType
  {
    Map = 1,//地图
    Screen =2,//屏幕
  }

  //地图查询环境
  public class clsMapQueryEnv
  {
    public string GUID;
    public clsMapQueryEnv()
    {
      GUID = Guid.NewGuid().ToString();
      arrayList = null;
      WorkForm = null;
      DbConn = null;
      MapControl = null;
      BufferR = 0;
      IsAddSelectionOnMap = true;
      IsReturn = true;
      IsSaveCodeToDb = true;
    }
    public MapQueryMethod MapQueryMethod;
    public MAPDRAW MapDraw;
    public UnitType unitType;
    public string QueryLayer;
    public string SpacialField;
    public string SelLayer;//选择的图层,通过该图层的要素来查询目标对象
    public Form WorkForm;//搜索后要返回的窗体
    public OleDbConnection DbConn;
    public IMapControl4 MapControl;
    public bool IsAddSelectionOnMap;//是否将查询结果以选择集的形式保存起来
    public bool IsReturn;//简单查询后是否立即返回
    public double BufferR;
    public ArrayList arrayList;//保存选择的编码类别
    public bool IsSaveCodeToDb;//

    public MsgHandler MsgProc;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?