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

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

?? form_jzgcx.cs

?? 一個很簡單的考試系統(tǒng)。實用性很強啊!數(shù)據(jù)庫在里面
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace bizdb
{
	/// <summary>
	/// Form_jzg2 的摘要說明。
	/// </summary>
	public class Form_jzgcx : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label lbl_cxtj;
		private System.Windows.Forms.DataGrid dgd_jzgcx;
		private System.Windows.Forms.CheckBox ckb_xm;
		private System.Windows.Forms.CheckBox ckb_xb;
		private System.Windows.Forms.CheckBox ckb_mz;
		private System.Windows.Forms.Button btn_cx;
		private System.Windows.Forms.TextBox txt_xm;
		private System.Windows.Forms.Label lbl_xm;
		private System.Windows.Forms.Label lbl_xb;
		private System.Windows.Forms.Label lbl_mz;
		private System.Windows.Forms.ComboBox cbb_xb;
		private System.Windows.Forms.ComboBox cbb_mz;
		/// <summary>
		/// 必需的設(shè)計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form_jzgcx()
		{
			//
			// Windows 窗體設(shè)計器支持所必需的
			//
			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 Form Designer generated code
		/// <summary>
		/// 設(shè)計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </summary>
		private void InitializeComponent()
		{
			this.lbl_cxtj = new System.Windows.Forms.Label();
			this.dgd_jzgcx = new System.Windows.Forms.DataGrid();
			this.ckb_xm = new System.Windows.Forms.CheckBox();
			this.ckb_xb = new System.Windows.Forms.CheckBox();
			this.ckb_mz = new System.Windows.Forms.CheckBox();
			this.btn_cx = new System.Windows.Forms.Button();
			this.txt_xm = new System.Windows.Forms.TextBox();
			this.lbl_xm = new System.Windows.Forms.Label();
			this.lbl_xb = new System.Windows.Forms.Label();
			this.lbl_mz = new System.Windows.Forms.Label();
			this.cbb_xb = new System.Windows.Forms.ComboBox();
			this.cbb_mz = new System.Windows.Forms.ComboBox();
			((System.ComponentModel.ISupportInitialize)(this.dgd_jzgcx)).BeginInit();
			this.SuspendLayout();
			// 
			// lbl_cxtj
			// 
			this.lbl_cxtj.Location = new System.Drawing.Point(192, 40);
			this.lbl_cxtj.Name = "lbl_cxtj";
			this.lbl_cxtj.Size = new System.Drawing.Size(80, 16);
			this.lbl_cxtj.TabIndex = 0;
			this.lbl_cxtj.Text = "查詢條件:";
			// 
			// dgd_jzgcx
			// 
			this.dgd_jzgcx.DataMember = "";
			this.dgd_jzgcx.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dgd_jzgcx.Location = new System.Drawing.Point(0, 248);
			this.dgd_jzgcx.Name = "dgd_jzgcx";
			this.dgd_jzgcx.ReadOnly = true;
			this.dgd_jzgcx.Size = new System.Drawing.Size(792, 320);
			this.dgd_jzgcx.TabIndex = 1;
			this.dgd_jzgcx.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dgd_jzgcx_MouseDown);
			this.dgd_jzgcx.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgd_jzgcx_MouseUp);
			// 
			// ckb_xm
			// 
			this.ckb_xm.Location = new System.Drawing.Point(256, 64);
			this.ckb_xm.Name = "ckb_xm";
			this.ckb_xm.Size = new System.Drawing.Size(16, 24);
			this.ckb_xm.TabIndex = 2;
			this.ckb_xm.CheckedChanged += new System.EventHandler(this.ckb_xm_CheckedChanged);
			// 
			// ckb_xb
			// 
			this.ckb_xb.Location = new System.Drawing.Point(256, 104);
			this.ckb_xb.Name = "ckb_xb";
			this.ckb_xb.Size = new System.Drawing.Size(16, 24);
			this.ckb_xb.TabIndex = 3;
			this.ckb_xb.CheckedChanged += new System.EventHandler(this.ckb_xb_CheckedChanged);
			// 
			// ckb_mz
			// 
			this.ckb_mz.Location = new System.Drawing.Point(256, 144);
			this.ckb_mz.Name = "ckb_mz";
			this.ckb_mz.Size = new System.Drawing.Size(16, 24);
			this.ckb_mz.TabIndex = 4;
			this.ckb_mz.CheckedChanged += new System.EventHandler(this.ckb_mz_CheckedChanged);
			// 
			// btn_cx
			// 
			this.btn_cx.Location = new System.Drawing.Point(472, 104);
			this.btn_cx.Name = "btn_cx";
			this.btn_cx.Size = new System.Drawing.Size(56, 23);
			this.btn_cx.TabIndex = 6;
			this.btn_cx.Text = "查詢";
			this.btn_cx.Click += new System.EventHandler(this.btn_cx_Click);
			// 
			// txt_xm
			// 
			this.txt_xm.Location = new System.Drawing.Point(280, 64);
			this.txt_xm.Name = "txt_xm";
			this.txt_xm.TabIndex = 7;
			this.txt_xm.Text = "";
			// 
			// lbl_xm
			// 
			this.lbl_xm.Location = new System.Drawing.Point(392, 64);
			this.lbl_xm.Name = "lbl_xm";
			this.lbl_xm.Size = new System.Drawing.Size(32, 16);
			this.lbl_xm.TabIndex = 10;
			this.lbl_xm.Text = "姓名";
			// 
			// lbl_xb
			// 
			this.lbl_xb.Location = new System.Drawing.Point(392, 104);
			this.lbl_xb.Name = "lbl_xb";
			this.lbl_xb.Size = new System.Drawing.Size(32, 16);
			this.lbl_xb.TabIndex = 11;
			this.lbl_xb.Text = "性別";
			// 
			// lbl_mz
			// 
			this.lbl_mz.Location = new System.Drawing.Point(392, 144);
			this.lbl_mz.Name = "lbl_mz";
			this.lbl_mz.Size = new System.Drawing.Size(32, 16);
			this.lbl_mz.TabIndex = 12;
			this.lbl_mz.Text = "民族";
			// 
			// cbb_xb
			// 
			this.cbb_xb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cbb_xb.Location = new System.Drawing.Point(280, 104);
			this.cbb_xb.Name = "cbb_xb";
			this.cbb_xb.Size = new System.Drawing.Size(104, 20);
			this.cbb_xb.TabIndex = 13;
			// 
			// cbb_mz
			// 
			this.cbb_mz.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cbb_mz.Location = new System.Drawing.Point(280, 144);
			this.cbb_mz.Name = "cbb_mz";
			this.cbb_mz.Size = new System.Drawing.Size(104, 20);
			this.cbb_mz.TabIndex = 14;
			// 
			// Form_jzgcx
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(792, 573);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.cbb_mz,
																		  this.cbb_xb,
																		  this.lbl_mz,
																		  this.lbl_xb,
																		  this.lbl_xm,
																		  this.txt_xm,
																		  this.btn_cx,
																		  this.ckb_mz,
																		  this.ckb_xb,
																		  this.ckb_xm,
																		  this.dgd_jzgcx,
																		  this.lbl_cxtj});
			this.Name = "Form_jzgcx";
			this.Text = "教職工資料查詢";
			this.Load += new System.EventHandler(this.Form_jzgcx_Load);
			((System.ComponentModel.ISupportInitialize)(this.dgd_jzgcx)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void Form_jzgcx_Load(object sender, System.EventArgs e)
		{
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.ControlBox = false;
			this.cbb_mz.Enabled = false;
			this.cbb_xb.Enabled=false;
			this.txt_xm.Enabled=false;
			this.Combo_Add();
		}

		private void btn_cx_Click(object sender, System.EventArgs e)
		{
			dbAccess dba=new dbAccess();
			string sel="";
			string select="Select emp_id as '教職工編號',emp_name as '姓名',sex.sex_name as '性別',nation.nat_name as '民族',"
				+"emp_birthday as '出生年月',nativePlace.natp_name as '籍貫',PoliticalFeature.polf_name as '政治面貌',"
				+"Maritalstatus.mars_name as '婚姻狀況',emp_identityNo as '身份證號',emp_address as '聯(lián)系地址',"
				+"emp_tel as '聯(lián)系電話',emp_email as '電子郵箱',emp_postcode as '郵政編碼',emp_hometel as '家庭住址',"
				+"emp_hometel as '家庭電話',cultureDegree.culd_name as '文化程度',emp_college as '畢業(yè)院校',"
				+"emp_speciality as '專業(yè)',technicalPosition.tecp_name as '專業(yè)技術(shù)職務(wù)',emp_CertificateNo as '教師資格證編號',"
				+"emp_certificateDate as '發(fā)證日期',emp_certificateDept as '發(fā)證部門',emp_isTeacher as '是否教師',"
				+"emp_propositionFirst as '首次參與命題時間',emp_propositionRecent as '最近參與命題時間',"
				+"role.rol_name as '角色',emp_memo as '備注' from Employee,sex,nation,technicalPosition,Maritalstatus,role,"
				+"PoliticalFeature,cultureDegree,nativePlace where sex.sex_code=Employee.sex_code and"
				+" nation.nat_code=Employee.nat_code and technicalPosition.tecp_code=Employee.tecp_code "
				+"and Maritalstatus.mars_code=Employee.mars_code and PoliticalFeature.polf_code=Employee.polf_code "
				+"and cultureDegree.culd_code=Employee.culd_code and nativePlace.natp_code = Employee.natp_code"
				+" and role.rol_no=Employee.rol_no";
			if (this.ckb_xm.Checked)
				select += " and Employee.emp_name like '%" + this.txt_xm.Text+"%'";
			if (this.ckb_xb.Checked)
				select += " and sex.sex_name like '%" + this.cbb_xb.Text+"%'";
			if (this.ckb_mz.Checked)
				select += " and nation.nat_name like '%" + this.cbb_mz.Text+"%'";
			if (select.Length > 469)
			{
				try
				{
					sel=select;
					System.Data.SqlClient.SqlConnection sqlcon=new System.Data.SqlClient.SqlConnection(dba.connStr);
					sqlcon.Open();
					System.Data.SqlClient.SqlDataAdapter sqldat=new System.Data.SqlClient.SqlDataAdapter(sel,sqlcon);
					System.Data.DataSet dst=new System.Data.DataSet();
					sqldat.Fill(dst,"Employee");
					this.dgd_jzgcx.DataSource=dst;
					this.dgd_jzgcx.DataMember="Employee";
					sqlcon.Close();
					for (int i=0;i<dst.Tables["Employee"].Rows.Count;i++)
					{
						if (dst.Tables["Employee"].Rows[i]["是否教師"].ToString()=="0")
						{
							dst.Tables["Employee"].Rows[i]["是否教師"]='是';
						}	
						else
						{
							dst.Tables["Employee"].Rows[i]["是否教師"]='否';
						}		
					}
				}
				catch(System.Exception error)
				{
					MessageBox.Show(error.Message);
				}
			}
			else
			{
				try
				{
					sel=select.Substring(0,select.Length-5);
					System.Data.SqlClient.SqlConnection sqlcon_all=new System.Data.SqlClient.SqlConnection(dba.connStr);
					sqlcon_all.Open();
					System.Data.SqlClient.SqlDataAdapter sqldat_all=new System.Data.SqlClient.SqlDataAdapter(sel,sqlcon_all);
					System.Data.DataSet dst_all=new System.Data.DataSet();
					sqldat_all.Fill(dst_all,"Employee");
					this.dgd_jzgcx.DataSource=dst_all;
					this.dgd_jzgcx.DataMember="Employee";
					sqlcon_all.Close();
					for (int i=0;i<dst_all.Tables["Employee"].Rows.Count;i++)
					{
						if (dst_all.Tables["Employee"].Rows[i]["是否教師"].ToString()=="0")
						{
							dst_all.Tables["Employee"].Rows[i]["是否教師"]='是';
						}	
						else
						{
							dst_all.Tables["Employee"].Rows[i]["是否教師"]='否';
						}		
					}
				}
				catch(System.Exception error)
				{
					MessageBox.Show(error.Message);
				}
			}
		}

		private void ckb_xm_CheckedChanged(object sender, System.EventArgs e)
		{
			if(this.ckb_xm.Checked)
				this.txt_xm.Enabled=true;
			else
			{
				this.txt_xm.Enabled=false;
				this.txt_xm.Text="";
			}
		}

		private void ckb_xb_CheckedChanged(object sender, System.EventArgs e)
		{
			if(this.ckb_xb.Checked)
				this.cbb_xb.Enabled=true;
			else
			{
				this.cbb_xb.Enabled=false;
				this.cbb_xb.Text="";
			}
		}

		private void ckb_mz_CheckedChanged(object sender, System.EventArgs e)
		{
			if(this.ckb_mz.Checked)
				this.cbb_mz.Enabled=true;
			else
			{
				this.cbb_mz.Enabled=false;
				this.cbb_mz.Text="";
			}
		}

		private void dgd_jzgcx_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
		
		}

		private void dgd_jzgcx_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			if (e.Button==System.Windows.Forms.MouseButtons.Left)
			{
				Point pt = new Point(e.X,e.Y);
				DataGrid.HitTestInfo hit = this.dgd_jzgcx.HitTest(pt);
				if(hit.Type == DataGrid.HitTestType.Cell)
				{
					this.dgd_jzgcx.Select(hit.Row);
				}
			}
		}
		private void Combo_Add()
		{
			dbAccess dba=new dbAccess();
			try
			{
				System.Data.DataSet dat_mb=new System.Data.DataSet();
				System.Data.SqlClient.SqlCommand sqlcom_sex=new System.Data.SqlClient.SqlCommand();
				System.Data.SqlClient.SqlConnection sqlcon=new System.Data.SqlClient.SqlConnection();
				System.Data.SqlClient.SqlDataAdapter sqlada_mb=new System.Data.SqlClient.SqlDataAdapter("select * from sex",
					dba.connStr);
				sqlada_mb.Fill(dat_mb,"sex");
				foreach (System.Data.DataRow dater in dat_mb.Tables["sex"].Rows )
				{
					this.cbb_xb.Items.Add(dater[1]);
				}
			}
			catch(System.Exception m)
			{
				MessageBox.Show(m.Message);
			}
			try
			{
				System.Data.DataSet dat_mb=new System.Data.DataSet();
				System.Data.SqlClient.SqlCommand sqlcom_sex=new System.Data.SqlClient.SqlCommand();
				System.Data.SqlClient.SqlConnection sqlcon=new System.Data.SqlClient.SqlConnection();
				System.Data.SqlClient.SqlDataAdapter sqlada_mb=new System.Data.SqlClient.SqlDataAdapter("select * from nation",
					dba.connStr);
				sqlada_mb.Fill(dat_mb,"nation");
				foreach (System.Data.DataRow dater in dat_mb.Tables["nation"].Rows )
				{
					this.cbb_mz.Items.Add(dater[1]);
				}
			}
			catch(System.Exception m)
			{
				MessageBox.Show(m.Message);
			}
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丁香天五香天堂综合| 五月开心婷婷久久| 波多野结衣在线一区| 国产三区在线成人av| 国产盗摄女厕一区二区三区| 欧美国产激情二区三区| www.成人在线| 亚洲一区在线观看免费观看电影高清 | 成人的网站免费观看| 综合久久久久综合| 欧美日韩一区国产| 极品少妇一区二区| 国产精品三级视频| 欧美性高清videossexo| 日韩1区2区日韩1区2区| 国产精品国产三级国产普通话蜜臀| 一本一道久久a久久精品 | 欧美性xxxxx极品少妇| 一区二区三区四区在线播放| 欧美日韩黄视频| 久久成人综合网| 亚洲婷婷综合色高清在线| 欧美日韩免费视频| 国产一区二区三区精品欧美日韩一区二区三区 | 国产精品久久久久天堂| 在线免费观看视频一区| 麻豆精品蜜桃视频网站| 一区二区中文字幕在线| 欧美精品久久天天躁| 国产一区二区三区av电影| 亚洲免费大片在线观看| 日韩三级视频在线看| 91在线精品一区二区三区| 日本成人超碰在线观看| 国产精品少妇自拍| 日韩一级完整毛片| 色呦呦国产精品| 国内精品自线一区二区三区视频| 亚洲色图视频网| 2017欧美狠狠色| 欧美精品xxxxbbbb| 99re66热这里只有精品3直播 | 国产精品乡下勾搭老头1| 亚洲午夜在线电影| 国产精品久久久久影视| 日韩欧美国产一区二区在线播放| 色综合婷婷久久| 国产激情视频一区二区三区欧美| 亚洲高清一区二区三区| 国产精品久久综合| xfplay精品久久| 91精品国产麻豆国产自产在线| 91网站最新地址| 国产福利91精品一区二区三区| 日韩福利视频导航| 亚洲一卡二卡三卡四卡五卡| 欧美激情一区在线观看| 日韩午夜三级在线| 欧美美女喷水视频| 欧美在线观看一二区| 成人app在线观看| 国产毛片一区二区| 麻豆久久久久久| 日韩精品成人一区二区在线| 亚洲综合色噜噜狠狠| 亚洲日韩欧美一区二区在线| 国产精品美女久久久久aⅴ| 久久蜜桃香蕉精品一区二区三区| 欧美一级淫片007| 7777精品伊人久久久大香线蕉经典版下载| 99久久99久久精品国产片果冻| 国产精品一线二线三线精华| 精品一区二区三区欧美| 蜜臀av性久久久久av蜜臀妖精| 亚洲第一会所有码转帖| 亚洲五码中文字幕| 亚洲国产日韩av| 亚洲成人精品影院| 婷婷成人激情在线网| 午夜精品福利一区二区三区av| 一区二区三区国产豹纹内裤在线| 国产精品夫妻自拍| 亚洲欧美日韩电影| 亚洲午夜久久久久中文字幕久| 一区二区三区波多野结衣在线观看| 亚洲免费在线观看视频| 亚洲精品videosex极品| 一区二区三区免费网站| 午夜精品国产更新| 美女一区二区三区| 黑人巨大精品欧美一区| 国产一区二区电影| 成人av综合在线| 在线亚洲欧美专区二区| 欧美精品一二三| 精品美女被调教视频大全网站| 日韩欧美国产电影| 久久在线观看免费| 国产精品国产a| 五月天网站亚洲| 国产麻豆成人传媒免费观看| 北条麻妃国产九九精品视频| 欧美午夜视频网站| 欧美精品一区二区三区视频 | 日韩一区二区在线看片| 国产亚洲制服色| 亚洲欧美成aⅴ人在线观看| 天天综合日日夜夜精品| 精品在线免费观看| www.色精品| 日韩色视频在线观看| 国产精品久久三| 欧美aaaaa成人免费观看视频| 国产一区二区精品在线观看| 色狠狠色噜噜噜综合网| 日韩欧美电影在线| 亚洲视频一区在线| 麻豆精品精品国产自在97香蕉| 成人a免费在线看| 91精品国产丝袜白色高跟鞋| 国产欧美一区二区三区网站| 亚洲综合在线观看视频| 激情综合色丁香一区二区| 色婷婷av久久久久久久| 久久精品一区四区| 首页欧美精品中文字幕| 丁香婷婷深情五月亚洲| 91精品国产乱| 亚洲欧美日韩精品久久久久| 精品无人区卡一卡二卡三乱码免费卡| 91在线视频免费观看| 精品国产露脸精彩对白| 亚洲一区影音先锋| 成人国产视频在线观看| 日韩视频一区二区三区| 夜夜嗨av一区二区三区中文字幕| 国产乱子轮精品视频| 欧美日本视频在线| 亚洲婷婷综合色高清在线| 国产一区二区三区| 日韩女优制服丝袜电影| 亚洲色图在线播放| 粉嫩av亚洲一区二区图片| 日韩一级完整毛片| 亚洲国产精品久久人人爱| 99久久精品国产导航| 国产亚洲成aⅴ人片在线观看| 日韩电影在线观看电影| 在线免费观看成人短视频| 国产精品白丝在线| 国产精品综合一区二区三区| 日韩手机在线导航| 午夜久久久久久久久久一区二区| 91在线丨porny丨国产| 中文无字幕一区二区三区| 国产一区二区三区高清播放| 亚洲精品一区二区三区香蕉| 全部av―极品视觉盛宴亚洲| 欧美日韩视频一区二区| 一区二区三区丝袜| 色狠狠桃花综合| 亚洲一二三四区| 在线观看国产一区二区| 亚洲精品一二三区| 91国偷自产一区二区使用方法| 亚洲欧美日韩在线播放| 91美女片黄在线观看91美女| 亚洲欧美在线高清| 91小视频在线| 一区二区三区四区av| 欧美在线观看视频一区二区 | 欧美高清视频www夜色资源网| 一区二区三区精品| 欧美网站一区二区| 偷拍一区二区三区| 欧美一级电影网站| 国产一区欧美日韩| 国产日韩欧美在线一区| 不卡一区二区三区四区| 亚洲少妇30p| 欧美日韩三级在线| 欧美96一区二区免费视频| 欧美变态口味重另类| 国产精品一区专区| 国产精品美女久久久久av爽李琼| 99精品黄色片免费大全| 亚洲制服欧美中文字幕中文字幕| 欧美人与禽zozo性伦| 美脚の诱脚舐め脚责91| 国产日产欧美一区| 一本色道a无线码一区v| 婷婷综合五月天| 久久欧美中文字幕| 91美女精品福利| 午夜日韩在线电影| 精品sm捆绑视频| 色综合中文字幕国产 | 欧美国产97人人爽人人喊| 99re6这里只有精品视频在线观看| 亚洲国产综合色|