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

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

?? registeraccount.cs

?? 火車訂票系統 火車訂票系統 火車訂票系統
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Model;
using Business_Logic;

namespace Railroad_Trip
{
	/// <summary>
	/// RegisterAccount 的摘要說明。
	/// </summary>
	public class RegisterAccount : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TextBox txtUserName;
		private System.Windows.Forms.TextBox txtPassWord;
		private System.Windows.Forms.TextBox txtAgPass;
		private System.Windows.Forms.TextBox txtName;
		private System.Windows.Forms.RadioButton radMan;
		private System.Windows.Forms.RadioButton radLady;
		private System.Windows.Forms.TextBox txtAge;
		private System.Windows.Forms.TextBox txtTel;
		private System.Windows.Forms.TextBox txtAddress;
		private int age=0;   //年齡
		private string userName,passWord,aPassWord,name,sex,tel,address;
		private System.Windows.Forms.Label lblOK;
		private System.Windows.Forms.Label lblCancel;//用戶名,密碼,確認密碼,真實姓名,性別,聯系電話,聯系地址;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public RegisterAccount()
		{
			//
			// 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()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RegisterAccount));
			this.txtUserName = new System.Windows.Forms.TextBox();
			this.txtPassWord = new System.Windows.Forms.TextBox();
			this.txtAgPass = new System.Windows.Forms.TextBox();
			this.txtName = new System.Windows.Forms.TextBox();
			this.radMan = new System.Windows.Forms.RadioButton();
			this.radLady = new System.Windows.Forms.RadioButton();
			this.txtAge = new System.Windows.Forms.TextBox();
			this.txtTel = new System.Windows.Forms.TextBox();
			this.txtAddress = new System.Windows.Forms.TextBox();
			this.lblOK = new System.Windows.Forms.Label();
			this.lblCancel = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// txtUserName
			// 
			this.txtUserName.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.txtUserName.Location = new System.Drawing.Point(212, 154);
			this.txtUserName.Multiline = true;
			this.txtUserName.Name = "txtUserName";
			this.txtUserName.Size = new System.Drawing.Size(180, 18);
			this.txtUserName.TabIndex = 0;
			this.txtUserName.Text = "";
			// 
			// txtPassWord
			// 
			this.txtPassWord.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.txtPassWord.Location = new System.Drawing.Point(214, 206);
			this.txtPassWord.Multiline = true;
			this.txtPassWord.Name = "txtPassWord";
			this.txtPassWord.PasswordChar = '*';
			this.txtPassWord.Size = new System.Drawing.Size(168, 16);
			this.txtPassWord.TabIndex = 1;
			this.txtPassWord.Text = "";
			// 
			// txtAgPass
			// 
			this.txtAgPass.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.txtAgPass.Location = new System.Drawing.Point(212, 254);
			this.txtAgPass.Multiline = true;
			this.txtAgPass.Name = "txtAgPass";
			this.txtAgPass.PasswordChar = '*';
			this.txtAgPass.Size = new System.Drawing.Size(170, 18);
			this.txtAgPass.TabIndex = 2;
			this.txtAgPass.Text = "";
			// 
			// txtName
			// 
			this.txtName.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.txtName.Location = new System.Drawing.Point(210, 304);
			this.txtName.Multiline = true;
			this.txtName.Name = "txtName";
			this.txtName.Size = new System.Drawing.Size(130, 16);
			this.txtName.TabIndex = 3;
			this.txtName.Text = "";
			// 
			// radMan
			// 
			this.radMan.BackColor = System.Drawing.Color.Transparent;
			this.radMan.Location = new System.Drawing.Point(240, 356);
			this.radMan.Name = "radMan";
			this.radMan.Size = new System.Drawing.Size(54, 24);
			this.radMan.TabIndex = 4;
			this.radMan.Text = " 男";
			this.radMan.CheckedChanged += new System.EventHandler(this.radMan_CheckedChanged_1);
			// 
			// radLady
			// 
			this.radLady.BackColor = System.Drawing.Color.Transparent;
			this.radLady.Location = new System.Drawing.Point(350, 356);
			this.radLady.Name = "radLady";
			this.radLady.Size = new System.Drawing.Size(58, 24);
			this.radLady.TabIndex = 5;
			this.radLady.Text = " 女";
			this.radLady.CheckedChanged += new System.EventHandler(this.radLady_CheckedChanged_1);
			// 
			// txtAge
			// 
			this.txtAge.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.txtAge.Location = new System.Drawing.Point(212, 404);
			this.txtAge.Multiline = true;
			this.txtAge.Name = "txtAge";
			this.txtAge.Size = new System.Drawing.Size(170, 18);
			this.txtAge.TabIndex = 6;
			this.txtAge.Text = "";
			// 
			// txtTel
			// 
			this.txtTel.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.txtTel.Location = new System.Drawing.Point(214, 454);
			this.txtTel.Multiline = true;
			this.txtTel.Name = "txtTel";
			this.txtTel.Size = new System.Drawing.Size(168, 18);
			this.txtTel.TabIndex = 7;
			this.txtTel.Text = "";
			// 
			// txtAddress
			// 
			this.txtAddress.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.txtAddress.Location = new System.Drawing.Point(212, 504);
			this.txtAddress.Multiline = true;
			this.txtAddress.Name = "txtAddress";
			this.txtAddress.Size = new System.Drawing.Size(330, 18);
			this.txtAddress.TabIndex = 8;
			this.txtAddress.Text = "";
			// 
			// lblOK
			// 
			this.lblOK.BackColor = System.Drawing.Color.Transparent;
			this.lblOK.Location = new System.Drawing.Point(344, 560);
			this.lblOK.Name = "lblOK";
			this.lblOK.Size = new System.Drawing.Size(142, 22);
			this.lblOK.TabIndex = 11;
			this.lblOK.Click += new System.EventHandler(this.lblOK_Click);
			// 
			// lblCancel
			// 
			this.lblCancel.BackColor = System.Drawing.Color.Transparent;
			this.lblCancel.Location = new System.Drawing.Point(110, 560);
			this.lblCancel.Name = "lblCancel";
			this.lblCancel.Size = new System.Drawing.Size(142, 22);
			this.lblCancel.TabIndex = 12;
			this.lblCancel.Click += new System.EventHandler(this.lblCancel_Click);
			// 
			// RegisterAccount
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(596, 611);
			this.Controls.Add(this.lblCancel);
			this.Controls.Add(this.lblOK);
			this.Controls.Add(this.txtAddress);
			this.Controls.Add(this.txtTel);
			this.Controls.Add(this.txtAge);
			this.Controls.Add(this.txtName);
			this.Controls.Add(this.txtAgPass);
			this.Controls.Add(this.txtPassWord);
			this.Controls.Add(this.txtUserName);
			this.Controls.Add(this.radLady);
			this.Controls.Add(this.radMan);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.Name = "RegisterAccount";
			this.Text = "注冊帳號";
			this.ResumeLayout(false);

		}
		#endregion


