⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formqueryemployee.cs

📁 蓝山人事管理系统
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data ;

namespace BlueHill.BlueHillWindows.SalaryManagement
{
	/// <summary>
	/// FormQueryEmployee 的摘要说明。
	/// </summary>
	public class FormQueryEmployee : System.Windows.Forms.Form
	{
		private DataTable dt;
		public DataTable table
		{
			get
			{ 
				return dt;
			}
		}
		Salary sm=new Salary ();

       private System.Windows.Forms.Button btnQuery;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.TextBox txtEmail;
		private System.Windows.Forms.TextBox txtName;
		private System.Windows.Forms.ComboBox CbDepartment;
		private System.Windows.Forms.Label laName;
		private System.Windows.Forms.Label laEmail;
		private System.Windows.Forms.Label laDepartment;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.PictureBox pictureBox2;
		private System.Windows.Forms.PictureBox pictureBox3;
		private System.Windows.Forms.Label label1;
		
		/// 必需的设计器变量。
		
		private System.ComponentModel.Container components = null;

		public FormQueryEmployee()
		{
			
			InitializeComponent();

		
		}

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

		#region Windows 窗体设计器生成的代码
	
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
	
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormQueryEmployee));
			this.btnQuery = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.txtEmail = new System.Windows.Forms.TextBox();
			this.txtName = new System.Windows.Forms.TextBox();
			this.CbDepartment = new System.Windows.Forms.ComboBox();
			this.laName = new System.Windows.Forms.Label();
			this.laEmail = new System.Windows.Forms.Label();
			this.laDepartment = new System.Windows.Forms.Label();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.pictureBox2 = new System.Windows.Forms.PictureBox();
			this.pictureBox3 = new System.Windows.Forms.PictureBox();
			this.label1 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// btnQuery
			// 
			this.btnQuery.Location = new System.Drawing.Point(40, 248);
			this.btnQuery.Name = "btnQuery";
			this.btnQuery.TabIndex = 0;
			this.btnQuery.Text = "查询";
			this.btnQuery.Click += new System.EventHandler(this.btnQuery_Click);
			// 
			// btnCancel
			// 
			this.btnCancel.Location = new System.Drawing.Point(208, 248);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.TabIndex = 1;
			this.btnCancel.Text = "取消";
			this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
			// 
			// txtEmail
			// 
			this.txtEmail.Location = new System.Drawing.Point(160, 96);
			this.txtEmail.Name = "txtEmail";
			this.txtEmail.Size = new System.Drawing.Size(176, 21);
			this.txtEmail.TabIndex = 2;
			this.txtEmail.Text = "";
			// 
			// txtName
			// 
			this.txtName.Location = new System.Drawing.Point(160, 40);
			this.txtName.Name = "txtName";
			this.txtName.Size = new System.Drawing.Size(176, 21);
			this.txtName.TabIndex = 3;
			this.txtName.Text = "";
			// 
			// CbDepartment
			// 
			this.CbDepartment.Items.AddRange(new object[] {
															  "人事部  ",
															  "财务部   ",
															  "行政部  ",
															  "销售部    ",
															  "研发部   ",
															  "娱乐部   ",
															  "信息部      ",
															  "23432243  "});
			this.CbDepartment.Location = new System.Drawing.Point(160, 144);
			this.CbDepartment.Name = "CbDepartment";
			this.CbDepartment.Size = new System.Drawing.Size(176, 20);
			this.CbDepartment.TabIndex = 4;
			// 
			// laName
			// 
			this.laName.Location = new System.Drawing.Point(88, 40);
			this.laName.Name = "laName";
			this.laName.Size = new System.Drawing.Size(56, 24);
			this.laName.TabIndex = 5;
			this.laName.Text = "姓名";
			// 
			// laEmail
			// 
			this.laEmail.Location = new System.Drawing.Point(88, 96);
			this.laEmail.Name = "laEmail";
			this.laEmail.Size = new System.Drawing.Size(56, 24);
			this.laEmail.TabIndex = 6;
			this.laEmail.Text = "电子邮件";
			// 
			// laDepartment
			// 
			this.laDepartment.Location = new System.Drawing.Point(88, 144);
			this.laDepartment.Name = "laDepartment";
			this.laDepartment.Size = new System.Drawing.Size(56, 24);
			this.laDepartment.TabIndex = 7;
			this.laDepartment.Text = "所属部门";
			// 
			// pictureBox1
			// 
			this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
			this.pictureBox1.Location = new System.Drawing.Point(32, 32);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(24, 32);
			this.pictureBox1.TabIndex = 8;
			this.pictureBox1.TabStop = false;
			// 
			// pictureBox2
			// 
			this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage")));
			this.pictureBox2.Location = new System.Drawing.Point(24, 88);
			this.pictureBox2.Name = "pictureBox2";
			this.pictureBox2.Size = new System.Drawing.Size(32, 24);
			this.pictureBox2.TabIndex = 9;
			this.pictureBox2.TabStop = false;
			// 
			// pictureBox3
			// 
			this.pictureBox3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox3.BackgroundImage")));
			this.pictureBox3.Location = new System.Drawing.Point(24, 136);
			this.pictureBox3.Name = "pictureBox3";
			this.pictureBox3.Size = new System.Drawing.Size(40, 32);
			this.pictureBox3.TabIndex = 10;
			this.pictureBox3.TabStop = false;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(0, 192);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(352, 23);
			this.label1.TabIndex = 11;
			this.label1.Text = "__________________________________________________________";
			// 
			// FormQueryEmployee
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(352, 277);
			this.ControlBox = false;
			this.Controls.Add(this.label1);
			this.Controls.Add(this.pictureBox3);
			this.Controls.Add(this.pictureBox2);
			this.Controls.Add(this.pictureBox1);
			this.Controls.Add(this.laDepartment);
			this.Controls.Add(this.laEmail);
			this.Controls.Add(this.laName);
			this.Controls.Add(this.CbDepartment);
			this.Controls.Add(this.txtName);
			this.Controls.Add(this.txtEmail);
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnQuery);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "FormQueryEmployee";
			this.Text = "员工查询";
			this.ResumeLayout(false);

		}
		#endregion

		private void btnCancel_Click(object sender, System.EventArgs e)
		{
			this.Close ();
		}

		private void btnQuery_Click(object sender, System.EventArgs e)
		{
			string name=this.txtName .Text ;
			string email=this.txtEmail.Text ;
			string deptName=CbDepartment.Text;
			dt=sm.SearchEmployee(name,email,deptName);

			btnQuery.DialogResult =DialogResult.OK ;;
		}

	
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -