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

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

?? configure.cs

?? 主要介紹了系統(tǒng)的需求分析
?? CS
字號(hào):
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;

namespace ManPowerManage.UILevel
{
	/// <summary>
	/// Configure 的摘要說明。
	/// </summary>
	public class Configure : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btnDelete;
		private System.Windows.Forms.Button btnAdd;
		private System.Windows.Forms.Button btnApply;
		private System.Windows.Forms.Button btnExit;
		private System.Windows.Forms.Button btnCancel;
		private OleDbConnection Connection1=null;
		private OleDbCommand  Command1=null;
		private OleDbDataReader DataReader1=null;
		private string commandStr;
		private string connectionStr;
		private string dataTable;
		private bool add;
		private System.Windows.Forms.ListBox listBox1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.ComboBox comboBox1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;

			
		/// <summary>
		/// 必需的設(shè)計(jì)器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Configure()
		{
			//
			// Windows 窗體設(shè)計(jì)器支持所必需的
			//
			InitializeComponent();
			this.connectionStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +Application.StartupPath + "\\ManPowerManage.mdb"; 
			this.Connection1=new OleDbConnection(this.connectionStr);
			this.Command1=new OleDbCommand();
			this.Command1.Connection=this.Connection1;
			this.dataTable="Department";
			this.add=false;
			//
			// 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()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Configure));
			this.btnDelete = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.btnApply = new System.Windows.Forms.Button();
			this.btnExit = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.listBox1 = new System.Windows.Forms.ListBox();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.comboBox1 = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// btnDelete
			// 
			this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
			this.btnDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnDelete.Location = new System.Drawing.Point(16, 96);
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.Size = new System.Drawing.Size(56, 24);
			this.btnDelete.TabIndex = 61;
			this.btnDelete.Text = "刪除";
			this.btnDelete.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
			this.btnAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnAdd.Location = new System.Drawing.Point(16, 56);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new System.Drawing.Size(56, 24);
			this.btnAdd.TabIndex = 59;
			this.btnAdd.Text = "添加";
			this.btnAdd.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// btnApply
			// 
			this.btnApply.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnApply.Image = ((System.Drawing.Image)(resources.GetObject("btnApply.Image")));
			this.btnApply.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnApply.Location = new System.Drawing.Point(16, 224);
			this.btnApply.Name = "btnApply";
			this.btnApply.Size = new System.Drawing.Size(56, 24);
			this.btnApply.TabIndex = 58;
			this.btnApply.Text = "確定";
			this.btnApply.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnApply.Click += new System.EventHandler(this.btnApply_Click);
			// 
			// btnExit
			// 
			this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnExit.Image = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
			this.btnExit.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnExit.Location = new System.Drawing.Point(16, 312);
			this.btnExit.Name = "btnExit";
			this.btnExit.Size = new System.Drawing.Size(56, 24);
			this.btnExit.TabIndex = 56;
			this.btnExit.Text = "退出";
			this.btnExit.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
			// 
			// btnCancel
			// 
			this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnCancel.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.Image")));
			this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnCancel.Location = new System.Drawing.Point(16, 184);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(56, 24);
			this.btnCancel.TabIndex = 57;
			this.btnCancel.Text = "取消";
			this.btnCancel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
			// 
			// listBox1
			// 
			this.listBox1.BackColor = System.Drawing.SystemColors.Window;
			this.listBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.listBox1.Font = new System.Drawing.Font("楷體_GB2312", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.listBox1.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.listBox1.ItemHeight = 21;
			this.listBox1.Location = new System.Drawing.Point(56, 160);
			this.listBox1.Name = "listBox1";
			this.listBox1.ScrollAlwaysVisible = true;
			this.listBox1.Size = new System.Drawing.Size(200, 191);
			this.listBox1.TabIndex = 62;
			// 
			// textBox1
			// 
			this.textBox1.BackColor = System.Drawing.Color.LightYellow;
			this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.textBox1.Enabled = false;
			this.textBox1.Location = new System.Drawing.Point(112, 96);
			this.textBox1.Name = "textBox1";
			this.textBox1.TabIndex = 64;
			this.textBox1.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(48, 96);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 23);
			this.label1.TabIndex = 65;
			this.label1.Text = "新記錄";
			// 
			// comboBox1
			// 
			this.comboBox1.Items.AddRange(new object[] {
														   "部門",
														   "職稱",
														   "職務(wù)",
														   "民族",
														   "工種"});
			this.comboBox1.Location = new System.Drawing.Point(112, 40);
			this.comboBox1.Name = "comboBox1";
			this.comboBox1.Size = new System.Drawing.Size(104, 20);
			this.comboBox1.TabIndex = 66;
			this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(48, 40);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 23);
			this.label2.TabIndex = 67;
			this.label2.Text = "選擇表";
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.btnApply);
			this.groupBox1.Controls.Add(this.btnExit);
			this.groupBox1.Controls.Add(this.btnCancel);
			this.groupBox1.Controls.Add(this.btnDelete);
			this.groupBox1.Controls.Add(this.btnAdd);
			this.groupBox1.Location = new System.Drawing.Point(440, 32);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(88, 376);
			this.groupBox1.TabIndex = 68;
			this.groupBox1.TabStop = false;
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.listBox1);
			this.groupBox2.Controls.Add(this.label1);
			this.groupBox2.Controls.Add(this.textBox1);
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Controls.Add(this.comboBox1);
			this.groupBox2.Location = new System.Drawing.Point(16, 32);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(312, 376);
			this.groupBox2.TabIndex = 69;
			this.groupBox2.TabStop = false;
			// 
			// Configure
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.Control;
			this.ClientSize = new System.Drawing.Size(528, 437);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.ForeColor = System.Drawing.SystemColors.Desktop;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "Configure";
			this.Text = "基礎(chǔ)資料配置";
			this.Load += new System.EventHandler(this.Configure_Load);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void btnExit_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		private void ErrorHandle(string e)
		{
			MessageBox.Show(e);
		}

		private void Configure_Load(object sender, System.EventArgs e)
		{
			this.ButtonsControl(false);
			this.ListBox_Fill();
		}
		private void ListBox_Fill()
		{
			this.commandStr="select * from "+this.dataTable;
			this.Command1.CommandText=this.commandStr;
			this.listBox1.Items.Clear();
			try
			{
				if(this.Connection1.State==ConnectionState.Closed)
					this.Connection1.Open();
				this.DataReader1=this.Command1.ExecuteReader();
				while(DataReader1.Read())
				{
					this.listBox1.Items.Add(this.DataReader1[1].ToString());					
				}
				this.listBox1.SelectedIndex=0;
			}				
			catch (System.Exception E)
			{
				this.ErrorHandle(E.ToString());

			}		
			finally
			{
				this.Connection1.Close();
			}

		}
		private void Command_Excute()
		{
			this.Command1.CommandText=this.commandStr;
			try
			{
				if(this.Connection1.State==ConnectionState.Closed)
					this.Connection1.Open();
				this.Command1.ExecuteNonQuery();
				this.ListBox_Fill();
			
			}				
			catch (System.Exception E)
			{
				this.ErrorHandle(E.ToString());

			}		
			finally
			{
				this.Connection1.Close();
			}

		}
		private void ButtonsControl(bool IsEnable)
		{
			if(IsEnable)
			{
				this.textBox1.Enabled=true;
				this.btnCancel.Enabled=true;
				this.btnApply.Enabled=true;
			}
			else
			{
				this.textBox1.Enabled=false;
				this.btnCancel.Enabled=false;
				this.btnApply.Enabled=false;
			}
		}		

		private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			int selectIndex=this.comboBox1.SelectedIndex;			
			switch(selectIndex)
			{
				case 0:					
					this.dataTable="Department";
					break;
				case 1:					
					this.dataTable="Title";
					break;
				case 2:					
					this.dataTable="Duty";
					break;
				case 3:					
					this.dataTable="Nation";
					break;
				case 4:					
					this.dataTable="WorkType";
					break;
				default:
					break;
			}
			
			this.ListBox_Fill();
		
		}

		private void btnAdd_Click(object sender, System.EventArgs e)
		{
			this.ButtonsControl(true);
			this.textBox1.Focus();
			this.add=true;
			
		}

		private void btnCancel_Click(object sender, System.EventArgs e)
		{
			this.textBox1.Clear();
			this.ButtonsControl(false);
		}

		private void btnApply_Click(object sender, System.EventArgs e)
		{		
			this.ButtonsControl(false);
			if(add)
			{
				this.commandStr="insert into "+this.dataTable+"("+this.dataTable+") values("+"'"+this.textBox1.Text+"'"+")";
				
			}
			else
			{
				this.commandStr="delete from "+this.dataTable+" where "+this.dataTable+"='"+this.listBox1.SelectedItem.ToString()+"'";				
			}
			this.Command_Excute();
			this.ListBox_Fill();
			this.add=false;
			this.textBox1.Clear();
		}

		private void btnDelete_Click(object sender, System.EventArgs e)
		{
			this.ButtonsControl(true);
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美老人xxxx18| 国产一二精品视频| 欧美日韩一区成人| 性欧美疯狂xxxxbbbb| 欧美性一二三区| 日韩成人dvd| 精品国产一区二区三区四区四 | 欧美丝袜第三区| 天堂久久久久va久久久久| 欧美一个色资源| 国产一区二区三区四区五区入口 | 麻豆精品一区二区综合av| 26uuu久久综合| 成人天堂资源www在线| 国产精品国产a| 欧洲精品在线观看| 九九九精品视频| 国产精品久久久久三级| 欧美性做爰猛烈叫床潮| 国产一区二区三区在线观看精品| 中文字幕亚洲成人| 欧美猛男gaygay网站| 国内精品免费在线观看| 亚洲欧美一区二区三区极速播放 | 欧美tk丨vk视频| 成人午夜电影网站| 亚洲福利电影网| 国产午夜精品一区二区| 91传媒视频在线播放| 蜜臀精品一区二区三区在线观看| 久久精子c满五个校花| 色乱码一区二区三区88| 精品一区二区三区免费播放| 中文字幕在线不卡国产视频| 717成人午夜免费福利电影| 国产99久久久国产精品潘金| 五月婷婷色综合| 国产精品每日更新| 欧美一级免费大片| 91天堂素人约啪| 国内精品免费**视频| 亚洲大片精品永久免费| 日本一区二区三区视频视频| 欧美精品色综合| 91欧美激情一区二区三区成人| 不卡视频在线看| 欧美aⅴ一区二区三区视频| 亚洲日本va午夜在线电影| 精品国产123| 777欧美精品| 一本久道中文字幕精品亚洲嫩| 国产一区二区剧情av在线| 亚洲成a人片在线不卡一二三区| 综合色中文字幕| 久久久亚洲精华液精华液精华液| 欧美精品xxxxbbbb| 欧美日韩国产首页| 91免费版在线看| jizzjizzjizz欧美| 国产成人综合在线| 六月婷婷色综合| 老司机精品视频线观看86| 日韩影院精彩在线| 一二三区精品视频| 亚洲免费高清视频在线| 日韩毛片视频在线看| 欧美激情一区二区在线| 久久精品欧美日韩精品| 久久婷婷综合激情| 欧美变态口味重另类| 日韩欧美国产一区二区在线播放| 欧美一三区三区四区免费在线看| 欧美日韩在线播| 欧美日韩免费高清一区色橹橹 | 精品国产一区二区三区不卡| 欧美精品色一区二区三区| 欧美精品在线观看播放| 欧美日韩一区在线观看| 欧美乱熟臀69xxxxxx| 69精品人人人人| 欧美精品aⅴ在线视频| 91麻豆精品国产91久久久更新时间| 专区另类欧美日韩| 亚洲人成网站在线| 亚洲免费在线观看视频| 亚洲在线免费播放| 天天综合色天天| 蜜桃久久av一区| 国内精品免费**视频| 成人av在线播放网址| av色综合久久天堂av综合| 色八戒一区二区三区| 欧美喷水一区二区| 日韩三级.com| 久久久国产精品午夜一区ai换脸| 国产日韩欧美a| 亚洲乱码中文字幕| 天天操天天色综合| 国产在线国偷精品产拍免费yy| 国产麻豆成人传媒免费观看| 91在线视频观看| 欧美日韩不卡在线| 久久免费视频色| 亚洲天堂av老司机| 青青草一区二区三区| 国产成人av资源| 欧洲精品视频在线观看| 精品国产免费人成在线观看| 国产精品麻豆视频| 日韩中文字幕1| 国产不卡免费视频| 欧美精品日韩综合在线| 久久久精品国产99久久精品芒果| 亚洲三级在线免费观看| 蜜臀久久99精品久久久久久9 | 欧美日韩1234| 国产亚洲精品免费| 亚洲不卡一区二区三区| 国产成人夜色高潮福利影视| 欧美怡红院视频| 久久伊人中文字幕| 亚洲精品一二三| 国产一区二区伦理片| 欧美自拍丝袜亚洲| 国产欧美一区二区在线| 亚洲6080在线| 91麻豆国产福利精品| 久久久久久久综合色一本| 亚洲国产精品久久久久婷婷884| 国产高清精品在线| 欧美精品高清视频| 一区二区三区精品视频| 国产乱码精品一区二区三区五月婷 | 日本亚洲电影天堂| av电影在线观看不卡| 日韩精品一区二区三区视频播放 | 911精品产国品一二三产区| 国产精品福利电影一区二区三区四区| 午夜精品视频一区| 91美女片黄在线| 中文字幕精品在线不卡| 美脚の诱脚舐め脚责91| 欧洲av在线精品| 中文字幕日本乱码精品影院| 国模大尺度一区二区三区| 欧美精品一二三四| 一区二区三区丝袜| 99视频热这里只有精品免费| 国产日韩精品视频一区| 久久狠狠亚洲综合| 6080yy午夜一二三区久久| 亚洲综合丁香婷婷六月香| 成人av高清在线| 国产精品网曝门| 成人av网址在线| 国产欧美一区视频| 国产宾馆实践打屁股91| 欧美国产精品v| 国产成人av资源| 国产视频一区不卡| 国产成人免费视频精品含羞草妖精| 日韩久久免费av| 亚洲另类在线制服丝袜| 欧美一区二区在线视频| 日韩成人dvd| 91精品婷婷国产综合久久性色| 亚洲国产美女搞黄色| 欧美综合天天夜夜久久| 亚洲激情在线激情| 欧美中文字幕不卡| 亚洲福利一区二区| 欧美一卡在线观看| 精品在线你懂的| 久久综合狠狠综合久久综合88| 国产美女精品在线| 中文字幕一区免费在线观看| www.性欧美| 亚洲一级电影视频| 欧美一区日韩一区| 国产麻豆视频精品| 中文字幕一区二区不卡| 日本精品一级二级| 天堂影院一区二区| 精品国产91洋老外米糕| 高清av一区二区| 亚洲三级免费观看| 欧美挠脚心视频网站| 麻豆国产精品一区二区三区| 国产亚洲福利社区一区| 92精品国产成人观看免费| 亚洲国产wwwccc36天堂| 精品理论电影在线观看| 成人一区在线看| 亚洲夂夂婷婷色拍ww47| 日韩一区二区精品在线观看| 国产精品一二二区| 亚洲六月丁香色婷婷综合久久| 欧美一级专区免费大片| 国产成人免费高清| 亚洲国产婷婷综合在线精品|