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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? loginfrm.cs

?? 完整的進(jìn)銷存系統(tǒng) 本人已經(jīng)測試 對(duì)系統(tǒng)的初學(xué)者很有幫助
?? CS
字號(hào):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace 進(jìn)銷存管理系統(tǒng)
{
	/// <summary>
	/// LoginFrm 的摘要說明。
	/// </summary>
	public class LoginFrm : System.Windows.Forms.Form
	{
		public static bool blCanLogin = false;  //記錄能否檢驗(yàn)是否通過
		public static string strUser = "";      //記錄用戶名
		public static string strDepartment = "";//記錄通過者所屬部門

		private DataSet ds = new DataSet();
		private DataTable myTable;
		private DataRow myRow;
		private string sendStrSQL = "SELECT * from 用戶清單";
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Button btn_Cancel;
		private System.Windows.Forms.Button btn_Login;
		private System.Windows.Forms.TextBox txt_ID;
		private System.Windows.Forms.TextBox txt_Name;
		private System.Windows.Forms.TextBox txt_Pwd;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label LB_Warning;
		/// <summary>
		/// 必需的設(shè)計(jì)器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public LoginFrm()
		{
			//
			// Windows 窗體設(shè)計(jì)器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
			//
			//初始化窗體時(shí),從數(shù)據(jù)庫中的“用戶清單”表中檢索數(shù)據(jù)并保存在mytable中
			LinkDataBase link = new LinkDataBase();	
			string sendTableName = "用戶清單";
			this.ds = link.SelectDataBase(sendStrSQL,sendTableName);
			this.myTable = ds.Tables[0];
		}

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

		#region Windows 窗體設(shè)計(jì)器生成的代碼
		/// <summary>
		/// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(LoginFrm));
			this.btn_Cancel = new System.Windows.Forms.Button();
			this.btn_Login = new System.Windows.Forms.Button();
			this.txt_ID = new System.Windows.Forms.TextBox();
			this.txt_Name = new System.Windows.Forms.TextBox();
			this.txt_Pwd = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.LB_Warning = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// btn_Cancel
			// 
			this.btn_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btn_Cancel.Location = new System.Drawing.Point(158, 131);
			this.btn_Cancel.Name = "btn_Cancel";
			this.btn_Cancel.Size = new System.Drawing.Size(48, 24);
			this.btn_Cancel.TabIndex = 5;
			this.btn_Cancel.Text = "取消";
			this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click);
			// 
			// btn_Login
			// 
			this.btn_Login.Location = new System.Drawing.Point(74, 131);
			this.btn_Login.Name = "btn_Login";
			this.btn_Login.Size = new System.Drawing.Size(48, 24);
			this.btn_Login.TabIndex = 4;
			this.btn_Login.Text = "登錄";
			this.btn_Login.Click += new System.EventHandler(this.btn_Login_Click);
			// 
			// txt_ID
			// 
			this.txt_ID.Location = new System.Drawing.Point(104, 17);
			this.txt_ID.Name = "txt_ID";
			this.txt_ID.Size = new System.Drawing.Size(136, 21);
			this.txt_ID.TabIndex = 1;
			this.txt_ID.Text = "";
			this.txt_ID.Leave += new System.EventHandler(this.txt_ID_Leave);
			// 
			// txt_Name
			// 
			this.txt_Name.Location = new System.Drawing.Point(104, 54);
			this.txt_Name.Name = "txt_Name";
			this.txt_Name.Size = new System.Drawing.Size(136, 21);
			this.txt_Name.TabIndex = 2;
			this.txt_Name.Text = "";
			// 
			// txt_Pwd
			// 
			this.txt_Pwd.Location = new System.Drawing.Point(104, 94);
			this.txt_Pwd.Name = "txt_Pwd";
			this.txt_Pwd.PasswordChar = '*';
			this.txt_Pwd.Size = new System.Drawing.Size(136, 21);
			this.txt_Pwd.TabIndex = 3;
			this.txt_Pwd.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(40, 17);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 23);
			this.label1.TabIndex = 6;
			this.label1.Text = "用戶號(hào):";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(40, 54);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 23);
			this.label2.TabIndex = 7;
			this.label2.Text = "用戶名:";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(40, 94);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(40, 23);
			this.label3.TabIndex = 8;
			this.label3.Text = "密碼:";
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.LB_Warning);
			this.groupBox1.Location = new System.Drawing.Point(0, 156);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(280, 32);
			this.groupBox1.TabIndex = 10;
			this.groupBox1.TabStop = false;
			// 
			// LB_Warning
			// 
			this.LB_Warning.Location = new System.Drawing.Point(54, 13);
			this.LB_Warning.Name = "LB_Warning";
			this.LB_Warning.Size = new System.Drawing.Size(172, 15);
			this.LB_Warning.TabIndex = 10;
			this.LB_Warning.Text = "初始用戶號(hào):1   密碼:sys";
			this.LB_Warning.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// LoginFrm
			// 
			this.AcceptButton = this.btn_Login;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.CancelButton = this.btn_Cancel;
			this.ClientSize = new System.Drawing.Size(280, 189);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.txt_Pwd);
			this.Controls.Add(this.txt_Name);
			this.Controls.Add(this.txt_ID);
			this.Controls.Add(this.btn_Login);
			this.Controls.Add(this.btn_Cancel);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "LoginFrm";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "用戶登錄";
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		//-------------根據(jù)輸入的用戶名和密碼進(jìn)行登錄校驗(yàn)------------
		private void btn_Login_Click(object sender, System.EventArgs e)
		{
			for (int i=0;i<myTable.Rows.Count;i++)
			{
				this.myRow = myTable.Rows[i];
				//只有當(dāng)輸入的用戶名和密碼同時(shí)對(duì)應(yīng)上數(shù)據(jù)庫中記錄時(shí),才能通過校驗(yàn)
				if (myRow[0].ToString().Trim()==this.txt_ID.Text.ToString().Trim() && myRow[4].ToString().Trim()==this.txt_Pwd.Text.ToString().Trim())
				{					
					blCanLogin = true;
					strUser = myRow[0].ToString().Trim();//保存用戶名
					strDepartment = myRow[1].ToString().Trim();//保存部門名稱
					this.Close();//關(guān)閉窗體
					return;
				}
			}
			MessageBox.Show( "您輸入的用戶號(hào)或密碼不正確!");
			return;
		}

		//-------關(guān)閉登錄窗口,不進(jìn)行任何操作-----------
		private void btn_Cancel_Click(object sender, System.EventArgs e)
		{
			blCanLogin = false;
			this.Close();
		}
        //----當(dāng)鼠標(biāo)離開用戶號(hào)填寫框,立即從數(shù)據(jù)庫中檢索出對(duì)于用戶名稱并顯示----
		private void txt_ID_Leave(object sender, System.EventArgs e)
		{
			this.txt_Name.Text = "";
			for (int i=0;i<myTable.Rows.Count;i++)
			{
				this.myRow = myTable.Rows[i];
				if (myRow[0].ToString().Trim()==this.txt_ID.Text.ToString().Trim())
				{
					this.txt_Name.Text = myRow[2].ToString().Trim();
					this.txt_Pwd.Focus();
				}
			}
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人永久免费视频| 136国产福利精品导航| 色婷婷亚洲综合| 亚洲视频精选在线| 日本韩国欧美一区二区三区| 依依成人综合视频| 欧美日韩亚洲国产综合| 美女在线视频一区| 久久久精品tv| 99精品欧美一区二区蜜桃免费| 一区二区三区国产豹纹内裤在线| 欧美日韩精品一区二区天天拍小说 | 欧美日韩黄视频| 奇米精品一区二区三区在线观看 | 午夜精品久久久久久| 91精品国产aⅴ一区二区| 精品一区二区在线免费观看| 中文字幕精品一区二区三区精品| 99re这里只有精品6| 亚洲国产人成综合网站| 精品国一区二区三区| 成人开心网精品视频| 亚洲成人精品一区| 337p粉嫩大胆噜噜噜噜噜91av| 99久久久国产精品免费蜜臀| 亚州成人在线电影| 欧美国产禁国产网站cc| 欧美日韩国产精品自在自线| 青青草国产成人99久久| 亚洲欧洲韩国日本视频| 欧美日韩久久一区二区| 成人免费视频一区| 首页综合国产亚洲丝袜| 国产欧美视频一区二区三区| 欧美日韩国产欧美日美国产精品| 国产一区二区三区免费播放| 亚洲综合成人网| 国产日韩欧美一区二区三区综合| 欧美在线高清视频| 福利视频网站一区二区三区| 亚洲成人自拍网| 国产精品婷婷午夜在线观看| 欧美一区二区三区四区视频| 99久久er热在这里只有精品66| 麻豆国产欧美一区二区三区| 一区二区三区在线观看视频| 国产目拍亚洲精品99久久精品| 制服丝袜亚洲色图| 91福利小视频| k8久久久一区二区三区| 国产成人亚洲综合色影视| 日韩av午夜在线观看| 亚洲尤物在线视频观看| 国产精品夫妻自拍| 久久中文娱乐网| 日韩视频免费观看高清在线视频| 欧美亚洲精品一区| 91在线国产福利| 国产老妇另类xxxxx| 日韩国产精品91| 午夜一区二区三区在线观看| 亚洲天堂网中文字| 国产精品电影院| 欧美激情一区二区| 国产日产欧美一区| 久久综合久色欧美综合狠狠| 欧美一区二区国产| 欧美精品v国产精品v日韩精品 | 天堂va蜜桃一区二区三区漫画版| 亚洲视频 欧洲视频| 最新国产精品久久精品| 国产亚洲成av人在线观看导航| 欧美大胆一级视频| 91精品国产色综合久久ai换脸| 欧美日韩免费电影| 制服丝袜日韩国产| 日韩一区二区免费高清| 日韩视频123| 亚洲精品一区二区精华| 精品欧美黑人一区二区三区| 日韩欧美一区二区视频| 日韩欧美成人一区| 2欧美一区二区三区在线观看视频| 日韩欧美视频一区| 26uuu国产电影一区二区| 国产日韩精品一区二区三区在线| 中文久久乱码一区二区| 亚洲视频一二三区| 亚洲一区二区av在线| 日韩专区一卡二卡| 久久国产麻豆精品| 国产成人自拍高清视频在线免费播放| 国产精品综合二区| 白白色 亚洲乱淫| 在线视频欧美精品| 欧美一区二区在线看| xf在线a精品一区二区视频网站| 国产丝袜在线精品| 亚洲女性喷水在线观看一区| 亚洲成人精品一区| 国产美女精品人人做人人爽| eeuss影院一区二区三区| 欧美在线免费观看亚洲| 欧美一区二区免费观在线| 久久综合视频网| 一区二区日韩av| 久久av老司机精品网站导航| 成人不卡免费av| 欧美日韩在线播| 国产三级一区二区三区| 依依成人精品视频| 久久99国产精品麻豆| eeuss国产一区二区三区| 欧美日韩成人在线一区| 久久综合视频网| 亚洲一区二区在线免费看| 久久精品国产99国产| 99v久久综合狠狠综合久久| 欧美蜜桃一区二区三区| 中文字幕av一区 二区| 午夜精品久久久久久久蜜桃app| 狠狠色狠狠色综合系列| 色哟哟欧美精品| 久久―日本道色综合久久| 亚洲一区二区三区爽爽爽爽爽| 韩国女主播一区二区三区| 色悠悠亚洲一区二区| 久久婷婷色综合| 午夜日韩在线观看| 91亚洲国产成人精品一区二区三| 欧美成人三级在线| 夜夜嗨av一区二区三区网页| 国产在线看一区| 欧美精品色一区二区三区| 成人欧美一区二区三区| 精品一区二区三区香蕉蜜桃| 欧美午夜精品一区二区三区| 久久久久成人黄色影片| 蜜臀av亚洲一区中文字幕| 色妹子一区二区| 国产精品嫩草影院com| 久久精工是国产品牌吗| 欧美日本免费一区二区三区| 中文字幕一区二区三| 国产精品91一区二区| 日韩一区二区三区在线视频| 亚洲午夜免费视频| 99久久精品免费看| 久久久精品影视| 精品一区二区三区视频| 欧美一区永久视频免费观看| 亚洲午夜精品网| 色婷婷久久久亚洲一区二区三区| 中文字幕 久热精品 视频在线| 麻豆成人综合网| 欧美一区二区三区四区视频| 亚洲成人动漫在线免费观看| 欧美亚洲一区三区| 一区二区三区精品在线观看| 色综合久久久久网| 亚洲视频一区二区在线| 99国产精品久久久久久久久久久| 国产精品伦一区| 成人av在线影院| 亚洲欧洲无码一区二区三区| 成人av网址在线观看| 国产精品国产三级国产三级人妇| 成人综合在线视频| 国产精品视频yy9299一区| 懂色一区二区三区免费观看| 国产欧美日韩三级| 成人污污视频在线观看| 中文文精品字幕一区二区| 成人免费毛片a| 中文字幕中文在线不卡住| 91论坛在线播放| 亚洲精品国产一区二区精华液 | 久久精品人人做人人综合| 国产精品一区二区不卡| 久久精品无码一区二区三区| 国产大片一区二区| 欧美—级在线免费片| 欧美精品xxxxbbbb| 精品在线播放午夜| 国产日韩欧美综合在线| 97久久超碰国产精品电影| 一区二区视频免费在线观看| 欧美日本国产视频| 久久草av在线| 国产精品视频免费| 欧美在线短视频| 九九热在线视频观看这里只有精品| 精品日韩在线观看| 成人免费的视频| 亚洲国产aⅴ天堂久久| 精品人在线二区三区| 不卡一区二区三区四区| 亚洲第一在线综合网站| 久久女同性恋中文字幕| 色爱区综合激月婷婷|