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

📄 frmstudentinfo.cs

📁 学生类:Student 教师类:Teacher 主任:AdminTeacher 班主任:MasterTeacher 授课老师: PrelectTeacher 班级类:classTeam 班
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using BusinessRule;
using DataAccess;


namespace Forms
{
	/// <summary>
	/// Form2 的摘要说明。
	/// </summary>
	public class frmStudentInfo : System.Windows.Forms.Form
	{
		private AdminTeacher Ateacher = null;
		private PrelectTeacher Pteacher = null;
		private MasterTeacher Mteacher = null;

		//存放教师基本信息
		private Student student;
		private int stuID;

		private System.Windows.Forms.TextBox txtStuName;
		private System.Windows.Forms.TextBox txtStuOrigin;
		private System.Windows.Forms.TextBox txtStuTelephone;
		private System.Windows.Forms.TextBox txtStuAddress;
		private System.Windows.Forms.TextBox txtStuPostcode;
		private System.Windows.Forms.TextBox txtStuGrade1;
		private System.Windows.Forms.TextBox txtStuGrade2;
		private System.Windows.Forms.TextBox txtStuGrade3;
		private System.Windows.Forms.TextBox txtStuRemark;
		private System.Windows.Forms.Button btnAdd;
		private System.Windows.Forms.Button btnExit;
		private System.Windows.Forms.ComboBox cboStuNation;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.RadioButton radFemale;
		private System.Windows.Forms.RadioButton radMale;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.RadioButton radNo;
		private System.Windows.Forms.RadioButton radYes;
		private System.Windows.Forms.Label lblSutName;
		private System.Windows.Forms.Label lblStuSex;
		private System.Windows.Forms.Label lblStuOrigin;
		private System.Windows.Forms.Label lblStuNation;
		private System.Windows.Forms.Label lblStuTelephone;
		private System.Windows.Forms.Label lblStuAddress;
		private System.Windows.Forms.Label lblPostcode;
		private System.Windows.Forms.Label lblStuGrade1;
		private System.Windows.Forms.Label lblStuGrade2;
		private System.Windows.Forms.Label lblStuGrade3;
		private System.Windows.Forms.Label lblStuAt_School;
		private System.Windows.Forms.Label lblStuRemark;
		private System.Windows.Forms.Label lblStudentID;
		private System.Windows.Forms.Label lblStuID;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

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

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
			Post.EventSendLoginedID += new DataAccess.Post.SendMsgDelegate(Post_EventSendStudentInfo);
		}

