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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? popedommanage.cs

?? 100%原創(chuàng) 進(jìn)銷(xiāo)存管理系統(tǒng) .net vs2003開(kāi)發(fā)。下載后請(qǐng)保留作者版權(quán): danis 2007年11月28日 版權(quán)所有
?? CS
字號(hào):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace 進(jìn)銷(xiāo)存管理系統(tǒng)
{
	/// <summary>
	/// PopedomManage 的摘要說(shuō)明。
	/// </summary>
	public class PopedomManage : System.Windows.Forms.Form
	{
		//設(shè)置數(shù)據(jù)庫(kù)連接和適配器
		private DataSet ds = new DataSet();
		private	LinkDataBase link = new LinkDataBase();	
		private string sendTableName = "用戶(hù)清單";
		private string sendStrSQL = "SELECT * from 用戶(hù)清單 where 姓名<>'sys'";
		private DataTable popedomDataTable = new DataTable();
		private bool blInitial = true;

		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.CheckedListBox chkLst_Priority;
		private System.Windows.Forms.DataGrid dgrd_Popedom;
		/// <summary>
		/// 必需的設(shè)計(jì)器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

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

			//
			// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
			//
		}

		/// <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()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.chkLst_Priority = new System.Windows.Forms.CheckedListBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.dgrd_Popedom = new System.Windows.Forms.DataGrid();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dgrd_Popedom)).BeginInit();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.chkLst_Priority);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.dgrd_Popedom);
			this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.groupBox1.Location = new System.Drawing.Point(0, 0);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(648, 357);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			// 
			// chkLst_Priority
			// 
			this.chkLst_Priority.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.chkLst_Priority.CheckOnClick = true;
			this.chkLst_Priority.Items.AddRange(new object[] {
																																																					"商品資料維護(hù)",
																																																					"供貨商資料維護(hù)",
																																																					"客戶(hù)資料維護(hù)",
																																																					"進(jìn)貨單",
																																																					"銷(xiāo)售單",
																																																					"庫(kù)存查詢(xún)",
																																																					"權(quán)限管理"});
			this.chkLst_Priority.Location = new System.Drawing.Point(456, 52);
			this.chkLst_Priority.Name = "chkLst_Priority";
			this.chkLst_Priority.Size = new System.Drawing.Size(172, 276);
			this.chkLst_Priority.TabIndex = 2;
			this.chkLst_Priority.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.chkLst_Priority_ItemCheck);
			// 
			// label2
			// 
			this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.label2.Location = new System.Drawing.Point(450, 28);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(100, 16);
			this.label2.TabIndex = 5;
			this.label2.Text = "權(quán)限:";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(33, 28);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(100, 16);
			this.label1.TabIndex = 4;
			this.label1.Text = "用戶(hù):";
			// 
			// dgrd_Popedom
			// 
			this.dgrd_Popedom.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.dgrd_Popedom.CaptionVisible = false;
			this.dgrd_Popedom.DataMember = "";
			this.dgrd_Popedom.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dgrd_Popedom.Location = new System.Drawing.Point(26, 52);
			this.dgrd_Popedom.Name = "dgrd_Popedom";
			this.dgrd_Popedom.ReadOnly = true;
			this.dgrd_Popedom.Size = new System.Drawing.Size(412, 274);
			this.dgrd_Popedom.TabIndex = 1;
			this.dgrd_Popedom.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgrd_Popedom_MouseUp);
			// 
			// PopedomManage
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(648, 357);
			this.Controls.Add(this.groupBox1);
			this.Name = "PopedomManage";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "權(quán)限管理";
			this.Load += new System.EventHandler(this.PopedomManage_Load);
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dgrd_Popedom)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion
  
		//窗體創(chuàng)建時(shí),將用戶(hù)的權(quán)限數(shù)據(jù)讀入并顯示
		private void PopedomManage_Load(object sender, System.EventArgs e)
		{
			this.ds = this.link.SelectDataBase(sendStrSQL,sendTableName);
			this.dgrd_Popedom.DataSource = ds.Tables[0];
			this.DataGridStateControl();
			this.dgrd_Popedom.Select(0);
			string selectedUserID = this.ds.Tables[0].Rows[0][0].ToString();
			string tempStrSQL = "select 權(quán)限名稱(chēng) from 權(quán)限清單 " + " where 用戶(hù)編號(hào) = '" + selectedUserID + "'";
			popedomDataTable = link.SelectDataBase(tempStrSQL);//讀入該用戶(hù)的權(quán)限
			for (int i=0;i<popedomDataTable.Rows.Count;i++)//根據(jù)權(quán)限設(shè)置ListBox
			{
				for (int j=0;j<this.chkLst_Priority.Items.Count;j++)
				{
					if (this.chkLst_Priority.Items[j].ToString().Trim() == popedomDataTable.Rows[i][0].ToString().Trim())
					{
						this.chkLst_Priority.SetItemChecked(j,true);
					}
				}
			}
		}

		//設(shè)置顯示用戶(hù)信息的表
		private void DataGridStateControl()
		{
			DataGridTableStyle ts = new DataGridTableStyle();
			DataGridNoActiveCellColumn aColumnTextColumn;
			ts.AlternatingBackColor = Color.SkyBlue;
			ts.HeaderBackColor = Color.SkyBlue;
			ts.MappingName = this.ds.Tables[0].TableName;
			ts.AllowSorting = false;
			int numCols = this.ds.Tables[0].Columns.Count;
			for (int i = 0;i< numCols;i++)
			{
				aColumnTextColumn = new DataGridNoActiveCellColumn();
				aColumnTextColumn.MappingName = this.ds.Tables[0].Columns[i].ColumnName;
				aColumnTextColumn.HeaderText = this.ds.Tables[0].Columns[i].ColumnName;
				aColumnTextColumn.NullText = "";
				aColumnTextColumn.Format = "F";				
				ts.GridColumnStyles.Add(aColumnTextColumn);
			}
			this.dgrd_Popedom.TableStyles.Add(ts);
		}

		
		//改變用戶(hù)的權(quán)限,并向數(shù)據(jù)庫(kù)中提交
		private void chkLst_Priority_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e)
		{
			if (blInitial == false)
			{
				if (e.CurrentValue.ToString() == "Unchecked")
				{
					try
					{
						string strUserName = this.dgrd_Popedom[this.dgrd_Popedom.CurrentCell.RowNumber,0].ToString().Trim();
						string strPopedom = this.chkLst_Priority.SelectedItem.ToString();
						string tempSendStrSQL = "insert 權(quán)限清單 (用戶(hù)編號(hào),權(quán)限名稱(chēng)) values ('" + strUserName +"','"+ strPopedom +"')";
						this.link.UpdateDataBase(tempSendStrSQL);
					}
					catch
					{
						MessageBox.Show("數(shù)據(jù)庫(kù)中的權(quán)限修改出錯(cuò),請(qǐng)重試!","信息");
					}
				}
				else if (e.CurrentValue.ToString() == "Checked")
				{
					try
					{
						string strUserName = this.dgrd_Popedom[this.dgrd_Popedom.CurrentCell.RowNumber,0].ToString().Trim();
						string strPopedom = this.chkLst_Priority.SelectedItem.ToString();
						string tempSendStrSQL = "delete from 權(quán)限清單 where (用戶(hù)編號(hào) = '" + strUserName +"'" +
							" and 權(quán)限名稱(chēng) = '" + strPopedom + "')";
						this.link.UpdateDataBase(tempSendStrSQL);
					}
					catch
					{
						MessageBox.Show("數(shù)據(jù)庫(kù)中的權(quán)限修改出錯(cuò)!","信息");
					}
				}
			}
		}

		private void dgrd_Popedom_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			if (this.dgrd_Popedom.CurrentCell.RowNumber >= this.ds.Tables[0].Rows.Count)//防止出現(xiàn)所選的用戶(hù)不在數(shù)據(jù)表中的情況
			{
				return;
			}
			this.chkLst_Priority.Enabled = true;
			blInitial = true; 
			for (int i=0;i<this.chkLst_Priority.Items.Count;i++)//將listBox中所有權(quán)限設(shè)為未選中
			{
				this.chkLst_Priority.SetItemChecked(i,false);
			}
			int intRowNumber = this.dgrd_Popedom.CurrentCell.RowNumber;
			string selectedUserID = this.ds.Tables[0].Rows[intRowNumber][0].ToString();
			string tempStrSQL = "select 權(quán)限名稱(chēng) from 權(quán)限清單 " + " where 用戶(hù)編號(hào) = '" + selectedUserID + "'";
			popedomDataTable = link.SelectDataBase(tempStrSQL);
			for (int i=0;i<popedomDataTable.Rows.Count;i++)
			{
				for (int j=0;j<this.chkLst_Priority.Items.Count;j++)
				{
					if (this.chkLst_Priority.Items[j].ToString().Trim() == popedomDataTable.Rows[i][0].ToString().Trim())
					{
						this.chkLst_Priority.SetItemChecked(j,true);
					}
				}
			}			
			blInitial = false;
		}
	}
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品女主播av| 五月天久久比比资源色| 久久九九影视网| 日韩美女主播在线视频一区二区三区| 欧美三级韩国三级日本三斤| 午夜国产精品影院在线观看| 日韩vs国产vs欧美| 国产精品99久久久久久久女警| 天堂蜜桃一区二区三区| 亚洲成人在线观看视频| 亚洲6080在线| 免费三级欧美电影| 久久99精品久久久| 国产在线精品视频| 成人小视频在线观看| 不卡影院免费观看| 色天使久久综合网天天| 欧美性videosxxxxx| 91 com成人网| 日韩精品专区在线影院观看| www精品美女久久久tv| 国产亚洲va综合人人澡精品| 欧美高清在线精品一区| 亚洲日本免费电影| 91在线观看地址| 亚洲一区在线免费观看| 欧美电影免费观看高清完整版在线观看| 国产三级三级三级精品8ⅰ区| 4438x成人网最大色成网站| 91麻豆精品国产无毒不卡在线观看 | 国产精品女主播av| 国产精品三级视频| 欧美经典一区二区| 夜夜爽夜夜爽精品视频| 国产精品成人一区二区艾草| 国产欧美日韩不卡免费| 亚洲18色成人| 欧美一二三区在线| 国产天堂亚洲国产碰碰| 国产一区啦啦啦在线观看| 91福利精品第一导航| 国产亚洲欧洲一区高清在线观看| 日韩精品高清不卡| 欧美日韩国产123区| 伊人夜夜躁av伊人久久| 99这里都是精品| 国产精品一二三四| 国产欧美一区二区精品性色超碰| 青青草一区二区三区| 欧美精品日韩精品| 亚洲第一久久影院| 午夜精品久久久久久久99水蜜桃 | 亚洲第一二三四区| 亚洲久草在线视频| 视频在线观看91| 国产精品免费视频观看| 不卡一二三区首页| 欧美综合色免费| 亚洲欧美韩国综合色| 另类小说图片综合网| 久久精品国内一区二区三区| 免费观看一级特黄欧美大片| 怡红院av一区二区三区| 亚洲va国产天堂va久久en| 亚洲一区二区三区国产| 老汉av免费一区二区三区| 六月丁香综合在线视频| 日韩三级电影网址| 日韩高清不卡在线| 91精品国产麻豆国产自产在线| 高清不卡在线观看| 欧美天堂亚洲电影院在线播放| 欧美一区二区三级| 国产三级精品在线| 国内精品久久久久影院一蜜桃| 一级女性全黄久久生活片免费| 精品第一国产综合精品aⅴ| 日本一区二区视频在线观看| 成人一区二区在线观看| 亚洲国产精品v| 日韩一区精品视频| 亚洲成人免费视| 日韩vs国产vs欧美| 亚洲一区二区在线视频| 蜜桃在线一区二区三区| 国产女主播一区| 日韩国产在线观看一区| 欧美巨大另类极品videosbest | 国产日韩精品一区二区三区在线| 亚洲精品成人少妇| 中文字幕日本不卡| 亚洲人亚洲人成电影网站色| 国产综合久久久久影院| 欧美一级片免费看| 欧美日韩高清一区二区不卡| 国产精品国产自产拍在线| 国产米奇在线777精品观看| 日韩一区二区在线免费观看| 亚洲国产中文字幕| 欧美少妇性性性| 亚洲午夜一区二区三区| 欧美在线观看一二区| 亚洲综合一区二区精品导航| 色婷婷综合久久久| 亚洲精品少妇30p| 91黄色免费版| 一区二区三区在线视频播放| 91国偷自产一区二区开放时间| 亚洲人xxxx| 在线观看精品一区| 亚洲高清在线视频| 欧美日免费三级在线| 午夜精品福利一区二区三区av | 精彩视频一区二区三区| 精品国产一区二区精华| 国产一区二区福利| 亚洲国产精品av| 91视频com| 香蕉成人啪国产精品视频综合网| 欧美日产国产精品| 麻豆精品一区二区三区| 久久久精品中文字幕麻豆发布| 国产大陆a不卡| 亚洲女人的天堂| 欧美日本在线观看| 国模一区二区三区白浆| 国产欧美一区二区在线| 色呦呦日韩精品| 午夜激情综合网| 精品福利一二区| eeuss鲁片一区二区三区在线观看| 亚洲欧美二区三区| 欧美日本韩国一区| 免费成人av资源网| 国产精品欧美精品| 欧美色涩在线第一页| 精品无人码麻豆乱码1区2区| 久久亚洲私人国产精品va媚药| 国产精品久久毛片| a4yy欧美一区二区三区| 最新不卡av在线| 在线电影欧美成精品| 韩国三级在线一区| 亚洲女子a中天字幕| 欧美一区二区在线不卡| 成人国产电影网| 午夜精品福利久久久| 国产午夜精品一区二区| 欧美在线视频日韩| 国产老女人精品毛片久久| 亚洲精品写真福利| 精品国产三级a在线观看| 91蜜桃网址入口| 美女高潮久久久| 亚洲美女偷拍久久| 精品福利一二区| 色丁香久综合在线久综合在线观看| 蜜芽一区二区三区| 亚洲女与黑人做爰| 久久久久久夜精品精品免费| 在线观看国产91| 国产成人啪免费观看软件| 亚洲v中文字幕| 亚洲欧美在线aaa| 精品美女在线播放| 91国在线观看| 高清久久久久久| 美女网站一区二区| 亚洲一区影音先锋| 国产精品视频一二三区| 日韩精品一区二区三区中文精品| 日本韩国视频一区二区| 国产成人午夜精品影院观看视频| 日韩国产精品久久久久久亚洲| 亚洲视频 欧洲视频| 精品国产91乱码一区二区三区| 欧美性三三影院| 9久草视频在线视频精品| 国产剧情在线观看一区二区| 日韩高清一级片| 亚洲一区二区视频| 国产精品免费免费| 久久久久久久国产精品影院| 日韩一区国产二区欧美三区| 欧美日韩午夜精品| 色婷婷久久99综合精品jk白丝| 成人免费看视频| 国产iv一区二区三区| 国产一区二区三区在线观看精品| 日韩精品久久理论片| 性欧美大战久久久久久久久| 亚洲美女视频在线观看| 国产精品久久久久久久久免费樱桃| 久久色中文字幕| 精品成a人在线观看| 精品国产不卡一区二区三区| 日韩一级二级三级精品视频| 7777精品伊人久久久大香线蕉的 | 在线成人高清不卡| 欧美午夜不卡在线观看免费|