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

📄 studentinfo.cs

📁 由C开发的教务管理系统源码中的排课子系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace 教务管理系统{	public class StudentInfo : 医院管理系统.ParentForm	{
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private System.Data.SqlClient.SqlDataAdapter da3;
		private System.Data.SqlClient.SqlDataAdapter da4;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand3;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand4;
		private System.Data.SqlClient.SqlDataAdapter da5;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand5;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand6;
		private System.Windows.Forms.TextBox txt4;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txt5;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox txt7;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.ComboBox cmb1;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.ComboBox cmb2;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.ComboBox cmb3;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.ComboBox cmb4;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.ComboBox cmb5;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.ComboBox cmb6;
		private 教务管理系统.DataSet1 dataSet11;
		private System.Data.SqlClient.SqlDataAdapter da2;
		private System.Windows.Forms.TextBox txt6;
		private System.Data.SqlClient.SqlDataAdapter da6;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand2;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;		private System.ComponentModel.IContainer components = null;		public StudentInfo()		{			// 该调用是 Windows 窗体设计器所必需的。			InitializeComponent();			// TODO: 在 InitializeComponent 调用后添加任何初始化		}		/// <summary>		/// 清理所有正在使用的资源。		/// </summary>		protected override void Dispose( bool disposing )		{			if( disposing )			{				if (components != null) 				{					components.Dispose();				}			}			base.Dispose( disposing );		}		#region 设计器生成的代码		/// <summary>		/// 设计器支持所需的方法 - 不要使用代码编辑器修改		/// 此方法的内容。		/// </summary>		private void InitializeComponent()		{			this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
			this.da3 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlSelectCommand3 = new System.Data.SqlClient.SqlCommand();
			this.da4 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlSelectCommand4 = new System.Data.SqlClient.SqlCommand();
			this.da5 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlSelectCommand5 = new System.Data.SqlClient.SqlCommand();
			this.da2 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlSelectCommand6 = new System.Data.SqlClient.SqlCommand();
			this.txt4 = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.txt5 = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.txt7 = new System.Windows.Forms.TextBox();
			this.txt6 = new System.Windows.Forms.TextBox();
			this.label9 = new System.Windows.Forms.Label();
			this.cmb1 = new System.Windows.Forms.ComboBox();
			this.label7 = new System.Windows.Forms.Label();
			this.cmb2 = new System.Windows.Forms.ComboBox();
			this.label8 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.cmb3 = new System.Windows.Forms.ComboBox();
			this.dataSet11 = new 教务管理系统.DataSet1();
			this.label11 = new System.Windows.Forms.Label();
			this.cmb4 = new System.Windows.Forms.ComboBox();
			this.label12 = new System.Windows.Forms.Label();
			this.cmb5 = new System.Windows.Forms.ComboBox();
			this.label13 = new System.Windows.Forms.Label();
			this.cmb6 = new System.Windows.Forms.ComboBox();
			this.da6 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.groupBox2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
			// 
			// groupBox1
			// 
			this.groupBox1.Name = "groupBox1";
			// 
			// txt2
			// 
			this.txt2.Name = "txt2";
			// 
			// label1
			// 
			this.label1.Name = "label1";
			this.label1.Text = "姓名";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// btnSearch
			// 
			this.btnSearch.Name = "btnSearch";
			this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
			// 
			// txt1
			// 
			this.txt1.Name = "txt1";
			// 
			// label2
			// 
			this.label2.Name = "label2";
			this.label2.Text = "学号";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// txt3
			// 
			this.txt3.Name = "txt3";
			// 
			// label3
			// 
			this.label3.Name = "label3";
			this.label3.Text = "年级";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// toolBar1
			// 
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.Size = new System.Drawing.Size(728, 41);
			// 
			// dataGrid1
			// 
			this.dataGrid1.DataMember = "学生信息";
			this.dataGrid1.DataSource = this.dataSet11;
			this.dataGrid1.Name = "dataGrid1";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.cmb1);
			this.groupBox2.Controls.Add(this.txt4);
			this.groupBox2.Controls.Add(this.label4);
			this.groupBox2.Controls.Add(this.txt5);
			this.groupBox2.Controls.Add(this.label5);
			this.groupBox2.Controls.Add(this.label6);
			this.groupBox2.Controls.Add(this.txt7);
			this.groupBox2.Controls.Add(this.txt6);
			this.groupBox2.Controls.Add(this.label9);
			this.groupBox2.Controls.Add(this.label7);
			this.groupBox2.Controls.Add(this.cmb2);
			this.groupBox2.Controls.Add(this.label8);
			this.groupBox2.Controls.Add(this.label10);
			this.groupBox2.Controls.Add(this.cmb3);
			this.groupBox2.Controls.Add(this.label11);
			this.groupBox2.Controls.Add(this.cmb4);
			this.groupBox2.Controls.Add(this.label12);
			this.groupBox2.Controls.Add(this.cmb5);
			this.groupBox2.Controls.Add(this.label13);
			this.groupBox2.Controls.Add(this.cmb6);
			this.groupBox2.Location = new System.Drawing.Point(0, 378);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(728, 120);
			// 
			// da1
			// 
			this.da1.DeleteCommand = this.sqlDeleteCommand1;
			this.da1.InsertCommand = this.sqlInsertCommand1;
			this.da1.SelectCommand = this.sqlSelectCommand1;
			this.da1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																						  new System.Data.Common.DataTableMapping("Table", "学生信息", new System.Data.Common.DataColumnMapping[] {
																																																  new System.Data.Common.DataColumnMapping("学号", "学号"),
																																																  new System.Data.Common.DataColumnMapping("姓名", "姓名"),
																																																  new System.Data.Common.DataColumnMapping("班级编号", "班级编号"),
																																																  new System.Data.Common.DataColumnMapping("性别", "性别"),
																																																  new System.Data.Common.DataColumnMapping("年级", "年级"),
																																																  new System.Data.Common.DataColumnMapping("政治面貌编号", "政治面貌编号"),
																																																  new System.Data.Common.DataColumnMapping("民族编号", "民族编号"),
																																																  new System.Data.Common.DataColumnMapping("籍贯编号", "籍贯编号"),
																																																  new System.Data.Common.DataColumnMapping("身份证号", "身份证号"),
																																																  new System.Data.Common.DataColumnMapping("学籍编号", "学籍编号")})});
			this.da1.UpdateCommand = this.sqlUpdateCommand1;
			// 
			// sqlConnection1
			// 
			this.sqlConnection1.ConnectionString = "workstation id=localhost;packet size=4096;integrated security=SSPI;data source=\"." +
				"\";persist security info=False;initial catalog=eisbook";
			// 
			// da3
			// 
			this.da3.SelectCommand = this.sqlSelectCommand3;
			this.da3.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																						  new System.Data.Common.DataTableMapping("Table", "籍贯代码表", new System.Data.Common.DataColumnMapping[] {
																																																   new System.Data.Common.DataColumnMapping("籍贯编号", "籍贯编号"),
																																																   new System.Data.Common.DataColumnMapping("籍贯", "籍贯")})});
			// 
			// sqlSelectCommand3
			// 
			this.sqlSelectCommand3.CommandText = "SELECT 籍贯编号, 籍贯 FROM 籍贯代码表";
			this.sqlSelectCommand3.Connection = this.sqlConnection1;
			// 

⌨️ 快捷键说明

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