亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 新生信息.cs

?? 用c#編寫的一個學生信息管理系統
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace student
{
	/// <summary>
	/// 新生信息 的摘要說明。
	/// </summary>
	public class 新生信息 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox textBox4;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.TextBox textBox5;
		private System.Windows.Forms.Button button1;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public 新生信息()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label2 = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.textBox5 = new System.Windows.Forms.TextBox();
			this.button1 = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("華文行楷", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.ForeColor = System.Drawing.Color.Red;
			this.label1.Location = new System.Drawing.Point(8, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(400, 40);
			this.label1.TabIndex = 0;
			this.label1.Text = "請在下面輸入新生的相關信息";
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.button1,
																					this.textBox5,
																					this.label6,
																					this.textBox4,
																					this.label5,
																					this.textBox3,
																					this.label4,
																					this.textBox2,
																					this.label3,
																					this.textBox1,
																					this.label2});
			this.groupBox1.Location = new System.Drawing.Point(8, 72);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(392, 208);
			this.groupBox1.TabIndex = 1;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "新生信息";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 32);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 24);
			this.label2.TabIndex = 0;
			this.label2.Text = "姓名:";
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(96, 32);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(80, 21);
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(8, 80);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(64, 24);
			this.label3.TabIndex = 2;
			this.label3.Text = "學號:";
			// 
			// textBox2
			// 
			this.textBox2.Location = new System.Drawing.Point(96, 80);
			this.textBox2.Name = "textBox2";
			this.textBox2.Size = new System.Drawing.Size(80, 21);
			this.textBox2.TabIndex = 3;
			this.textBox2.Text = "";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(8, 136);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(64, 24);
			this.label4.TabIndex = 4;
			this.label4.Text = "性別:";
			// 
			// textBox3
			// 
			this.textBox3.Location = new System.Drawing.Point(96, 128);
			this.textBox3.Name = "textBox3";
			this.textBox3.Size = new System.Drawing.Size(80, 21);
			this.textBox3.TabIndex = 5;
			this.textBox3.Text = "";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(192, 32);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(72, 24);
			this.label5.TabIndex = 6;
			this.label5.Text = "年齡:";
			// 
			// textBox4
			// 
			this.textBox4.Location = new System.Drawing.Point(280, 32);
			this.textBox4.Name = "textBox4";
			this.textBox4.Size = new System.Drawing.Size(104, 21);
			this.textBox4.TabIndex = 7;
			this.textBox4.Text = "";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(192, 80);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(64, 24);
			this.label6.TabIndex = 8;
			this.label6.Text = "所在系:";
			// 
			// textBox5
			// 
			this.textBox5.Location = new System.Drawing.Point(280, 80);
			this.textBox5.Name = "textBox5";
			this.textBox5.Size = new System.Drawing.Size(104, 21);
			this.textBox5.TabIndex = 9;
			this.textBox5.Text = "";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(232, 128);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(80, 24);
			this.button1.TabIndex = 10;
			this.button1.Text = "添加";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// 新生信息
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.ClientSize = new System.Drawing.Size(416, 298);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.groupBox1,
																		  this.label1});
			this.Name = "新生信息";
			this.Text = "新生信息";
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void button1_Click(object sender, System.EventArgs e)
		{
			try
			{
				string hostname=System.Net.Dns.GetHostName(); 
				string cnStr="Integrated Security=SSPI;Persist Security Info=False;password=;" 
					+"Initial Catalog=學生信息管理系統;Data Source='"+hostname+"'";
				SqlConnection cn=new SqlConnection(cnStr);
				cn.Open();

				string sqlStr="select * from xs";
				SqlCommand cmd=new SqlCommand(sqlStr,cn);
						

				SqlDataAdapter myDataAdapter=new SqlDataAdapter();
				myDataAdapter.SelectCommand=cmd;

				SqlCommandBuilder custCB=new SqlCommandBuilder(myDataAdapter);

				DataSet ds=new DataSet();
				myDataAdapter.Fill(ds);

			
				DataRow myDataRow=ds.Tables[0].NewRow();
			
				myDataRow["sno"]=textBox2.Text;
				myDataRow["sname"]=textBox1.Text;
				myDataRow["sex"]=textBox3.Text;
				myDataRow["age"]=textBox4.Text;
				myDataRow["sdept"]=textBox5.Text;
				ds.Tables[0].Rows.Add(myDataRow);		
					

				myDataAdapter.Update(ds);			
				cn.Close();
				MessageBox.Show("成功錄入!");
			}
			catch(SqlException)
			{
				MessageBox.Show("輸入錯誤!");
			}
		}
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产中文一区二区三区| 中文字幕亚洲区| 欧美日韩国产高清一区二区| 色综合色狠狠综合色| 99国产精品国产精品久久| 丁香啪啪综合成人亚洲小说 | 亚洲色图欧美激情| 亚洲欧美在线视频| 亚洲三级在线观看| 一二三四区精品视频| 亚洲国产毛片aaaaa无费看 | 欧美激情一二三区| 亚洲欧美综合在线精品| 亚洲美女偷拍久久| 日本亚洲欧美天堂免费| 激情小说亚洲一区| 成人性生交大片免费看视频在线| 成人精品国产福利| 欧美三级电影网站| 精品国产乱码久久久久久浪潮| 久久色在线视频| 成人欧美一区二区三区在线播放| 亚洲专区一二三| 美女mm1313爽爽久久久蜜臀| 国产一区二区在线免费观看| www.成人网.com| 欧美日韩视频不卡| 精品国产区一区| 亚洲欧洲美洲综合色网| 香蕉加勒比综合久久| 国产乱码精品一区二区三区av| 99久免费精品视频在线观看| 欧美精品色综合| 欧美激情在线观看视频免费| 一区二区三区91| 国产一区亚洲一区| 91国产福利在线| 久久新电视剧免费观看| 亚洲伦在线观看| 精品一区二区久久久| 91麻豆精品在线观看| 日韩一区二区麻豆国产| 亚洲精品少妇30p| 国产精品白丝jk黑袜喷水| 欧美日韩免费观看一区三区| 国产午夜精品一区二区三区四区| 亚洲国产精品一区二区www在线| 国产在线日韩欧美| 4438成人网| 亚洲精品中文字幕乱码三区| 国内精品久久久久影院色| 一本色道a无线码一区v| 国产日韩欧美高清| 久久国产精品一区二区| 欧美日韩激情一区二区| 国产精品久久午夜夜伦鲁鲁| 国产一区二区精品久久91| 欧美日韩国产欧美日美国产精品| 国产精品高潮呻吟久久| 国产精品一色哟哟哟| 欧美日韩国产首页| 亚洲电影一级片| 91免费看`日韩一区二区| 国产欧美久久久精品影院| 精品亚洲成av人在线观看| 欧美日韩国产天堂| 午夜精品一区二区三区三上悠亚| 99在线视频精品| 国产精品嫩草99a| 懂色av中文字幕一区二区三区| 日韩精品一区二区三区视频| 蜜臀av一区二区在线观看| 欧美久久免费观看| 亚洲成av人综合在线观看| 欧美视频一区在线| 亚洲国产视频一区| 欧美日韩国产免费| 亚洲国产一区二区a毛片| 欧美美女一区二区三区| 性欧美大战久久久久久久久| 欧美日韩中文字幕一区二区| 亚洲成人午夜电影| 日韩三级中文字幕| 国内精品伊人久久久久影院对白| 久久影院午夜论| 成人午夜私人影院| 亚洲特级片在线| 欧美三级中文字幕在线观看| 亚洲国产cao| 日韩一二三四区| 国产精品羞羞答答xxdd| 亚洲日本在线观看| 欧美日韩午夜在线| 激情综合网激情| 国产精品丝袜一区| 色噜噜久久综合| 免费一区二区视频| 久久久777精品电影网影网| 大尺度一区二区| 亚洲精品少妇30p| 欧美一区二区福利视频| 国产盗摄精品一区二区三区在线 | 久久蜜桃av一区精品变态类天堂| 国产a区久久久| 伊人婷婷欧美激情| 日韩女优制服丝袜电影| 懂色一区二区三区免费观看| 亚洲成人av一区二区三区| 26uuu国产在线精品一区二区| 99综合影院在线| 蜜桃av噜噜一区| 亚洲欧美日韩一区二区 | 国产欧美中文在线| 欧美日韩午夜在线视频| 粉嫩aⅴ一区二区三区四区五区| 一区二区三区高清在线| 久久人人超碰精品| 欧美中文字幕不卡| 国产精品自拍一区| 亚洲a一区二区| 国产精品第一页第二页第三页| 91精品国产黑色紧身裤美女| 成人精品免费看| 国产自产视频一区二区三区| 午夜影院在线观看欧美| 亚洲天堂中文字幕| 久久久不卡影院| 91麻豆精品国产| 99热99精品| 成人高清视频在线观看| 久久av资源站| 亚洲va国产va欧美va观看| 亚洲丝袜制服诱惑| 中文字幕二三区不卡| 欧美va亚洲va香蕉在线| 欧美日韩电影在线| 在线中文字幕一区| 成人av第一页| 大尺度一区二区| 国产老女人精品毛片久久| 日韩成人免费电影| 亚洲国产一区二区三区| 亚洲黄色av一区| 亚洲乱码日产精品bd| 日韩理论片在线| 中文字幕欧美一| 国产欧美精品一区aⅴ影院| 久久蜜桃av一区精品变态类天堂| 欧美tk丨vk视频| 日韩欧美一二三四区| 精品国产sm最大网站| 欧美va在线播放| 亚洲精品一线二线三线无人区| 日韩一区二区高清| 日韩精品一区二区三区四区视频 | 国产精品影视天天线| 狠狠狠色丁香婷婷综合久久五月| 午夜电影一区二区| 视频一区二区三区入口| 丝袜国产日韩另类美女| 麻豆精品一区二区av白丝在线| 日本色综合中文字幕| 免费观看在线综合色| 国产在线一区观看| 成人国产免费视频| 在线观看视频一区二区| 欧美裸体bbwbbwbbw| 日韩一区二区三| 久久久精品国产免费观看同学| 国产视频亚洲色图| 亚洲欧美成人一区二区三区| 亚洲欧美日韩在线| 日韩av中文在线观看| 国产乱码字幕精品高清av| 北岛玲一区二区三区四区| 91麻豆免费在线观看| 欧美日韩国产系列| 久久久亚洲精品石原莉奈| 国产精品午夜久久| 一级特黄大欧美久久久| 欧美a级一区二区| 成人免费电影视频| 欧美日韩电影在线| 国产女人aaa级久久久级| 亚洲乱码中文字幕综合| 久久精品国产精品亚洲综合| 成人午夜激情在线| 在线不卡中文字幕| 国产精品天干天干在线综合| 同产精品九九九| 高清不卡在线观看| 欧美性感一区二区三区| 精品国产乱码久久久久久闺蜜| 亚洲视频电影在线| 国产一二三精品| 欧美日韩国产高清一区二区三区 | 亚洲午夜三级在线| 国产成a人亚洲精品| 欧美日韩一区二区在线观看 | 亚洲最快最全在线视频|