Exemple #1
0
        public frmSheetMetaData(IWorkspace workSpace,OracleCommand oraCmd)
        {
            m_textBoxActive = new List<TextBox>();
            m_labelActive = new List<Label>();
            m_customField = new List<string>();

            InitializeComponent();
            m_textBox = new TextBox[9];
            m_textBox[0] = textBox24;
            m_textBox[1] = textBox18;
            m_textBox[2] = textBox20;
            m_textBox[3] = textBox16;
            m_textBox[4] = textBox15;
            m_textBox[5] = textBox17;
            m_textBox[6] = textBox21;
            m_textBox[7] = textBox19;
            m_textBox[8] = textBox14;

            m_label = new Label[9];
            m_label[0] = label26;
            m_label[1] = label20;
            m_label[2] = label25;
            m_label[3] = label18;
            m_label[4] = label17;
            m_label[5] = label19;
            m_label[6] = label24;
            m_label[7] = label21;
            m_label[8] = label16;

            this.m_workSpace = workSpace;
            m_gdata = new GDBData(this.m_workSpace);
            m_oraCmd = oraCmd;
            InitCustom();
        }
Exemple #2
0
        public frmSheetMetaData(IWorkspace workSpace, OracleCommand oraCmd)
        {
            m_textBoxActive = new List <TextBox>();
            m_labelActive   = new List <Label>();
            m_customField   = new List <string>();

            InitializeComponent();
            m_textBox    = new TextBox[9];
            m_textBox[0] = textBox24;
            m_textBox[1] = textBox18;
            m_textBox[2] = textBox20;
            m_textBox[3] = textBox16;
            m_textBox[4] = textBox15;
            m_textBox[5] = textBox17;
            m_textBox[6] = textBox21;
            m_textBox[7] = textBox19;
            m_textBox[8] = textBox14;

            m_label    = new Label[9];
            m_label[0] = label26;
            m_label[1] = label20;
            m_label[2] = label25;
            m_label[3] = label18;
            m_label[4] = label17;
            m_label[5] = label19;
            m_label[6] = label24;
            m_label[7] = label21;
            m_label[8] = label16;

            this.m_workSpace = workSpace;
            m_gdata          = new GDBData(this.m_workSpace);
            m_oraCmd         = oraCmd;
            InitCustom();
        }
 public frmCallMapByCommon(OracleCommand oraCmd, IMapControlDefault mapControl, IWorkspace workSpace)
 {
     InitializeComponent();
     m_oraCmd = oraCmd;
     m_mapControl = mapControl;
     m_gdata = new GDBData(workSpace);
     m_workSpace = workSpace;
 }
Exemple #4
0
 public frmSHPToSDE(GDBConenction gcon, OleDbCommand oraCmd)
 {
     InitializeComponent();
     m_workSpace    = gcon.OpenSDEWorkspace();
     m_gcon         = gcon;
     m_gdata        = new GDBData(m_workSpace);
     m_oraCmd       = oraCmd;
     m_gdata.OraCmd = this.m_oraCmd;
 }
Exemple #5
0
 public frmSHPToSDE(GDBConenction gcon,OleDbCommand oraCmd)
 {
     InitializeComponent();
     m_workSpace = gcon.OpenSDEWorkspace();
     m_gcon = gcon;
     m_gdata = new GDBData(m_workSpace);
     m_oraCmd = oraCmd;
     m_gdata.OraCmd = this.m_oraCmd;
 }
Exemple #6
0
        public frmSearchDB(GDBConenction gcon, IMapControlDefault mapControl, OleDbCommand oraCmd)
        {
            InitializeComponent();

            m_workSpace  = gcon.OpenSDEWorkspace();
            m_gcon       = gcon;
            m_gdata      = new GDBData(m_workSpace);
            m_mapControl = mapControl;
            m_oraCmd     = oraCmd;
        }
Exemple #7
0
        public frmSearchDB(GDBConenction gcon, IMapControlDefault mapControl, OleDbCommand oraCmd)
        {
            InitializeComponent();

            m_workSpace = gcon.OpenSDEWorkspace();
            m_gcon = gcon;
            m_gdata = new GDBData(m_workSpace);
            m_mapControl = mapControl;
            m_oraCmd = oraCmd;
        }
Exemple #8
0
 public frmRasterToSDE(GDBConenction gcon,OleDbCommand oraCmd)
 {
     InitializeComponent();
     m_workSpace = gcon.OpenSDEWorkspace();
     m_gcon = gcon;
     m_gdata = new GDBData(m_workSpace);
     m_loadRaster = new LoadRasterToSDE();
     m_name = new List<string>();
     this.m_oraCmd = oraCmd;
     m_gdata.OraCmd = this.m_oraCmd;
 }
 public frmRasterToSDE(GDBConenction gcon, OleDbCommand oraCmd)
 {
     InitializeComponent();
     m_workSpace    = gcon.OpenSDEWorkspace();
     m_gcon         = gcon;
     m_gdata        = new GDBData(m_workSpace);
     m_loadRaster   = new LoadRasterToSDE();
     m_name         = new List <string>();
     this.m_oraCmd  = oraCmd;
     m_gdata.OraCmd = this.m_oraCmd;
 }
Exemple #10
0
        private IWorkspace m_workSpace = null; //空间数据库的工作空间

        #endregion Fields

        #region Constructors

        public frmMain()
        {
            InitializeComponent();

            m_currentWin = this;

            //初始化地图控件对象
            m_mapControl = this.mapCtlMain.Object as IMapControlDefault;
            m_pageLayoutControl = this.axPageLayoutControl1.Object as IPageLayoutControlDefault;
            m_tocControl = this.axTOCControl1.Object as ITOCControlDefault;
            m_sceneControl = this.axSceneControl1.Object as ISceneControlDefault;
            m_pageLayoutControl.ActiveView.ShowScrollBars = true;
            m_pageLayoutControl.ActiveView.ShowRulers = true;
            PageLayoutToolBarInit(); //PageLayout右键菜单

            //同步类,使mapcontrol和pagelayoutcontrol中的数据保持一致
            m_controlsSynchronizer = new ControlsSynchronizer(m_mapControl, m_pageLayoutControl);
            m_controlsSynchronizer.BindControls(true);
            m_controlsSynchronizer.AddFrameWorkControl(this.axTOCControl1.Object);

            //绑定地图控件
            this.axTOCControl1.SetBuddyControl(this.mapCtlMain);

            m_fgdbPath = ConfigurationManager.AppSettings["FGDBPath"];
            //连接数据库,返回工作空间
            m_gcon = new GDBConenction(this.m_fgdbPath);
            m_workSpace = m_gcon.OpenSDEWorkspace();
            m_SDEClick = false;
            m_gdata = new GDBData(m_workSpace);
            //获取关系数据库连接字符串
            m_connectionString = ConfigurationManager.AppSettings["ConnectionString"];

            //获取主界面进度条
            m_statusBar = this.uiStatusBar1;

            //初始化工具类
            m_toolLib = new ToolLib(m_currentWin);
            m_toolLib.CurrentControl = "map";//默认mapcontrol为出示当前控件

            //打开关系数据库
            m_oraConn = new OleDbConnection(m_connectionString);
            try
            {
                m_oraConn.Open();
                m_oraCmd = m_oraConn.CreateCommand();
            }
            catch(Exception ee)
            {
                MessageBox.Show(ee.Message);
            }
        }