		private void radMan_CheckedChanged_1(object sender, System.EventArgs e)
		{
		
			sex="男";
		}

		private void radLady_CheckedChanged_1(object sender, System.EventArgs e)
		{
			sex="女";
		
		}

		private void lblCancel_Click(object sender, System.EventArgs e)
		{
			//注冊取消事件
			this.Dispose();
		}

		#region  注冊提交事件
		private void lblOK_Click(object sender, System.EventArgs e)
			
		{
			//注冊提交事件
			userName=txtUserName.Text;
			passWord=txtPassWord.Text;
			aPassWord=txtAgPass.Text;
			name=txtName.Text;
			tel=txtTel.Text;
			address=txtAddress.Text;

			//判斷用戶輸入是否為空
			if(userName.Length==0)
			{
				MessageBox.Show("用戶名不能為空!","提示");
				return;
				
			}
			else
			{
				if(userName.Length<6)
				{
					MessageBox.Show("用戶名的長度至少為6位!只能是英文與數字!","提示");
					return;

				}
				//判斷密碼輸入否?
				if(passWord.Length==0)
				{
					MessageBox.Show("密碼不能為空!","提示");
					return;
				}
				else
				{
					if(passWord.Length<6)
					{
						MessageBox.Show("密碼的長度至少為6位!","提示");
						return;

					}
					else
					{}
					
					//判斷確認密碼輸入否?
					if(aPassWord.Length==0)
					{
						MessageBox.Show("確認密碼不能為空!","提示");
						return;
					}
					else
					{
						if(aPassWord.Length<6)
						{
							MessageBox.Show("確認密碼的長度至少為6位!","提示");
							return;

						}
						else
						{}
						//判斷輸入的兩次密碼是否相同
						if(passWord==aPassWord)
						{
							//判斷真實姓名是否輸入
							if(name.Length==0)
							{
								MessageBox.Show("真實姓名不能為空!","提示");
								return;
							}
							else
							{
								try
								{
									age=int.Parse(txtAge.Text);//要處理非數字異常
								}
								catch
								{
									MessageBox.Show("輸入錯誤,請輸入數字!","提示");
									return;
								}

								//判斷用戶是否輸入年齡
								if(age<18)
								{
									MessageBox.Show("對不起,你的年齡太小無法注冊!","提示");
									return;
								}
								else
								{
									//判斷是否輸入電話
									if(tel.Length==0)
									{
										MessageBox.Show("對不起,請輸入你的聯系電話!","提示");
										return;
									}
									else
									{
										if(tel.Length>12||tel.Length<10)
										{
											MessageBox.Show("對不起,請輸入電話的正確格式!\n 如 :027-5201314 或 13123456789","提示");
											return;
										}
										else
										{
											//聯系地址是否輸入
											if(address.Length==0)
											{
												
												MessageBox.Show("對不起,請輸入你的聯系地址!","提示");
												return;
											}
											else
											{
												//傳參
												LoginEntity data3=new LoginEntity();
												data3._UserName=userName;
												data3._PassWord=aPassWord;
												data3._Name=name;
												data3._Sex=sex;
												data3._Age=age;
												data3._Tel=tel;
												data3._Address=address;

												Handle panduan=new Handle();
												//判斷用戶名是否存在
												if(panduan.UserNameLive(data3))
												{
													MessageBox.Show("該用戶名已經存在,請重新注冊!","提示");
													//用戶名存在,清空密碼
													txtUserName.Text="";
													txtPassWord.Text="";
													txtAgPass.Text="";
													return;
												}
												else
												{
													//注冊連到數據庫
													if(panduan.Registeruser(data3))
													{
														MessageBox.Show("注冊成功!","提示");
														this.Dispose();
			
													}
													else
													{
														MessageBox.Show("注冊失敗 !請稍后再試!","提示");
														txtPassWord.Text="";
														txtAgPass.Text="";
														return;

													}

												}


											}
										}
									}

								}

							}
						}
						else
						{
							MessageBox.Show("兩次輸入的密碼不能相同!","提示");
							return;

						}

					}

				}
			}
			
		}
		#endregion
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲资源网| 亚洲一区二区三区四区五区黄| 日韩经典中文字幕一区| 欧美日韩国产系列| 日韩av中文字幕一区二区| 91精品国产色综合久久| 蜜臀av一区二区在线观看| 欧美一区二区三区在线视频| 久久97超碰色| 久久久久久97三级| 成人午夜激情片| 亚洲自拍与偷拍| 777午夜精品视频在线播放| 免费成人你懂的| 国产日韩欧美不卡在线| 日本精品一区二区三区四区的功能| 一区二区三区在线高清| 91精品国产入口在线| 国产精品1区2区| 一区二区三区在线视频免费| 欧美日韩亚洲不卡| 精品一区二区三区在线播放视频| 久久精品欧美一区二区三区麻豆| 一本久久a久久免费精品不卡| 亚洲午夜久久久久中文字幕久| 欧美一级午夜免费电影| 国产成人免费av在线| 亚洲精品精品亚洲| 日韩欧美国产成人一区二区| 成人h动漫精品一区二区| 午夜日韩在线观看| 国产欧美日韩精品a在线观看| 色女孩综合影院| 狠狠色丁香久久婷婷综合_中| 国产精品麻豆视频| 欧美一区二区在线免费播放| 成人动漫一区二区在线| 日本特黄久久久高潮| ㊣最新国产の精品bt伙计久久| 在线不卡中文字幕| 99综合影院在线| 久久爱www久久做| 亚洲综合色婷婷| 国产欧美视频一区二区| 欧美精品精品一区| 在线视频亚洲一区| 国产成人免费视频| 久久99在线观看| 天天综合日日夜夜精品| 日韩美女视频一区二区| 亚洲精品在线一区二区| 欧美日韩成人综合| 99久久伊人精品| 精品在线观看视频| 日韩精品一级中文字幕精品视频免费观看| 国产亚洲成aⅴ人片在线观看| 欧美久久久久久蜜桃| 91在线观看成人| 国产传媒欧美日韩成人| 久久精品99国产国产精| 亚洲国产成人av| 亚洲欧洲韩国日本视频| 欧美高清一级片在线观看| 精品国产乱码久久久久久1区2区| 欧美日韩一区三区| 色视频欧美一区二区三区| 99国产精品久久久久久久久久 | 成人深夜福利app| 日本欧美久久久久免费播放网| 亚洲欧美日韩国产综合在线| 中文字幕在线观看不卡视频| 欧美国产成人在线| 国产精品麻豆欧美日韩ww| 国产亚洲欧美一区在线观看| 精品国内二区三区| 欧美大度的电影原声| 精品久久久久久最新网址| 日韩免费观看高清完整版在线观看| 欧美丰满嫩嫩电影| 这里只有精品视频在线观看| 欧美疯狂性受xxxxx喷水图片| 日本精品一区二区三区四区的功能| 色综合久久中文字幕综合网| 成人av在线一区二区三区| 成人a级免费电影| www.成人网.com| 91亚洲国产成人精品一区二区三| av福利精品导航| 色偷偷88欧美精品久久久| 欧洲人成人精品| 欧美日本一区二区在线观看| 欧美精品777| 欧美成人女星排行榜| 久久综合九色综合97婷婷女人 | 一本大道久久a久久综合婷婷| 99riav久久精品riav| 色域天天综合网| 欧美网站大全在线观看| 91精品国产综合久久精品性色| 制服丝袜av成人在线看| 精品国产乱码久久久久久蜜臀| 久久久久久电影| 亚洲乱码中文字幕综合| 亚洲动漫第一页| 精品在线播放午夜| 97久久精品人人爽人人爽蜜臀| 91首页免费视频| 日韩一区二区中文字幕| 久久久亚洲午夜电影| 亚洲欧美在线视频观看| 午夜av电影一区| 国产成人鲁色资源国产91色综| 91免费观看视频在线| 91精品国产入口| 亚洲国产精品av| 亚洲一二三专区| 久久不见久久见免费视频1| a4yy欧美一区二区三区| 欧美日韩国产影片| 久久久久久久国产精品影院| 一区二区三区高清| 黄色精品一二区| 色欧美片视频在线观看| 精品国内二区三区| 一区二区三区在线免费播放| 蜜臀91精品一区二区三区| av一区二区三区黑人| 欧美一级理论性理论a| 欧美激情一区二区三区全黄| 亚洲午夜激情网站| 成人永久看片免费视频天堂| 欧美日韩免费视频| 国产精品乱码一区二三区小蝌蚪| 三级不卡在线观看| 成人av免费在线观看| 日韩三区在线观看| 一区二区三区**美女毛片| 国产精品影视网| 国产日韩精品一区二区浪潮av| 97精品电影院| 国产精品三级电影| 91色九色蝌蚪| 亚洲一二三区在线观看| 91老司机福利 在线| 欧美高清一级片在线观看| 日韩黄色片在线观看| 在线亚洲+欧美+日本专区| 99国产欧美另类久久久精品| 日韩精品中午字幕| 亚洲国产精品一区二区www在线| 成人一区二区三区视频在线观看| 欧美日韩电影在线播放| 亚洲卡通动漫在线| 成人美女在线观看| 久久综合狠狠综合久久激情| 蜜臀av在线播放一区二区三区| 欧美亚洲国产bt| 亚洲欧美偷拍三级| 成人国产亚洲欧美成人综合网| 精品日韩在线观看| 麻豆中文一区二区| 91精品国产综合久久福利软件| 香蕉久久夜色精品国产使用方法| 欧美综合视频在线观看| 一区二区三区电影在线播| 一本一道综合狠狠老| 一区二区三区欧美视频| 91蝌蚪porny| 中文字幕一区二区三| 成人激情开心网| 一区二区中文视频| 99久久国产免费看| 亚洲私人黄色宅男| 91在线国产福利| 亚洲另类春色国产| 欧美日韩国产在线播放网站| 婷婷久久综合九色综合绿巨人| 欧美日韩另类一区| 日韩福利视频导航| 欧美精品一区二区三区蜜桃视频| 精品一区二区在线视频| 久久亚洲影视婷婷| 成人一级片在线观看| 国产精品白丝在线| 色网综合在线观看| 婷婷夜色潮精品综合在线| 日韩欧美中文一区| 国产福利视频一区二区三区| 中文字幕av不卡| 色一情一伦一子一伦一区| 亚洲成av人片在线观看无码| 制服视频三区第一页精品| 久久成人精品无人区| 国产精品免费久久久久| 欧洲一区二区三区免费视频| 日韩专区欧美专区| 久久久久88色偷偷免费| 99re这里都是精品| 青青国产91久久久久久| 国产欧美综合在线|