		/// <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.lblSutName = new System.Windows.Forms.Label();
			this.lblStuSex = new System.Windows.Forms.Label();
			this.lblStuOrigin = new System.Windows.Forms.Label();
			this.lblStuNation = new System.Windows.Forms.Label();
			this.lblStuTelephone = new System.Windows.Forms.Label();
			this.lblStuAddress = new System.Windows.Forms.Label();
			this.lblPostcode = new System.Windows.Forms.Label();
			this.lblStuGrade1 = new System.Windows.Forms.Label();
			this.lblStuGrade2 = new System.Windows.Forms.Label();
			this.lblStuGrade3 = new System.Windows.Forms.Label();
			this.lblStuAt_School = new System.Windows.Forms.Label();
			this.lblStuRemark = new System.Windows.Forms.Label();
			this.txtStuName = new System.Windows.Forms.TextBox();
			this.txtStuOrigin = new System.Windows.Forms.TextBox();
			this.txtStuTelephone = new System.Windows.Forms.TextBox();
			this.txtStuAddress = new System.Windows.Forms.TextBox();
			this.txtStuPostcode = new System.Windows.Forms.TextBox();
			this.txtStuGrade1 = new System.Windows.Forms.TextBox();
			this.txtStuGrade2 = new System.Windows.Forms.TextBox();
			this.txtStuGrade3 = new System.Windows.Forms.TextBox();
			this.txtStuRemark = new System.Windows.Forms.TextBox();
			this.btnAdd = new System.Windows.Forms.Button();
			this.btnExit = new System.Windows.Forms.Button();
			this.cboStuNation = new System.Windows.Forms.ComboBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.radFemale = new System.Windows.Forms.RadioButton();
			this.radMale = new System.Windows.Forms.RadioButton();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.radNo = new System.Windows.Forms.RadioButton();
			this.radYes = new System.Windows.Forms.RadioButton();
			this.lblStudentID = new System.Windows.Forms.Label();
			this.lblStuID = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// lblSutName
			// 
			this.lblSutName.AutoSize = true;
			this.lblSutName.Location = new System.Drawing.Point(24, 43);
			this.lblSutName.Name = "lblSutName";
			this.lblSutName.Size = new System.Drawing.Size(35, 17);
			this.lblSutName.TabIndex = 0;
			this.lblSutName.Text = "姓名:";
			// 
			// lblStuSex
			// 
			this.lblStuSex.AutoSize = true;
			this.lblStuSex.Location = new System.Drawing.Point(24, 88);
			this.lblStuSex.Name = "lblStuSex";
			this.lblStuSex.Size = new System.Drawing.Size(42, 17);
			this.lblStuSex.TabIndex = 1;
			this.lblStuSex.Text = "性别: ";
			// 
			// lblStuOrigin
			// 
			this.lblStuOrigin.AutoSize = true;
			this.lblStuOrigin.Location = new System.Drawing.Point(24, 144);
			this.lblStuOrigin.Name = "lblStuOrigin";
			this.lblStuOrigin.Size = new System.Drawing.Size(42, 17);
			this.lblStuOrigin.TabIndex = 2;
			this.lblStuOrigin.Text = "籍贯: ";
			// 
			// lblStuNation
			// 
			this.lblStuNation.AutoSize = true;
			this.lblStuNation.Location = new System.Drawing.Point(24, 192);
			this.lblStuNation.Name = "lblStuNation";
			this.lblStuNation.Size = new System.Drawing.Size(42, 17);
			this.lblStuNation.TabIndex = 3;
			this.lblStuNation.Text = "民族: ";
			// 
			// lblStuTelephone
			// 
			this.lblStuTelephone.AutoSize = true;
			this.lblStuTelephone.Location = new System.Drawing.Point(24, 240);
			this.lblStuTelephone.Name = "lblStuTelephone";
			this.lblStuTelephone.Size = new System.Drawing.Size(66, 17);
			this.lblStuTelephone.TabIndex = 4;
			this.lblStuTelephone.Text = "联系电话: ";
			// 
			// lblStuAddress
			// 
			this.lblStuAddress.AutoSize = true;
			this.lblStuAddress.Location = new System.Drawing.Point(24, 280);
			this.lblStuAddress.Name = "lblStuAddress";
			this.lblStuAddress.Size = new System.Drawing.Size(42, 17);
			this.lblStuAddress.TabIndex = 5;
			this.lblStuAddress.Text = "地址: ";
			// 
			// lblPostcode
			// 
			this.lblPostcode.AutoSize = true;
			this.lblPostcode.Location = new System.Drawing.Point(296, 10);
			this.lblPostcode.Name = "lblPostcode";
			this.lblPostcode.Size = new System.Drawing.Size(42, 17);
			this.lblPostcode.TabIndex = 6;
			this.lblPostcode.Text = "邮编: ";
			// 
			// lblStuGrade1
			// 
			this.lblStuGrade1.AutoSize = true;
			this.lblStuGrade1.Location = new System.Drawing.Point(296, 43);
			this.lblStuGrade1.Name = "lblStuGrade1";
			this.lblStuGrade1.Size = new System.Drawing.Size(42, 17);
			this.lblStuGrade1.TabIndex = 7;
			this.lblStuGrade1.Text = "一期: ";
			// 
			// lblStuGrade2
			// 
			this.lblStuGrade2.AutoSize = true;
			this.lblStuGrade2.Location = new System.Drawing.Point(296, 88);
			this.lblStuGrade2.Name = "lblStuGrade2";
			this.lblStuGrade2.Size = new System.Drawing.Size(42, 17);
			this.lblStuGrade2.TabIndex = 8;
			this.lblStuGrade2.Text = "二期: ";
			// 
			// lblStuGrade3
			// 
			this.lblStuGrade3.AutoSize = true;
			this.lblStuGrade3.Location = new System.Drawing.Point(296, 128);
			this.lblStuGrade3.Name = "lblStuGrade3";
			this.lblStuGrade3.Size = new System.Drawing.Size(42, 17);
			this.lblStuGrade3.TabIndex = 9;
			this.lblStuGrade3.Text = "二年: ";
			// 
			// lblStuAt_School
			// 
			this.lblStuAt_School.AutoSize = true;
			this.lblStuAt_School.Location = new System.Drawing.Point(296, 160);
			this.lblStuAt_School.Name = "lblStuAt_School";
			this.lblStuAt_School.Size = new System.Drawing.Size(66, 17);
			this.lblStuAt_School.TabIndex = 10;
			this.lblStuAt_School.Text = "是否在校: ";
			// 
			// lblStuRemark
			// 
			this.lblStuRemark.AutoSize = true;
			this.lblStuRemark.Location = new System.Drawing.Point(296, 208);
			this.lblStuRemark.Name = "lblStuRemark";
			this.lblStuRemark.Size = new System.Drawing.Size(42, 17);
			this.lblStuRemark.TabIndex = 11;
			this.lblStuRemark.Text = "备注: ";
			// 
			// txtStuName
			// 
			this.txtStuName.Location = new System.Drawing.Point(104, 41);
			this.txtStuName.Name = "txtStuName";
			this.txtStuName.Size = new System.Drawing.Size(168, 21);
			this.txtStuName.TabIndex = 12;
			this.txtStuName.Text = "";
			// 
			// txtStuOrigin
			// 
			this.txtStuOrigin.Location = new System.Drawing.Point(104, 144);
			this.txtStuOrigin.Name = "txtStuOrigin";
			this.txtStuOrigin.Size = new System.Drawing.Size(168, 21);
			this.txtStuOrigin.TabIndex = 14;
			this.txtStuOrigin.Text = "";
			// 
			// txtStuTelephone
			// 
			this.txtStuTelephone.Location = new System.Drawing.Point(104, 240);
			this.txtStuTelephone.Name = "txtStuTelephone";
			this.txtStuTelephone.Size = new System.Drawing.Size(168, 21);
			this.txtStuTelephone.TabIndex = 16;
			this.txtStuTelephone.Text = "";
			// 
			// txtStuAddress
			// 
			this.txtStuAddress.Location = new System.Drawing.Point(104, 288);
			this.txtStuAddress.Name = "txtStuAddress";
			this.txtStuAddress.Size = new System.Drawing.Size(320, 21);
			this.txtStuAddress.TabIndex = 17;
			this.txtStuAddress.Text = "";
			// 
			// txtStuPostcode
			// 
			this.txtStuPostcode.Location = new System.Drawing.Point(384, 8);
			this.txtStuPostcode.Name = "txtStuPostcode";
			this.txtStuPostcode.Size = new System.Drawing.Size(168, 21);
			this.txtStuPostcode.TabIndex = 18;
			this.txtStuPostcode.Text = "";
			// 
			// txtStuGrade1
			// 
			this.txtStuGrade1.Location = new System.Drawing.Point(384, 41);
			this.txtStuGrade1.Name = "txtStuGrade1";
			this.txtStuGrade1.Size = new System.Drawing.Size(168, 21);
			this.txtStuGrade1.TabIndex = 19;
			this.txtStuGrade1.Text = "";
			// 
			// txtStuGrade2
			// 
			this.txtStuGrade2.Location = new System.Drawing.Point(384, 74);
			this.txtStuGrade2.Name = "txtStuGrade2";
			this.txtStuGrade2.Size = new System.Drawing.Size(168, 21);
			this.txtStuGrade2.TabIndex = 20;
			this.txtStuGrade2.Text = "";
			// 
			// txtStuGrade3
			// 
			this.txtStuGrade3.Location = new System.Drawing.Point(384, 107);
			this.txtStuGrade3.Name = "txtStuGrade3";
			this.txtStuGrade3.Size = new System.Drawing.Size(168, 21);
			this.txtStuGrade3.TabIndex = 21;
			this.txtStuGrade3.Text = "";
			// 
			// txtStuRemark
			// 
			this.txtStuRemark.Location = new System.Drawing.Point(384, 200);
			this.txtStuRemark.Multiline = true;
			this.txtStuRemark.Name = "txtStuRemark";
			this.txtStuRemark.Size = new System.Drawing.Size(160, 32);
			this.txtStuRemark.TabIndex = 23;
			this.txtStuRemark.Text = "";
			// 
			// btnAdd
			// 
			this.btnAdd.Location = new System.Drawing.Point(456, 244);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new System.Drawing.Size(88, 32);
			this.btnAdd.TabIndex = 24;
			this.btnAdd.Text = "添加(&A)";
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// btnExit
			// 
			this.btnExit.Location = new System.Drawing.Point(456, 288);
			this.btnExit.Name = "btnExit";
			this.btnExit.Size = new System.Drawing.Size(88, 32);
			this.btnExit.TabIndex = 25;
			this.btnExit.Text = "取消(&E)";
			this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
			// 
			// cboStuNation
			// 
			this.cboStuNation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboStuNation.Items.AddRange(new object[] {
															  "汉族",
															  "回族",
															  "蒙古族",
															  "藏族",
															  "维吾尔族",
															  "苗族",
															  "壮族",
															  "彝族",
															  "布依族",
															  "朝鲜族",
															  "满族",
															  "侗族",
															  "瑶族",
															  "土家族",
															  "哈尼族",
															  "哈萨克族",
															  "傣族",
															  "黎族",
															  "僳僳族",
															  "佤族",

⌨️ 快捷键说明

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