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

📄 check.cs

📁 实施医院管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using DataAccess;
using comman;
using System.Data;

namespace main
{
	/// <summary>
	/// Check 的摘要说明。
	/// </summary>
	public class Check : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox DoctorgroupBox;
		private System.Windows.Forms.TextBox SpecialtytextBox;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Button Addbutton;
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.GroupBox TrafficgroupBox;
		private System.Windows.Forms.TextBox trafficText;
		private System.Windows.Forms.GroupBox HospitalgroupBox;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button HosptialCheckbutton;
		private System.Windows.Forms.ComboBox ProvincecomboBox;
		private System.Windows.Forms.ComboBox GradecomboBox;
		private System.Windows.Forms.TextBox HosptialtextBox;
		private System.Windows.Forms.TextBox SymptomtextBox;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox DocTimetextBox;
		private System.Windows.Forms.TextBox TelephonetextBox;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Button APPExitbutton;
		private System.Windows.Forms.ComboBox CitycomboBox;

		private HosptialAccess hospAccess = new HosptialAccess();
		private DictonaryAccess dicAccess = new DictonaryAccess();
		private CityAccess cityAccess = new CityAccess();
		private System.Windows.Forms.TextBox AdtextBox;
		private System.Windows.Forms.DataGridTableStyle dataGridTableStyle1;
		private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn1;
		private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn2;
		private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn3;
		private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn4;
		private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn5;
		private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn6;
		private System.Windows.Forms.DataGridTextBoxColumn dataGridTextBoxColumn7;
		private int Enable;
		
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Check(int ID)
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			Enable = ID;
			InitializeComponent();
			Dictionary[] dicGrade = dicAccess.GetDetailByCate("医院级别");
			for(int i=0;i<dicGrade.Length;i++)
			{
				this.GradecomboBox.Items.Add(dicGrade[i]);
			}
			Dictionary[] dicProvince = dicAccess.GetDetailByCate("所在省份");
			for(int i=0;i<dicProvince.Length;i++)
			{
				this.ProvincecomboBox.Items.Add(dicProvince[i]);
			}
	



