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

📄 zkshow.cs

📁 煤矿信息管理系统是基于SuperMap Object
💻 CS
📖 第 1 页 / 共 4 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace MKIms3
{
	/// <summary>
	/// ZKShow 的摘要说明。
	/// </summary>
	public class ZKShow : System.Windows.Forms.Form
	{
		private double k_x;
		private double k_y;
		private double k_z;
		private double k_h;
		private string k_com;
		private DateTime k_date;
		private string k_other;
		private string k_lay;

		private int kong_id; //钻孔在数据库中的编号,用来更新用。
		private string k_id; //钻孔的文字编号 *-*;
		private DataSet Ceng_DataSet;
		private DataGridTableStyle GridTableStyle;
		private SuperMapLib.soRecordset myRecordset;  //剖面示意图的纪录集

		/// <summary>
		/// 煤层的上下两层填充物
		/// </summary>
		public struct lay_Region
		{
			public int ding; //顶板填充代码
			public int di;   //底板填充代码
			public SuperMapLib.soGeoRegion lay_up_Region; //上下两层填充物
			public SuperMapLib.soGeoRegion lay_down_Region; //上下两层填充物
			public lay_Region(int ding,int di)
			{
				this.ding = ding ;
				this.di = di;
				this.lay_down_Region = new SuperMapLib.soGeoRegionClass();
				this.lay_up_Region = new SuperMapLib.soGeoRegionClass();
			}

		}


		#region 系统自己定义的字段
		private System.Windows.Forms.GroupBox groupBox_kong;
		private System.Windows.Forms.TextBox txt_other;
		private System.Windows.Forms.TextBox txt_com;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txt_No;
		private System.Windows.Forms.TextBox txt_lay;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.ToolBarButton toolBarButton_xiao;
		private System.Windows.Forms.ToolBarButton toolBarButton_da;
		private System.Windows.Forms.ToolBarButton toolBarButton_pan;
		private System.Windows.Forms.ImageList imageList_tool;
		private System.Windows.Forms.GroupBox groupBox_ceng;
		private System.Windows.Forms.ToolBarButton toolBarButton_full;
		private System.Windows.Forms.GroupBox groupBox_pou;
		private AxSuperMapLib.AxSuperMap axSuperMap1;
		private System.Windows.Forms.Button btn_ok;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.DataGrid dataGrid_lay;
		private System.Windows.Forms.ToolBar toolBar_tool;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.NumericUpDown numericUpDown_x;
		private System.Windows.Forms.NumericUpDown numericUpDown_y;
		private System.Windows.Forms.NumericUpDown numericUpDown_z;
		private System.Windows.Forms.NumericUpDown numericUpDown_h;
		private System.Windows.Forms.DateTimePicker dateTimePicker_data;
		private AxSuperMapLib.AxSuperWorkspace axSuperWorkspace1;
		private System.ComponentModel.IContainer components;
		#endregion
		public ZKShow(string k_id)
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
			this.k_id = k_id;
		}


		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}


		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ZKShow));
			this.groupBox_kong = new System.Windows.Forms.GroupBox();
			this.dateTimePicker_data = new System.Windows.Forms.DateTimePicker();
			this.numericUpDown_h = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_z = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_y = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_x = new System.Windows.Forms.NumericUpDown();
			this.txt_other = new System.Windows.Forms.TextBox();
			this.txt_com = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.txt_No = new System.Windows.Forms.TextBox();
			this.txt_lay = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.toolBarButton_xiao = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton_da = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton_pan = new System.Windows.Forms.ToolBarButton();
			this.imageList_tool = new System.Windows.Forms.ImageList(this.components);
			this.groupBox_ceng = new System.Windows.Forms.GroupBox();
			this.dataGrid_lay = new System.Windows.Forms.DataGrid();
			this.toolBarButton_full = new System.Windows.Forms.ToolBarButton();
			this.groupBox_pou = new System.Windows.Forms.GroupBox();
			this.axSuperMap1 = new AxSuperMapLib.AxSuperMap();
			this.panel1 = new System.Windows.Forms.Panel();
			this.toolBar_tool = new System.Windows.Forms.ToolBar();
			this.axSuperWorkspace1 = new AxSuperMapLib.AxSuperWorkspace();
			this.btn_ok = new System.Windows.Forms.Button();
			this.label10 = new System.Windows.Forms.Label();
			this.groupBox_kong.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_h)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_z)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_y)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_x)).BeginInit();
			this.groupBox_ceng.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid_lay)).BeginInit();
			this.groupBox_pou.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.axSuperMap1)).BeginInit();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.axSuperWorkspace1)).BeginInit();
			this.SuspendLayout();
			// 
			// groupBox_kong
			// 
			this.groupBox_kong.Controls.Add(this.dateTimePicker_data);
			this.groupBox_kong.Controls.Add(this.numericUpDown_h);
			this.groupBox_kong.Controls.Add(this.numericUpDown_z);
			this.groupBox_kong.Controls.Add(this.numericUpDown_y);
			this.groupBox_kong.Controls.Add(this.numericUpDown_x);
			this.groupBox_kong.Controls.Add(this.txt_other);
			this.groupBox_kong.Controls.Add(this.txt_com);
			this.groupBox_kong.Controls.Add(this.label6);
			this.groupBox_kong.Controls.Add(this.label3);
			this.groupBox_kong.Controls.Add(this.label2);
			this.groupBox_kong.Controls.Add(this.label8);
			this.groupBox_kong.Controls.Add(this.label9);
			this.groupBox_kong.Controls.Add(this.label4);
			this.groupBox_kong.Controls.Add(this.label1);
			this.groupBox_kong.Controls.Add(this.txt_No);
			this.groupBox_kong.Controls.Add(this.txt_lay);
			this.groupBox_kong.Controls.Add(this.label5);
			this.groupBox_kong.Controls.Add(this.label7);
			this.groupBox_kong.Location = new System.Drawing.Point(8, 8);
			this.groupBox_kong.Name = "groupBox_kong";
			this.groupBox_kong.Size = new System.Drawing.Size(408, 184);
			this.groupBox_kong.TabIndex = 3;
			this.groupBox_kong.TabStop = false;
			this.groupBox_kong.Text = "钻孔基本信息";
			// 
			// dateTimePicker_data
			// 
			this.dateTimePicker_data.Location = new System.Drawing.Point(264, 99);
			this.dateTimePicker_data.Name = "dateTimePicker_data";
			this.dateTimePicker_data.Size = new System.Drawing.Size(112, 21);
			this.dateTimePicker_data.TabIndex = 40;
			// 
			// numericUpDown_h
			// 
			this.numericUpDown_h.DecimalPlaces = 2;
			this.numericUpDown_h.Location = new System.Drawing.Point(264, 24);
			this.numericUpDown_h.Maximum = new System.Decimal(new int[] {
																			1410065407,
																			2,
																			0,
																			0});
			this.numericUpDown_h.Name = "numericUpDown_h";
			this.numericUpDown_h.Size = new System.Drawing.Size(128, 21);
			this.numericUpDown_h.TabIndex = 39;
			this.numericUpDown_h.ThousandsSeparator = true;
			// 
			// numericUpDown_z
			// 
			this.numericUpDown_z.DecimalPlaces = 2;
			this.numericUpDown_z.Location = new System.Drawing.Point(80, 96);
			this.numericUpDown_z.Maximum = new System.Decimal(new int[] {
																			1410065407,
																			2,
																			0,
																			0});
			this.numericUpDown_z.Name = "numericUpDown_z";
			this.numericUpDown_z.Size = new System.Drawing.Size(114, 21);
			this.numericUpDown_z.TabIndex = 38;
			this.numericUpDown_z.ThousandsSeparator = true;
			// 
			// numericUpDown_y
			// 
			this.numericUpDown_y.DecimalPlaces = 2;
			this.numericUpDown_y.Location = new System.Drawing.Point(80, 72);
			this.numericUpDown_y.Maximum = new System.Decimal(new int[] {
																			1410065407,
																			2,
																			0,
																			0});
			this.numericUpDown_y.Name = "numericUpDown_y";
			this.numericUpDown_y.Size = new System.Drawing.Size(114, 21);
			this.numericUpDown_y.TabIndex = 37;
			this.numericUpDown_y.ThousandsSeparator = true;
			// 
			// numericUpDown_x
			// 
			this.numericUpDown_x.DecimalPlaces = 2;
			this.numericUpDown_x.Location = new System.Drawing.Point(80, 48);
			this.numericUpDown_x.Maximum = new System.Decimal(new int[] {
																			1410065407,
																			2,
																			0,
																			0});
			this.numericUpDown_x.Name = "numericUpDown_x";
			this.numericUpDown_x.Size = new System.Drawing.Size(114, 21);
			this.numericUpDown_x.TabIndex = 36;
			this.numericUpDown_x.ThousandsSeparator = true;
			// 
			// txt_other
			// 
			this.txt_other.Location = new System.Drawing.Point(80, 128);
			this.txt_other.Multiline = true;
			this.txt_other.Name = "txt_other";
			this.txt_other.Size = new System.Drawing.Size(312, 48);
			this.txt_other.TabIndex = 35;
			this.txt_other.Text = "";
			// 
			// txt_com
			// 
			this.txt_com.Location = new System.Drawing.Point(264, 73);
			this.txt_com.Name = "txt_com";
			this.txt_com.Size = new System.Drawing.Size(128, 21);
			this.txt_com.TabIndex = 28;
			this.txt_com.Text = "";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(32, 144);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(32, 16);
			this.label6.TabIndex = 23;
			this.label6.Text = "备注";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(208, 81);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(56, 16);
			this.label3.TabIndex = 20;
			this.label3.Text = "施工单位";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(208, 104);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 16);
			this.label2.TabIndex = 19;
			this.label2.Text = "施工时间";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(13, 77);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(64, 16);
			this.label8.TabIndex = 25;
			this.label8.Text = "孔口坐标Y";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(12, 102);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(62, 16);
			this.label9.TabIndex = 26;
			this.label9.Text = "孔口坐标Z";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(208, 30);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(56, 16);
			this.label4.TabIndex = 21;
			this.label4.Text = "终孔深度";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(22, 29);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 17);

⌨️ 快捷键说明

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