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

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

?? 副本 addcollegeform.cs

?? 《數據庫原理及應用》-劉玉寶主編-源代碼
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data;

namespace KTMIS
{
	/// <summary>
	/// AddCollege 的摘要說明。
	/// </summary>
	public class AddCollege : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button returnBtn;
		internal System.Windows.Forms.TextBox collegeCoTextBox;
		internal System.Windows.Forms.TextBox collegeSNtextBox;
		private System.Windows.Forms.Label collegeSNlabel;

		private SqlConnection collegeConnection = null;
		private SqlCommand collegeCommand = null;
		private ArrayList arrayList = null;
		private System.Windows.Forms.Button add_updatecollegeBtn;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public AddCollege()
		{
			//
			// 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.collegeCoTextBox = new System.Windows.Forms.TextBox();
			this.returnBtn = new System.Windows.Forms.Button();
			this.collegeSNtextBox = new System.Windows.Forms.TextBox();
			this.collegeSNlabel = new System.Windows.Forms.Label();
			this.add_updatecollegeBtn = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// collegeCoTextBox
			// 
			this.collegeCoTextBox.Location = new System.Drawing.Point(448, 112);
			this.collegeCoTextBox.Name = "collegeCoTextBox";
			this.collegeCoTextBox.Size = new System.Drawing.Size(88, 30);
			this.collegeCoTextBox.TabIndex = 24;
			this.collegeCoTextBox.Text = "";
			this.collegeCoTextBox.Visible = false;
			// 
			// returnBtn
			// 
			this.returnBtn.Location = new System.Drawing.Point(280, 160);
			this.returnBtn.Name = "returnBtn";
			this.returnBtn.Size = new System.Drawing.Size(160, 48);
			this.returnBtn.TabIndex = 23;
			this.returnBtn.Text = "返回";
			this.returnBtn.Click += new System.EventHandler(this.returnBtn_Click);
			// 
			// collegeSNtextBox
			// 
			this.collegeSNtextBox.Location = new System.Drawing.Point(328, 64);
			this.collegeSNtextBox.Name = "collegeSNtextBox";
			this.collegeSNtextBox.Size = new System.Drawing.Size(200, 30);
			this.collegeSNtextBox.TabIndex = 21;
			this.collegeSNtextBox.Text = "";
			// 
			// collegeSNlabel
			// 
			this.collegeSNlabel.Location = new System.Drawing.Point(40, 64);
			this.collegeSNlabel.Name = "collegeSNlabel";
			this.collegeSNlabel.Size = new System.Drawing.Size(288, 40);
			this.collegeSNlabel.TabIndex = 20;
			this.collegeSNlabel.Text = "請輸入所要添加的學院名稱:";
			// 
			// add_updatecollegeBtn
			// 
			this.add_updatecollegeBtn.Location = new System.Drawing.Point(80, 160);
			this.add_updatecollegeBtn.Name = "add_updatecollegeBtn";
			this.add_updatecollegeBtn.Size = new System.Drawing.Size(160, 48);
			this.add_updatecollegeBtn.TabIndex = 25;
			this.add_updatecollegeBtn.Text = "添加";
			this.add_updatecollegeBtn.Click += new System.EventHandler(this.add_updatecollegeBtn_Click);
			// 
			// AddCollege
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(11, 23);
			this.ClientSize = new System.Drawing.Size(592, 318);
			this.Controls.Add(this.add_updatecollegeBtn);
			this.Controls.Add(this.collegeCoTextBox);
			this.Controls.Add(this.returnBtn);
			this.Controls.Add(this.collegeSNtextBox);
			this.Controls.Add(this.collegeSNlabel);
			this.Font = new System.Drawing.Font("宋體", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.Name = "AddCollege";
			this.Text = "添加學院";
			this.ResumeLayout(false);

		}
		#endregion


		public ArrayList GetArrayList()
		{
			return arrayList;
		}

		public void SetcollegeSNText(string text)
		{
			collegeSNtextBox.Text = text;
		}

		public void SetcollegeCoText(string text)
		{
			collegeCoTextBox.Text = text;
		}


		public void SetFormTital(string tital)
		{
			this.Text = tital;
		}

		public void SetcollegeBtnText(string text)
		{
			add_updatecollegeBtn.Text = text;
		}

		private void returnBtn_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void add_updatecollegeBtn_Click(object sender, System.EventArgs e)
		{
			//string connString = "user id=sa;data source=\".\";initial catalog=KTMIS";
			//collegeConnection = new SqlConnection(connString);
			if(add_updatecollegeBtn.Text == "添加")
			{
				collegeCommand = new SqlCommand("InsertCollege",collegeConnection);
				collegeCommand.CommandType = CommandType.StoredProcedure;
				collegeCommand.Parameters.Add("@CollegeCo",SqlDbType.Int);
				collegeCommand.Parameters.Add("@CollegeNa",SqlDbType.VarChar,20);
				collegeCommand.Parameters["@CollegeCo"].Direction = System.Data.ParameterDirection.Output;
				collegeCommand.Parameters["@CollegeNa"].Value = collegeSNtextBox.Text.ToString().Trim();
				try
				{
					collegeConnection.Open();
					collegeCommand.ExecuteNonQuery();

					MessageBox.Show("添加成功!","系統提示",MessageBoxButtons.OK,MessageBoxIcon.Information);

					arrayList = new ArrayList();
					arrayList.Add(collegeCommand.Parameters["@CollegeCo"].Value);
					arrayList.Add(collegeSNtextBox.Text.ToString().Trim());

				}
				catch(Exception ex)
				{
					MessageBox.Show("添加失敗,原因是:"+ex.ToString(),"系統提示",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
				}
				finally
				{
					collegeConnection.Close();
				}
			}
			else if(add_updatecollegeBtn.Text == "修改")
			{
				collegeCommand = new SqlCommand("UpdateCollege",collegeConnection);
				collegeCommand.CommandType = CommandType.StoredProcedure;
				collegeCommand.Parameters.Add("@CollegeCo",SqlDbType.Int);
				collegeCommand.Parameters.Add("@CollegeNa",SqlDbType.VarChar,20);
				collegeCommand.Parameters["@CollegeCo"].Value = Convert.ToInt16(collegeCoTextBox.Text.ToString().Trim());
				collegeCommand.Parameters["@CollegeNa"].Value = collegeSNtextBox.Text.ToString().Trim();
				try
				{
					collegeConnection.Open();
					collegeCommand.ExecuteNonQuery();
					MessageBox.Show("修改成功!","系統提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
				}
				catch(Exception ex)
				{
					MessageBox.Show("修改失敗,原因是:"+ex.ToString(),"系統提示",MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
				}
				finally
				{
					collegeConnection.Close();
				}
				
			}
		}

		public System.Data.SqlClient.SqlConnection Connection
		{
			set
			{
				this.collegeConnection = value;
			}
		}
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人亚洲精品狼色在线| 日韩欧美一级二级| 欧美一级视频精品观看| 国产精品乱子久久久久| 久久99精品一区二区三区三区| caoporm超碰国产精品| 日韩欧美色电影| 亚洲成人激情自拍| 99久久99久久综合| 国产三级久久久| 久久99精品国产| 欧美一区二区精品在线| 亚洲高清中文字幕| 色噜噜狠狠成人网p站| 国产女人18水真多18精品一级做| 日韩精彩视频在线观看| 日本韩国精品在线| 1024成人网色www| 成人动漫一区二区| 久久精品人人做人人综合| 久久99精品久久久久久国产越南 | 欧洲av在线精品| 国产精品国产三级国产aⅴ入口| 日韩国产高清影视| 99re成人在线| 中文字幕亚洲在| 亚洲永久精品大片| 91视频免费播放| 在线观看91视频| 一区二区三区日韩精品| 91麻豆自制传媒国产之光| 国产精品白丝在线| 91同城在线观看| 亚洲精品中文在线| 色综合久久久久久久| 成人免费在线播放视频| 91视频你懂的| 亚洲五码中文字幕| 欧美男生操女生| 老色鬼精品视频在线观看播放| 91精品国产色综合久久久蜜香臀| 亚洲成人av免费| 欧美大片在线观看一区二区| 韩国午夜理伦三级不卡影院| 久久蜜桃一区二区| 国产一区在线看| 中文字幕在线一区免费| 欧美三级在线播放| 精品中文av资源站在线观看| 久久久久久99久久久精品网站| 成人91在线观看| 一区二区三区欧美在线观看| 欧美精选一区二区| 久久99精品久久久| 中文字幕一区二区三区精华液 | 欧美性猛交一区二区三区精品| 亚洲美女区一区| 欧美一级免费大片| 国产成人av一区二区| 国产精品久久三区| 7777精品伊人久久久大香线蕉经典版下载| 天堂av在线一区| 国产欧美一区二区精品仙草咪| 色综合一个色综合亚洲| 蜜桃精品视频在线观看| 日本一区二区免费在线| 色婷婷av久久久久久久| 久热成人在线视频| ●精品国产综合乱码久久久久| 欧美精品日韩综合在线| 国产电影一区在线| 午夜久久久久久电影| 国产欧美一区二区精品仙草咪| 欧美日韩国产综合一区二区| 国产伦精品一区二区三区免费迷| 亚洲综合精品久久| 国产欧美日韩另类视频免费观看| 欧美日韩国产免费| 成人精品高清在线| 蜜桃在线一区二区三区| 综合色天天鬼久久鬼色| 精品国产一区二区精华| 色欧美日韩亚洲| 成人av片在线观看| 久久99精品久久久| 日韩av中文字幕一区二区| 亚洲综合小说图片| 国产精品卡一卡二卡三| 国产三区在线成人av| 日韩一区二区中文字幕| 欧美在线播放高清精品| 99久久综合狠狠综合久久| 国产一区二区三区免费观看| 欧美96一区二区免费视频| 亚洲综合激情网| 亚洲男人的天堂在线观看| 欧美激情综合网| 久久久精品蜜桃| 久久综合久色欧美综合狠狠| 欧美日韩日日夜夜| 欧美视频一区二区三区四区| 91久久国产最好的精华液| 99久久婷婷国产综合精品| 国产成人综合在线| 国产精品一卡二| 国产一区二区三区电影在线观看| 日韩不卡一区二区| 免费在线看成人av| 青青草国产成人99久久| 日韩va欧美va亚洲va久久| 午夜精品在线视频一区| 亚洲午夜一二三区视频| 亚洲成人三级小说| 日韩国产精品91| 久久精品国产秦先生| 免费观看日韩电影| 激情国产一区二区| 国产成人亚洲综合a∨婷婷 | 亚洲免费av观看| 亚洲少妇最新在线视频| 亚洲欧美韩国综合色| 一区二区三区欧美在线观看| 香蕉久久夜色精品国产使用方法 | 国产在线国偷精品免费看| 九色综合国产一区二区三区| 国产一区视频导航| 成人免费电影视频| 色婷婷综合久久久久中文一区二区 | 国产成人精品免费在线| 成人丝袜18视频在线观看| 91免费视频大全| 欧美日韩国产综合视频在线观看| 欧美中文一区二区三区| 欧美日韩一级大片网址| 欧美一级国产精品| 久久久激情视频| 亚洲精品一二三| 天天综合天天做天天综合| 久草中文综合在线| 99精品视频免费在线观看| 欧美日韩精品福利| 26uuu久久综合| 亚洲日本免费电影| 日韩精品成人一区二区在线| 国产精品亚洲午夜一区二区三区 | 中文天堂在线一区| 亚洲综合免费观看高清在线观看| 日本成人在线网站| 国产成人免费av在线| 欧美在线一二三| 欧美精品一区男女天堂| 自拍偷拍亚洲欧美日韩| 日韩av一区二区三区四区| 成人小视频在线| 欧美一区二区三区影视| 欧美韩日一区二区三区| 丝袜诱惑亚洲看片| www.日韩精品| 精品毛片乱码1区2区3区| 国产精品福利影院| 久久99热国产| 欧美亚洲禁片免费| 国产欧美综合色| 麻豆成人免费电影| 在线亚洲一区观看| 国产日韩成人精品| 久久成人久久鬼色| 欧美日韩国产小视频在线观看| 国产欧美一区二区精品婷婷| 日韩不卡手机在线v区| 在线观看日韩国产| 国产欧美日韩卡一| 国产一区二三区| 欧美一区二区三区免费视频 | 在线一区二区视频| 国产精品亲子伦对白| 久久国产欧美日韩精品| 欧美三片在线视频观看| 亚洲激情中文1区| 成人av在线影院| 中文字幕久久午夜不卡| 国产一区二区三区香蕉| 日韩一区二区在线观看视频 | 一区二区三区资源| 99久久er热在这里只有精品66| 久久久777精品电影网影网| 奇米精品一区二区三区四区| 欧美妇女性影城| 亚洲国产中文字幕| 在线观看日韩精品| 亚洲国产sm捆绑调教视频| 日本道色综合久久| 亚洲精品菠萝久久久久久久| 99精品热视频| 亚洲欧美一区二区三区国产精品| 不卡av在线免费观看| 国产精品久久久久久久久久免费看 | 久久成人18免费观看| 欧美一区二区在线免费播放| 日本午夜精品一区二区三区电影 |