			//
			// 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.DoctorgroupBox = new System.Windows.Forms.GroupBox();
			this.label7 = new System.Windows.Forms.Label();
			this.TelephonetextBox = new System.Windows.Forms.TextBox();
			this.DocTimetextBox = new System.Windows.Forms.TextBox();
			this.SpecialtytextBox = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.Addbutton = new System.Windows.Forms.Button();
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
			this.dataGridTextBoxColumn1 = new System.Windows.Forms.DataGridTextBoxColumn();
			this.dataGridTextBoxColumn2 = new System.Windows.Forms.DataGridTextBoxColumn();
			this.dataGridTextBoxColumn3 = new System.Windows.Forms.DataGridTextBoxColumn();
			this.dataGridTextBoxColumn4 = new System.Windows.Forms.DataGridTextBoxColumn();
			this.dataGridTextBoxColumn5 = new System.Windows.Forms.DataGridTextBoxColumn();
			this.dataGridTextBoxColumn6 = new System.Windows.Forms.DataGridTextBoxColumn();
			this.dataGridTextBoxColumn7 = new System.Windows.Forms.DataGridTextBoxColumn();
			this.TrafficgroupBox = new System.Windows.Forms.GroupBox();
			this.AdtextBox = new System.Windows.Forms.TextBox();
			this.trafficText = new System.Windows.Forms.TextBox();
			this.HospitalgroupBox = new System.Windows.Forms.GroupBox();
			this.CitycomboBox = new System.Windows.Forms.ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.HosptialCheckbutton = new System.Windows.Forms.Button();
			this.ProvincecomboBox = new System.Windows.Forms.ComboBox();
			this.GradecomboBox = new System.Windows.Forms.ComboBox();
			this.HosptialtextBox = new System.Windows.Forms.TextBox();
			this.SymptomtextBox = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.APPExitbutton = new System.Windows.Forms.Button();
			this.DoctorgroupBox.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.TrafficgroupBox.SuspendLayout();
			this.HospitalgroupBox.SuspendLayout();
			this.SuspendLayout();
			// 
			// DoctorgroupBox
			// 
			this.DoctorgroupBox.Controls.Add(this.label7);
			this.DoctorgroupBox.Controls.Add(this.TelephonetextBox);
			this.DoctorgroupBox.Controls.Add(this.DocTimetextBox);
			this.DoctorgroupBox.Controls.Add(this.SpecialtytextBox);
			this.DoctorgroupBox.Controls.Add(this.label6);
			this.DoctorgroupBox.Controls.Add(this.label8);
			this.DoctorgroupBox.Location = new System.Drawing.Point(504, 224);
			this.DoctorgroupBox.Name = "DoctorgroupBox";
			this.DoctorgroupBox.Size = new System.Drawing.Size(280, 328);
			this.DoctorgroupBox.TabIndex = 11;
			this.DoctorgroupBox.TabStop = false;
			this.DoctorgroupBox.Text = "医生信息";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(16, 192);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(100, 16);
			this.label7.TabIndex = 5;
			this.label7.Text = "门诊时间";
			// 
			// TelephonetextBox
			// 
			this.TelephonetextBox.BackColor = System.Drawing.Color.White;
			this.TelephonetextBox.Location = new System.Drawing.Point(16, 280);
			this.TelephonetextBox.Multiline = true;
			this.TelephonetextBox.Name = "TelephonetextBox";
			this.TelephonetextBox.ReadOnly = true;
			this.TelephonetextBox.Size = new System.Drawing.Size(248, 32);
			this.TelephonetextBox.TabIndex = 4;
			this.TelephonetextBox.Text = "";
			// 
			// DocTimetextBox
			// 
			this.DocTimetextBox.BackColor = System.Drawing.Color.White;
			this.DocTimetextBox.Location = new System.Drawing.Point(16, 208);
			this.DocTimetextBox.Multiline = true;
			this.DocTimetextBox.Name = "DocTimetextBox";
			this.DocTimetextBox.ReadOnly = true;
			this.DocTimetextBox.Size = new System.Drawing.Size(248, 48);
			this.DocTimetextBox.TabIndex = 3;
			this.DocTimetextBox.Text = "";
			// 
			// SpecialtytextBox
			// 
			this.SpecialtytextBox.BackColor = System.Drawing.Color.White;
			this.SpecialtytextBox.Location = new System.Drawing.Point(16, 40);
			this.SpecialtytextBox.Multiline = true;
			this.SpecialtytextBox.Name = "SpecialtytextBox";
			this.SpecialtytextBox.ReadOnly = true;
			this.SpecialtytextBox.Size = new System.Drawing.Size(256, 144);
			this.SpecialtytextBox.TabIndex = 2;
			this.SpecialtytextBox.Text = "";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(16, 24);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(100, 15);
			this.label6.TabIndex = 1;
			this.label6.Text = "医生专长";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(16, 264);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(100, 16);
			this.label8.TabIndex = 5;
			this.label8.Text = "电话号码";
			// 
			// Addbutton
			// 
			this.Addbutton.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.Addbutton.Location = new System.Drawing.Point(48, 536);
			this.Addbutton.Name = "Addbutton";
			this.Addbutton.TabIndex = 10;
			this.Addbutton.Text = "系统管理";
			this.Addbutton.Click += new System.EventHandler(this.Addbutton_Click);
			// 
			// dataGrid1
			// 
			this.dataGrid1.CaptionVisible = false;
			this.dataGrid1.DataMember = "";
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(8, 152);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.ReadOnly = true;
			this.dataGrid1.RowHeaderWidth = 0;
			this.dataGrid1.Size = new System.Drawing.Size(488, 376);
			this.dataGrid1.TabIndex = 9;
			this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
																								  this.dataGridTableStyle1});
			this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged);
			// 
			// dataGridTableStyle1
			// 
			this.dataGridTableStyle1.DataGrid = this.dataGrid1;
			this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
																												  this.dataGridTextBoxColumn1,
																												  this.dataGridTextBoxColumn2,
																												  this.dataGridTextBoxColumn3,
																												  this.dataGridTextBoxColumn4,
																												  this.dataGridTextBoxColumn5,
																												  this.dataGridTextBoxColumn6,
																												  this.dataGridTextBoxColumn7});
			this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGridTableStyle1.MappingName = "";
			// 
			// dataGridTextBoxColumn1
			// 
			this.dataGridTextBoxColumn1.Format = "";
			this.dataGridTextBoxColumn1.FormatInfo = null;
			this.dataGridTextBoxColumn1.HeaderText = "医院名称";
			this.dataGridTextBoxColumn1.MappingName = "HospitalName";
			this.dataGridTextBoxColumn1.NullText = "";
			this.dataGridTextBoxColumn1.Width = 93;
			// 
			// dataGridTextBoxColumn2
			// 
			this.dataGridTextBoxColumn2.Format = "";
			this.dataGridTextBoxColumn2.FormatInfo = null;
			this.dataGridTextBoxColumn2.HeaderText = "级别";
			this.dataGridTextBoxColumn2.MappingName = "Detail";
			this.dataGridTextBoxColumn2.NullText = "";
			this.dataGridTextBoxColumn2.Width = 50;
			// 
			// dataGridTextBoxColumn3
			// 
			this.dataGridTextBoxColumn3.Format = "";
			this.dataGridTextBoxColumn3.FormatInfo = null;
			this.dataGridTextBoxColumn3.HeaderText = "医生名称";
			this.dataGridTextBoxColumn3.MappingName = "Name";
			this.dataGridTextBoxColumn3.NullText = "";
			this.dataGridTextBoxColumn3.Width = 75;
			// 
			// dataGridTextBoxColumn4
			// 
			this.dataGridTextBoxColumn4.Format = "";
			this.dataGridTextBoxColumn4.FormatInfo = null;
			this.dataGridTextBoxColumn4.HeaderText = "所属科室";
			this.dataGridTextBoxColumn4.MappingName = "BelongOff";
			this.dataGridTextBoxColumn4.NullText = "";
			this.dataGridTextBoxColumn4.Width = 75;
			// 
			// dataGridTextBoxColumn5
			// 
			this.dataGridTextBoxColumn5.Format = "";
			this.dataGridTextBoxColumn5.FormatInfo = null;
			this.dataGridTextBoxColumn5.HeaderText = "职称";
			this.dataGridTextBoxColumn5.MappingName = "Profess";
			this.dataGridTextBoxColumn5.NullText = "";
			this.dataGridTextBoxColumn5.Width = 75;
			// 
			// dataGridTextBoxColumn6
			// 
			this.dataGridTextBoxColumn6.Format = "";
			this.dataGridTextBoxColumn6.FormatInfo = null;
			this.dataGridTextBoxColumn6.HeaderText = "性别";

⌨️ 快捷键说明

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