message_fm.cs

来自「招聘考试成绩管理系统,自己做的,C#的,我的软件工程作业」· CS 代码 · 共 535 行 · 第 1/2 页

CS
535
字号
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;


namespace 招聘考试成绩管理系统
{
	/// <summary>
	/// message_fm 的摘要说明。
	/// </summary>
	public class message_fm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		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.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.TextBox tbName;
		private System.Windows.Forms.TextBox tbZno;
		private System.Windows.Forms.TextBox tbBirthday;
		private System.Windows.Forms.TextBox tbAdds;
		private System.Windows.Forms.TextBox tbIdCard;
		private System.Windows.Forms.TextBox tbTel;
		private System.Windows.Forms.RadioButton radioButton1;
		private System.Windows.Forms.RadioButton radioButton2;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Button btok;
		private System.Windows.Forms.Button btreset;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		private string num="0123456789";
		private string n="0123456789-";

		public message_fm()
		{
			//
			// 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.label1 = new System.Windows.Forms.Label();
			this.btok = new System.Windows.Forms.Button();
			this.tbName = 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.label6 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.tbZno = new System.Windows.Forms.TextBox();
			this.tbBirthday = new System.Windows.Forms.TextBox();
			this.tbAdds = new System.Windows.Forms.TextBox();
			this.tbIdCard = new System.Windows.Forms.TextBox();
			this.tbTel = new System.Windows.Forms.TextBox();
			this.radioButton1 = new System.Windows.Forms.RadioButton();
			this.radioButton2 = new System.Windows.Forms.RadioButton();
			this.label9 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.btreset = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(288, 64);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(80, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "准考证号码:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// btok
			// 
			this.btok.Location = new System.Drawing.Point(128, 304);
			this.btok.Name = "btok";
			this.btok.TabIndex = 9;
			this.btok.Text = "提交";
			this.btok.Click += new System.EventHandler(this.btok_Click);
			// 
			// tbName
			// 
			this.tbName.AccessibleDescription = "姓名不能为空";
			this.tbName.Location = new System.Drawing.Point(128, 64);
			this.tbName.Name = "tbName";
			this.tbName.Size = new System.Drawing.Size(96, 21);
			this.tbName.TabIndex = 1;
			this.tbName.Tag = "Y";
			this.tbName.Text = "";
			this.tbName.Leave += new System.EventHandler(this.tbName_Leave);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 64);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(80, 23);
			this.label2.TabIndex = 3;
			this.label2.Text = "姓名:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(288, 112);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(80, 23);
			this.label3.TabIndex = 4;
			this.label3.Text = "性别:";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(24, 152);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(80, 23);
			this.label4.TabIndex = 5;
			this.label4.Text = "生日:";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(24, 240);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(80, 23);
			this.label5.TabIndex = 6;
			this.label5.Text = "地址:";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(24, 108);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(80, 23);
			this.label6.TabIndex = 7;
			this.label6.Text = "身份证:";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(24, 196);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(80, 23);
			this.label7.TabIndex = 8;
			this.label7.Text = "电话号码:";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// label8
			// 
			this.label8.Font = new System.Drawing.Font("华文楷体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label8.Location = new System.Drawing.Point(200, 24);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(136, 23);
			this.label8.TabIndex = 9;
			this.label8.Text = "输入考生信息";
			// 
			// tbZno
			// 
			this.tbZno.AccessibleDescription = "准考证不能为空";
			this.tbZno.Location = new System.Drawing.Point(384, 64);
			this.tbZno.Name = "tbZno";
			this.tbZno.Size = new System.Drawing.Size(120, 21);
			this.tbZno.TabIndex = 2;
			this.tbZno.Tag = "Y";
			this.tbZno.Text = "";
			this.tbZno.Leave += new System.EventHandler(this.tbZno_Leave);
			// 
			// tbBirthday
			// 
			this.tbBirthday.Location = new System.Drawing.Point(128, 152);
			this.tbBirthday.Name = "tbBirthday";
			this.tbBirthday.Size = new System.Drawing.Size(120, 21);
			this.tbBirthday.TabIndex = 6;
			this.tbBirthday.Text = "";
			// 
			// tbAdds
			// 
			this.tbAdds.Location = new System.Drawing.Point(128, 240);
			this.tbAdds.Name = "tbAdds";
			this.tbAdds.Size = new System.Drawing.Size(376, 21);
			this.tbAdds.TabIndex = 8;
			this.tbAdds.Text = "";
			// 
			// tbIdCard
			// 
			this.tbIdCard.AccessibleDescription = "身份证不能为空";
			this.tbIdCard.Location = new System.Drawing.Point(128, 112);
			this.tbIdCard.Name = "tbIdCard";
			this.tbIdCard.Size = new System.Drawing.Size(152, 21);
			this.tbIdCard.TabIndex = 3;
			this.tbIdCard.Tag = "Y";
			this.tbIdCard.Text = "";
			this.tbIdCard.Leave += new System.EventHandler(this.tbIdCard_Leave);
			// 
			// tbTel
			// 
			this.tbTel.Location = new System.Drawing.Point(128, 196);
			this.tbTel.Name = "tbTel";
			this.tbTel.Size = new System.Drawing.Size(120, 21);
			this.tbTel.TabIndex = 7;
			this.tbTel.Text = "";
			this.tbTel.Leave += new System.EventHandler(this.tbTel_Leave);
			// 
			// radioButton1
			// 
			this.radioButton1.Checked = true;
			this.radioButton1.Location = new System.Drawing.Point(392, 112);
			this.radioButton1.Name = "radioButton1";
			this.radioButton1.Size = new System.Drawing.Size(40, 24);
			this.radioButton1.TabIndex = 4;
			this.radioButton1.TabStop = true;
			this.radioButton1.Text = "男";
			// 
			// radioButton2
			// 
			this.radioButton2.Location = new System.Drawing.Point(456, 112);
			this.radioButton2.Name = "radioButton2";
			this.radioButton2.Size = new System.Drawing.Size(40, 24);
			this.radioButton2.TabIndex = 5;
			this.radioButton2.Text = "女";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(280, 152);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(144, 23);
			this.label9.TabIndex = 17;
			this.label9.Text = "生日格式为1985/09/09";
			this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(280, 200);
			this.label10.Name = "label10";

⌨️ 快捷键说明

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