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

📄 clinicreg.cs

📁 用于医院的病人管理
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace 医院管理系统
{
	/// <summary>
	/// ClinicReg 的摘要说明。
	/// </summary>
	public class ClinicReg : System.Windows.Forms.Form
	{
		private string regID,infoID;//保存门诊挂号编号和病人信息库编号
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txt1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ComboBox cmb1;
		private System.Windows.Forms.TextBox txt2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.ComboBox cmb2;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.ComboBox cmb3;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.ComboBox cmb4;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.ComboBox cmb5;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.ComboBox cmb6;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.ImageList imageList1;
		protected System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.ToolBarButton tBtnNew;
		private System.Windows.Forms.ToolBarButton tBtnSubmit;
		private System.Windows.Forms.ToolBarButton tBtnCancel;
		private System.Windows.Forms.ToolBarButton tBtnQuit;
		private System.Windows.Forms.TextBox txt3;
		private System.Windows.Forms.TextBox txt4;
		private System.Windows.Forms.TextBox txt5;
		private System.Windows.Forms.TextBox txt6;
		private System.Windows.Forms.TextBox txt7;
		private System.Windows.Forms.TextBox txt8;
		private System.ComponentModel.IContainer components;

		public ClinicReg()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <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(ClinicReg));
			this.txt5 = new System.Windows.Forms.TextBox();
			this.txt6 = new System.Windows.Forms.TextBox();
			this.txt7 = new System.Windows.Forms.TextBox();
			this.txt8 = new System.Windows.Forms.TextBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label5 = new System.Windows.Forms.Label();
			this.cmb1 = new System.Windows.Forms.ComboBox();
			this.txt1 = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.label2 = new System.Windows.Forms.Label();
			this.txt2 = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.cmb2 = new System.Windows.Forms.ComboBox();
			this.cmb3 = new System.Windows.Forms.ComboBox();
			this.label6 = new System.Windows.Forms.Label();
			this.cmb4 = new System.Windows.Forms.ComboBox();
			this.label7 = new System.Windows.Forms.Label();
			this.cmb5 = new System.Windows.Forms.ComboBox();
			this.label8 = new System.Windows.Forms.Label();
			this.cmb6 = new System.Windows.Forms.ComboBox();
			this.label9 = new System.Windows.Forms.Label();
			this.txt3 = new System.Windows.Forms.TextBox();
			this.txt4 = new System.Windows.Forms.TextBox();
			this.label10 = new System.Windows.Forms.Label();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.tBtnNew = new System.Windows.Forms.ToolBarButton();
			this.tBtnSubmit = new System.Windows.Forms.ToolBarButton();
			this.tBtnCancel = new System.Windows.Forms.ToolBarButton();
			this.tBtnQuit = new System.Windows.Forms.ToolBarButton();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// txt5
			// 
			this.txt5.BackColor = System.Drawing.SystemColors.Desktop;
			this.txt5.Enabled = false;
			this.txt5.Location = new System.Drawing.Point(0, 472);
			this.txt5.Name = "txt5";
			this.txt5.TabIndex = 0;
			this.txt5.Text = "必填";
			this.txt5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			// 
			// txt6
			// 
			this.txt6.Enabled = false;
			this.txt6.Location = new System.Drawing.Point(104, 472);
			this.txt6.Name = "txt6";
			this.txt6.TabIndex = 0;
			this.txt6.Text = "选填";
			this.txt6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			// 
			// txt7
			// 
			this.txt7.BackColor = System.Drawing.SystemColors.ControlLight;
			this.txt7.Enabled = false;
			this.txt7.Location = new System.Drawing.Point(208, 472);
			this.txt7.Name = "txt7";
			this.txt7.TabIndex = 0;
			this.txt7.Text = "自动";
			this.txt7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			// 
			// txt8
			// 
			this.txt8.BackColor = System.Drawing.SystemColors.Control;
			this.txt8.Enabled = false;
			this.txt8.Location = new System.Drawing.Point(312, 472);
			this.txt8.Name = "txt8";
			this.txt8.Size = new System.Drawing.Size(368, 21);
			this.txt8.TabIndex = 0;
			this.txt8.Text = "";
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.cmb1);
			this.groupBox1.Controls.Add(this.txt1);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.groupBox2);
			this.groupBox1.Controls.Add(this.groupBox3);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.txt2);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.cmb2);
			this.groupBox1.Controls.Add(this.cmb3);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.cmb4);
			this.groupBox1.Controls.Add(this.label7);
			this.groupBox1.Controls.Add(this.cmb5);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.cmb6);
			this.groupBox1.Controls.Add(this.label9);
			this.groupBox1.Controls.Add(this.txt3);
			this.groupBox1.Controls.Add(this.txt4);
			this.groupBox1.Controls.Add(this.label10);
			this.groupBox1.Location = new System.Drawing.Point(0, 40);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(680, 432);
			this.groupBox1.TabIndex = 1;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "挂号信息";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(72, 160);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(56, 16);
			this.label5.TabIndex = 4;
			this.label5.Text = "费用类型";
			// 
			// cmb1
			// 
			this.cmb1.Items.AddRange(new object[] {
													  "男",
													  "女"});
			this.cmb1.Location = new System.Drawing.Point(208, 61);
			this.cmb1.Name = "cmb1";
			this.cmb1.Size = new System.Drawing.Size(104, 20);
			this.cmb1.TabIndex = 3;
			// 
			// txt1
			// 
			this.txt1.BackColor = System.Drawing.SystemColors.Desktop;
			this.txt1.Location = new System.Drawing.Point(56, 61);
			this.txt1.Name = "txt1";
			this.txt1.TabIndex = 2;
			this.txt1.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(24, 64);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(32, 16);
			this.label1.TabIndex = 1;
			this.label1.Text = "姓名";
			// 
			// groupBox2
			// 
			this.groupBox2.Location = new System.Drawing.Point(8, 120);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(664, 8);
			this.groupBox2.TabIndex = 0;
			this.groupBox2.TabStop = false;
			// 
			// groupBox3
			// 
			this.groupBox3.Location = new System.Drawing.Point(8, 288);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(664, 8);
			this.groupBox3.TabIndex = 0;
			this.groupBox3.TabStop = false;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(176, 64);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(32, 16);
			this.label2.TabIndex = 1;
			this.label2.Text = "性别";
			// 
			// txt2
			// 
			this.txt2.Location = new System.Drawing.Point(368, 61);
			this.txt2.Name = "txt2";
			this.txt2.TabIndex = 2;
			this.txt2.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(488, 64);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(32, 16);
			this.label3.TabIndex = 1;
			this.label3.Text = "民族";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(336, 64);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(32, 16);
			this.label4.TabIndex = 1;
			this.label4.Text = "年龄";
			// 
			// cmb2
			// 
			this.cmb2.Items.AddRange(new object[] {
													  "汉族",
													  "满族",
													  "蒙古族",
													  "回族",
													  "藏族",
													  "维吾尔族",
													  "哈萨克族"});
			this.cmb2.Location = new System.Drawing.Point(520, 61);
			this.cmb2.Name = "cmb2";
			this.cmb2.Size = new System.Drawing.Size(104, 20);
			this.cmb2.TabIndex = 3;
			// 
			// cmb3
			// 
			this.cmb3.BackColor = System.Drawing.SystemColors.Desktop;
			this.cmb3.Items.AddRange(new object[] {
													  "自费",
													  "公费",
													  "离休"});
			this.cmb3.Location = new System.Drawing.Point(128, 160);
			this.cmb3.Name = "cmb3";
			this.cmb3.Size = new System.Drawing.Size(136, 20);
			this.cmb3.TabIndex = 3;
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(328, 160);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(56, 16);
			this.label6.TabIndex = 4;
			this.label6.Text = "挂号类型";
			// 
			// cmb4
			// 
			this.cmb4.Items.AddRange(new object[] {
													  "普通",
													  "专家号20元",
													  "专家号5元"});
			this.cmb4.Location = new System.Drawing.Point(384, 160);
			this.cmb4.Name = "cmb4";
			this.cmb4.Size = new System.Drawing.Size(144, 20);
			this.cmb4.TabIndex = 3;
			this.cmb4.SelectionChangeCommitted += new System.EventHandler(this.cmb4_SelectionChangeCommitted);
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(72, 220);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(56, 16);
			this.label7.TabIndex = 4;
			this.label7.Text = "挂号科室";
			// 
			// cmb5
			// 
			this.cmb5.BackColor = System.Drawing.SystemColors.Desktop;
			this.cmb5.Location = new System.Drawing.Point(128, 216);
			this.cmb5.Name = "cmb5";
			this.cmb5.Size = new System.Drawing.Size(136, 20);
			this.cmb5.TabIndex = 3;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(328, 219);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(56, 16);
			this.label8.TabIndex = 4;

⌨️ 快捷键说明

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