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

📄 frmchooseperson.cs

📁 一个用vs2003编写的客户工资管理系统客户端程序/一个用vs2003编写的客户工资管理系统客户端程序
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

using System.Data;
using Jinrm.Data;

namespace GzglClient.Froms
{
	/// <summary>
	/// frmChoosePerson 的摘要说明。
	/// </summary>
	public class frmChoosePerson : System.Windows.Forms.Form
	{
		private DoAccess conn = new DoAccess();
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtName;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Button btnSel;
		private System.Windows.Forms.ComboBox cbNsName;
		private System.Windows.Forms.ColumnHeader columnHeader12;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.ListView ItemList;
		public string PersonId = "";

		public frmChoosePerson()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

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

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.btnSel = new System.Windows.Forms.Button();
			this.cbNsName = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.txtName = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.ItemList = new System.Windows.Forms.ListView();
			this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.label3 = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.btnSel);
			this.groupBox1.Controls.Add(this.cbNsName);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.txtName);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(8, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(328, 72);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			// 
			// btnSel
			// 
			this.btnSel.Location = new System.Drawing.Point(256, 40);
			this.btnSel.Name = "btnSel";
			this.btnSel.Size = new System.Drawing.Size(40, 23);
			this.btnSel.TabIndex = 4;
			this.btnSel.Text = "查询";
			this.btnSel.Click += new System.EventHandler(this.btnSel_Click);
			// 
			// cbNsName
			// 
			this.cbNsName.Location = new System.Drawing.Point(72, 43);
			this.cbNsName.Name = "cbNsName";
			this.cbNsName.Size = new System.Drawing.Size(176, 20);
			this.cbNsName.TabIndex = 3;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 48);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 15);
			this.label2.TabIndex = 2;
			this.label2.Text = "部门:";
			// 
			// txtName
			// 
			this.txtName.Location = new System.Drawing.Point(72, 16);
			this.txtName.Name = "txtName";
			this.txtName.Size = new System.Drawing.Size(224, 21);
			this.txtName.TabIndex = 1;
			this.txtName.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(24, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 15);
			this.label1.TabIndex = 0;
			this.label1.Text = "姓名:";
			// 
			// ItemList
			// 
			this.ItemList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																					   this.columnHeader12,
																					   this.columnHeader1});
			this.ItemList.FullRowSelect = true;
			this.ItemList.GridLines = true;
			this.ItemList.HideSelection = false;
			this.ItemList.Location = new System.Drawing.Point(8, 88);
			this.ItemList.Name = "ItemList";
			this.ItemList.Size = new System.Drawing.Size(328, 216);
			this.ItemList.TabIndex = 12;
			this.ItemList.View = System.Windows.Forms.View.Details;
			this.ItemList.DoubleClick += new System.EventHandler(this.KHItemList_DoubleClick);
			// 
			// columnHeader12
			// 
			this.columnHeader12.Text = "姓名";
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "身份证";
			this.columnHeader1.Width = 200;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(8, 312);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(168, 15);
			this.label3.TabIndex = 5;
			this.label3.Text = "提示:查询后,双击列表框";
			// 
			// frmChoosePerson
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(344, 334);
			this.Controls.Add(this.ItemList);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.label3);
			this.Name = "frmChoosePerson";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "人员选择";
			this.Load += new System.EventHandler(this.frmChoosePerson_Load);
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void frmChoosePerson_Load(object sender, System.EventArgs e)
		{
			
		}

		private void btnSel_Click(object sender, System.EventArgs e)
		{
		
		}

		private void KHItemList_DoubleClick(object sender, System.EventArgs e)
		{
			
			this.DialogResult = DialogResult.OK;
		}
	}
}

⌨️ 快捷键说明

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