⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainform.cs

📁 煤矿信息管理系统是基于SuperMap Object
💻 CS
📖 第 1 页 / 共 5 页
字号:
			// separatorCommand1
			// 
			this.separatorCommand1.Tag = null;
			// 
			// buttonCommand_null
			// 
			this.buttonCommand_null.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_null.Image")));
			this.buttonCommand_null.Tag = null;
			this.buttonCommand_null.Text = "";
			this.buttonCommand_null.Tooltip = "空操作";
			this.buttonCommand_null.Click += new System.EventHandler(this.buttonCommand_null_Click);
			// 
			// separatorCommand2
			// 
			this.separatorCommand2.Tag = null;
			// 
			// buttonCommand_in
			// 
			this.buttonCommand_in.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_in.Image")));
			this.buttonCommand_in.Tag = null;
			this.buttonCommand_in.Text = "";
			this.buttonCommand_in.Tooltip = "放大";
			this.buttonCommand_in.Click += new System.EventHandler(this.buttonCommand_in_Click);
			// 
			// buttonCommand_out
			// 
			this.buttonCommand_out.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_out.Image")));
			this.buttonCommand_out.Tag = null;
			this.buttonCommand_out.Text = "";
			this.buttonCommand_out.Tooltip = "缩小";
			this.buttonCommand_out.Click += new System.EventHandler(this.buttonCommand_out_Click);
			// 
			// buttonCommand_free
			// 
			this.buttonCommand_free.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_free.Image")));
			this.buttonCommand_free.Tag = null;
			this.buttonCommand_free.Text = "";
			this.buttonCommand_free.Tooltip = "自由缩放";
			this.buttonCommand_free.Click += new System.EventHandler(this.buttonCommand_free_Click);
			// 
			// buttonCommand_pan
			// 
			this.buttonCommand_pan.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_pan.Image")));
			this.buttonCommand_pan.Tag = null;
			this.buttonCommand_pan.Text = "";
			this.buttonCommand_pan.Tooltip = "漫游";
			this.buttonCommand_pan.Click += new System.EventHandler(this.buttonCommand_pan_Click);
			// 
			// buttonCommand_full
			// 
			this.buttonCommand_full.Image = ((System.Drawing.Image)(resources.GetObject("buttonCommand_full.Image")));
			this.buttonCommand_full.Tag = null;
			this.buttonCommand_full.Text = "";
			this.buttonCommand_full.Tooltip = "全屏显示";
			this.buttonCommand_full.Click += new System.EventHandler(this.buttonCommand_full_Click);
			// 
			// axSuperMap2
			// 
			this.axSuperMap2.Enabled = true;
			this.axSuperMap2.Location = new System.Drawing.Point(640, 152);
			this.axSuperMap2.Name = "axSuperMap2";
			this.axSuperMap2.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSuperMap2.OcxState")));
			this.axSuperMap2.Size = new System.Drawing.Size(96, 216);
			this.axSuperMap2.TabIndex = 12;
			this.axSuperMap2.AfterMapDraw += new AxSuperMapLib._DSuperMapEvents_AfterMapDrawEventHandler(this.axSuperMap2_AfterMapDraw);
			this.axSuperMap2.Tracked += new System.EventHandler(this.axSuperMap2_Tracked);
			this.axSuperMap2.MouseWheelEvent += new AxSuperMapLib._DSuperMapEvents_MouseWheelEventHandler(this.axSuperMap2_MouseWheelEvent);
			this.axSuperMap2.MouseMoveEvent += new AxSuperMapLib._DSuperMapEvents_MouseMoveEventHandler(this.axSuperMap2_MouseMoveEvent);
			// 
			// panel_query_other
			// 
			this.panel_query_other.Controls.Add(this.listView_r_other);
			this.panel_query_other.Controls.Add(this.groupBox2);
			this.panel_query_other.Controls.Add(this.groupBox1);
			this.panel_query_other.Location = new System.Drawing.Point(216, 96);
			this.panel_query_other.Name = "panel_query_other";
			this.panel_query_other.Size = new System.Drawing.Size(144, 296);
			this.panel_query_other.TabIndex = 14;
			// 
			// listView_r_other
			// 
			this.listView_r_other.BackColor = System.Drawing.Color.WhiteSmoke;
			this.listView_r_other.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.listView_r_other.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																							   this.columnHeader1});
			this.listView_r_other.ContextMenu = this.contextMenu_other;
			this.listView_r_other.Dock = System.Windows.Forms.DockStyle.Fill;
			this.listView_r_other.FullRowSelect = true;
			this.listView_r_other.GridLines = true;
			this.listView_r_other.Location = new System.Drawing.Point(0, 176);
			this.listView_r_other.MultiSelect = false;
			this.listView_r_other.Name = "listView_r_other";
			this.listView_r_other.Size = new System.Drawing.Size(144, 120);
			this.listView_r_other.SmallImageList = this.imageList;
			this.listView_r_other.TabIndex = 2;
			this.toolTip1.SetToolTip(this.listView_r_other, "双击记录图上定位");
			this.listView_r_other.View = System.Windows.Forms.View.Details;
			this.listView_r_other.DoubleClick += new System.EventHandler(this.listView_r_other_DoubleClick);
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "查询结果";
			this.columnHeader1.Width = 123;
			// 
			// contextMenu_other
			// 
			this.contextMenu_other.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																							  this.menuItem_other_map_ding});
			// 
			// menuItem_other_map_ding
			// 
			this.menuItem_other_map_ding.Index = 0;
			this.menuItem_other_map_ding.Text = "图上定位";
			this.menuItem_other_map_ding.Click += new System.EventHandler(this.menuItem_other_map_ding_Click);
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.btn_other_query);
			this.groupBox2.Controls.Add(this.textBox_other);
			this.groupBox2.Controls.Add(this.btn_other_query_draw);
			this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
			this.groupBox2.Location = new System.Drawing.Point(0, 96);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(144, 80);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "查询方式";
			// 
			// btn_other_query
			// 
			this.btn_other_query.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btn_other_query.Location = new System.Drawing.Point(87, 49);
			this.btn_other_query.Name = "btn_other_query";
			this.btn_other_query.Size = new System.Drawing.Size(48, 24);
			this.btn_other_query.TabIndex = 2;
			this.btn_other_query.Text = "查询";
			this.btn_other_query.Click += new System.EventHandler(this.btn_other_query_Click);
			// 
			// textBox_other
			// 
			this.textBox_other.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.textBox_other.Location = new System.Drawing.Point(9, 51);
			this.textBox_other.Name = "textBox_other";
			this.textBox_other.Size = new System.Drawing.Size(72, 21);
			this.textBox_other.TabIndex = 1;
			this.textBox_other.Text = "";
			// 
			// btn_other_query_draw
			// 
			this.btn_other_query_draw.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btn_other_query_draw.Location = new System.Drawing.Point(8, 19);
			this.btn_other_query_draw.Name = "btn_other_query_draw";
			this.btn_other_query_draw.Size = new System.Drawing.Size(128, 24);
			this.btn_other_query_draw.TabIndex = 0;
			this.btn_other_query_draw.Text = "图上拉框选择";
			this.btn_other_query_draw.Click += new System.EventHandler(this.btn_other_query_draw_Click);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.radioButton_kanxian);
			this.groupBox1.Controls.Add(this.radioButton_dixian);
			this.groupBox1.Controls.Add(this.radioButton_jinbian);
			this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
			this.groupBox1.Location = new System.Drawing.Point(0, 0);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(144, 96);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "查询条件";
			// 
			// radioButton_kanxian
			// 
			this.radioButton_kanxian.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.radioButton_kanxian.Location = new System.Drawing.Point(16, 64);
			this.radioButton_kanxian.Name = "radioButton_kanxian";
			this.radioButton_kanxian.TabIndex = 2;
			this.radioButton_kanxian.Text = "勘探线查询";
			this.toolTip1.SetToolTip(this.radioButton_kanxian, "按照勘探线编号查询");
			this.radioButton_kanxian.CheckedChanged += new System.EventHandler(this.radioButton_kanxian_CheckedChanged);
			// 
			// radioButton_dixian
			// 
			this.radioButton_dixian.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.radioButton_dixian.Location = new System.Drawing.Point(16, 40);
			this.radioButton_dixian.Name = "radioButton_dixian";
			this.radioButton_dixian.Size = new System.Drawing.Size(120, 24);
			this.radioButton_dixian.TabIndex = 1;
			this.radioButton_dixian.Text = "煤层露头线查询";
			this.toolTip1.SetToolTip(this.radioButton_dixian, "按照煤层名称查询");
			this.radioButton_dixian.CheckedChanged += new System.EventHandler(this.radioButton_dixian_CheckedChanged);
			// 
			// radioButton_jinbian
			// 
			this.radioButton_jinbian.Checked = true;
			this.radioButton_jinbian.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.radioButton_jinbian.Location = new System.Drawing.Point(16, 17);
			this.radioButton_jinbian.Name = "radioButton_jinbian";
			this.radioButton_jinbian.Size = new System.Drawing.Size(104, 23);
			this.radioButton_jinbian.TabIndex = 0;
			this.radioButton_jinbian.TabStop = true;
			this.radioButton_jinbian.Text = "井田边界查询";
			this.toolTip1.SetToolTip(this.radioButton_jinbian, "按照煤矿名称进行查询");
			this.radioButton_jinbian.CheckedChanged += new System.EventHandler(this.radioButton_jinbian_CheckedChanged);
			// 
			// timer_form
			// 
			this.timer_form.Interval = 5;
			this.timer_form.Tick += new System.EventHandler(this.timer_form_Tick);
			// 
			// axSuperWorkspace1
			// 
			this.axSuperWorkspace1.Enabled = true;
			this.axSuperWorkspace1.Location = new System.Drawing.Point(424, 368);
			this.axSuperWorkspace1.Name = "axSuperWorkspace1";
			this.axSuperWorkspace1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSuperWorkspace1.OcxState")));
			this.axSuperWorkspace1.Size = new System.Drawing.Size(32, 32);
			this.axSuperWorkspace1.TabIndex = 15;
			// 
			// MainForm
			// 
			this.AcceptButton = this.btn_query;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.AutoScroll = true;
			this.ClientSize = new System.Drawing.Size(832, 493);
			this.Controls.Add(this.axSuperWorkspace1);
			this.Controls.Add(this.panel_query_other);
			this.Controls.Add(this.axSuperMap2);
			this.Controls.Add(this.toolControl2);
			this.Controls.Add(this.menu_Main);
			this.Controls.Add(this.panel_legend);
			this.Controls.Add(this.panel_map_manage);
			this.Controls.Add(this.panel_kong_query);
			this.Controls.Add(this.statusBarControl1);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.KeyPreview = true;
			this.Name = "MainForm";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "煤矿信息管理系统";
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
			this.Load += new System.EventHandler(this.MainForm_Load);
			this.panel_legend.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.axSuperLegend1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.axSuperMap1)).EndInit();
			this.panel_kong_query.ResumeLayout(false);
			this.panel_query_result.ResumeLayout(false);
			this.groupBox_re_map.ResumeLayout(false);
			this.groupBox_re_kong.ResumeLayout(false);
			this.panel_query_bianhao.ResumeLayout(false);
			this.groupBox_query.ResumeLayout(false);
			this.groupBox_map_query.ResumeLayout(false);
			this.panel_map_manage.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.axSuperWkspManager1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.toolControl2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.axSuperMap2)).EndInit();
			this.panel_query_other.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.axSuperWorkspace1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void MainForm_Load(object sender, System.EventArgs e)
		{
			this.Visible = false;
			this.Opacity=0;
			myl = new Login();
			myl.SendLogin +=new MKIms3.Login.SendMessLogin(myl_SendLogin);
			myl.Show();
		}

		/// <summary>
		/// 图上拉框选择查询 按钮响应
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void btn_map_query_Click(object sender, System.EventArgs e)
		{
			axSuperMap2.Action=SuperMapLib.seAction.scaTrackPolygon;
			axSuperMap2.TrackingLayer.ClearEvents();
			axSuperMap2.TrackingLayer.Refresh();
			this.option_track = (int)enum_option_track.query;  //设定track上的操作标志为查询钻孔。
		}


		private void listView_re_kong_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			if(this.listView_re_kong.SelectedItems.Count>0)
			{
				string k_id = this.listView_re_kong.SelectedItems[0].Text.Trim().ToString();
				this.Cursor = Cursors.WaitCursor;
				fill_map_view(k_id);
				this.Cursor = Cursors.Default;
			}
		}


		private void axSuperMap2_Tracked(object sender, System.EventArgs e)
		{
			switch(this.option_track)
			{

⌨️ 快捷键说明

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