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

📄 operator_manager.cs

📁 问题定义 随着生活水平的日益提高
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data;

namespace 通讯录
{
	/// <summary>
	/// operator_manager 的摘要说明。
	/// </summary>
	public class operator_manager : System.Windows.Forms.Form
	{
		#region "窗体控件的初始化"
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.ColumnHeader userid;
		private System.Windows.Forms.ColumnHeader passwd;
		private System.Windows.Forms.Button btnadd;
		private System.Windows.Forms.Button btndel;
		private System.Windows.Forms.Button btnchangepwd;
		private System.Windows.Forms.Button btnchangelevel;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox txtuserid;
		private System.Windows.Forms.TextBox txtlevels;
		private System.Windows.Forms.Button btnexit;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox txtuserid1;
		private System.Windows.Forms.TextBox txtlevel1;
		private System.Windows.Forms.TextBox txtpwd1;
		private System.Windows.Forms.Button btnok1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.Button btnok2;
		private System.Windows.Forms.TextBox txtlevel2;
		private System.Windows.Forms.TextBox txtuserid2;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Panel panel3;
		private System.Windows.Forms.Button btnok3;
		private System.Windows.Forms.TextBox txtoldpwd;
		private System.Windows.Forms.TextBox txtconfirmnewpwd;
		private System.Windows.Forms.TextBox txtnewpwd;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Panel panel4;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Button btnok4;
		private System.Windows.Forms.ListView lv;
		#endregion

		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.TextBox txtuserid3;
		string selectuserid;
		private System.Windows.Forms.TextBox txtlevel4;
		private System.Windows.Forms.TextBox txtuserid4;
		private System.Windows.Forms.Button btnsearch;
		private System.Windows.Forms.Button btnrefresh;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label15;
		string selectlevels;

		public operator_manager()
		{
			//
			// 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.lv = new System.Windows.Forms.ListView();
			this.userid = new System.Windows.Forms.ColumnHeader();
			this.passwd = new System.Windows.Forms.ColumnHeader();
			this.btnadd = new System.Windows.Forms.Button();
			this.btndel = new System.Windows.Forms.Button();
			this.btnchangepwd = new System.Windows.Forms.Button();
			this.btnchangelevel = new System.Windows.Forms.Button();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.txtlevels = new System.Windows.Forms.TextBox();
			this.txtuserid = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.btnexit = new System.Windows.Forms.Button();
			this.panel1 = new System.Windows.Forms.Panel();
			this.btnok1 = new System.Windows.Forms.Button();
			this.txtpwd1 = new System.Windows.Forms.TextBox();
			this.txtlevel1 = new System.Windows.Forms.TextBox();
			this.txtuserid1 = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.panel2 = new System.Windows.Forms.Panel();
			this.btnok2 = new System.Windows.Forms.Button();
			this.txtlevel2 = new System.Windows.Forms.TextBox();
			this.txtuserid2 = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.panel3 = new System.Windows.Forms.Panel();
			this.txtuserid3 = new System.Windows.Forms.TextBox();
			this.label13 = new System.Windows.Forms.Label();
			this.btnok3 = new System.Windows.Forms.Button();
			this.txtoldpwd = new System.Windows.Forms.TextBox();
			this.txtconfirmnewpwd = new System.Windows.Forms.TextBox();
			this.txtnewpwd = new System.Windows.Forms.TextBox();
			this.label10 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.panel4 = new System.Windows.Forms.Panel();
			this.btnsearch = new System.Windows.Forms.Button();
			this.btnok4 = new System.Windows.Forms.Button();
			this.txtlevel4 = new System.Windows.Forms.TextBox();
			this.txtuserid4 = new System.Windows.Forms.TextBox();
			this.label12 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.btnrefresh = new System.Windows.Forms.Button();
			this.label14 = new System.Windows.Forms.Label();
			this.label15 = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.panel1.SuspendLayout();
			this.panel2.SuspendLayout();
			this.panel3.SuspendLayout();
			this.panel4.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.lv);
			this.groupBox1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.groupBox1.Location = new System.Drawing.Point(0, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(216, 344);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "已注册操作员";
			// 
			// lv
			// 
			this.lv.Alignment = System.Windows.Forms.ListViewAlignment.Left;
			this.lv.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																				 this.userid,
																				 this.passwd});
			this.lv.Dock = System.Windows.Forms.DockStyle.Fill;
			this.lv.FullRowSelect = true;
			this.lv.GridLines = true;
			this.lv.HideSelection = false;
			this.lv.Location = new System.Drawing.Point(3, 19);
			this.lv.Name = "lv";
			this.lv.Size = new System.Drawing.Size(210, 322);
			this.lv.TabIndex = 0;
			this.lv.View = System.Windows.Forms.View.Details;
			this.lv.SelectedIndexChanged += new System.EventHandler(this.lv_SelectedIndexChanged);
			// 
			// userid
			// 
			this.userid.Text = "用户名";
			this.userid.Width = 104;
			// 
			// passwd
			// 
			this.passwd.Text = "权限";
			this.passwd.Width = 97;
			// 
			// btnadd
			// 
			this.btnadd.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btnadd.Location = new System.Drawing.Point(240, 16);
			this.btnadd.Name = "btnadd";
			this.btnadd.Size = new System.Drawing.Size(104, 32);
			this.btnadd.TabIndex = 1;
			this.btnadd.Text = "添加操作员";
			this.btnadd.Click += new System.EventHandler(this.btnadd_Click);
			// 
			// btndel
			// 
			this.btndel.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btndel.Location = new System.Drawing.Point(240, 64);
			this.btndel.Name = "btndel";
			this.btndel.Size = new System.Drawing.Size(104, 32);
			this.btndel.TabIndex = 2;
			this.btndel.Text = "删除操作员员";
			this.btndel.Click += new System.EventHandler(this.btndel_Click);
			// 
			// btnchangepwd
			// 
			this.btnchangepwd.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btnchangepwd.Location = new System.Drawing.Point(544, 16);
			this.btnchangepwd.Name = "btnchangepwd";
			this.btnchangepwd.Size = new System.Drawing.Size(104, 32);
			this.btnchangepwd.TabIndex = 3;
			this.btnchangepwd.Text = "修改密码";
			this.btnchangepwd.Click += new System.EventHandler(this.btnchangepwd_Click);
			// 
			// btnchangelevel
			// 
			this.btnchangelevel.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btnchangelevel.Location = new System.Drawing.Point(400, 16);
			this.btnchangelevel.Name = "btnchangelevel";
			this.btnchangelevel.Size = new System.Drawing.Size(104, 32);
			this.btnchangelevel.TabIndex = 4;
			this.btnchangelevel.Text = "修改权限";
			this.btnchangelevel.Click += new System.EventHandler(this.btnchangelevel_Click);
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.txtlevels);
			this.groupBox2.Controls.Add(this.txtuserid);
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Controls.Add(this.label1);
			this.groupBox2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.groupBox2.Location = new System.Drawing.Point(235, 258);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(464, 96);
			this.groupBox2.TabIndex = 9;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "当前选中用户信息";
			// 
			// txtlevels
			// 
			this.txtlevels.Location = new System.Drawing.Point(304, 32);
			this.txtlevels.Name = "txtlevels";
			this.txtlevels.Size = new System.Drawing.Size(128, 26);
			this.txtlevels.TabIndex = 3;
			this.txtlevels.Text = "";
			// 
			// txtuserid
			// 
			this.txtuserid.Location = new System.Drawing.Point(96, 32);
			this.txtuserid.Name = "txtuserid";
			this.txtuserid.Size = new System.Drawing.Size(128, 26);
			this.txtuserid.TabIndex = 2;
			this.txtuserid.Text = "";
			// 
			// label2
			// 
			this.label2.ForeColor = System.Drawing.Color.Red;
			this.label2.Location = new System.Drawing.Point(240, 32);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 24);
			this.label2.TabIndex = 1;
			this.label2.Text = "权限:";
			// 
			// label1
			// 
			this.label1.ForeColor = System.Drawing.Color.Red;
			this.label1.Location = new System.Drawing.Point(16, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 32);
			this.label1.TabIndex = 0;
			this.label1.Text = "用户名:";
			// 
			// btnexit
			// 
			this.btnexit.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btnexit.Location = new System.Drawing.Point(544, 64);
			this.btnexit.Name = "btnexit";
			this.btnexit.Size = new System.Drawing.Size(104, 32);
			this.btnexit.TabIndex = 10;
			this.btnexit.Text = "退出";
			this.btnexit.Click += new System.EventHandler(this.btnexit_Click);
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.label14);
			this.panel1.Controls.Add(this.btnok1);
			this.panel1.Controls.Add(this.txtpwd1);
			this.panel1.Controls.Add(this.txtlevel1);
			this.panel1.Controls.Add(this.txtuserid1);
			this.panel1.Controls.Add(this.label5);
			this.panel1.Controls.Add(this.label4);
			this.panel1.Controls.Add(this.label3);
			this.panel1.Location = new System.Drawing.Point(240, 112);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(456, 128);
			this.panel1.TabIndex = 11;
			// 
			// btnok1
			// 
			this.btnok1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.btnok1.Location = new System.Drawing.Point(304, 80);
			this.btnok1.Name = "btnok1";
			this.btnok1.Size = new System.Drawing.Size(104, 32);
			this.btnok1.TabIndex = 6;
			this.btnok1.Text = "确认添加";
			this.btnok1.Click += new System.EventHandler(this.btnok1_Click);
			// 
			// txtpwd1
			// 
			this.txtpwd1.Location = new System.Drawing.Point(320, 16);
			this.txtpwd1.Name = "txtpwd1";
			this.txtpwd1.Size = new System.Drawing.Size(112, 21);
			this.txtpwd1.TabIndex = 5;
			this.txtpwd1.Text = "";
			// 
			// txtlevel1
			// 
			this.txtlevel1.Location = new System.Drawing.Point(88, 56);
			this.txtlevel1.Name = "txtlevel1";
			this.txtlevel1.Size = new System.Drawing.Size(104, 21);
			this.txtlevel1.TabIndex = 4;
			this.txtlevel1.Text = "";
			// 
			// txtuserid1
			// 
			this.txtuserid1.Location = new System.Drawing.Point(88, 16);
			this.txtuserid1.Name = "txtuserid1";
			this.txtuserid1.Size = new System.Drawing.Size(104, 21);
			this.txtuserid1.TabIndex = 3;
			this.txtuserid1.Text = "";
			// 
			// label5
			// 
			this.label5.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label5.ForeColor = System.Drawing.Color.Olive;
			this.label5.Location = new System.Drawing.Point(16, 56);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(72, 24);
			this.label5.TabIndex = 2;
			this.label5.Text = "权限:";
			// 
			// label4
			// 
			this.label4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label4.ForeColor = System.Drawing.Color.Olive;
			this.label4.Location = new System.Drawing.Point(232, 16);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(72, 24);
			this.label4.TabIndex = 1;
			this.label4.Text = "密码:";

⌨️ 快捷键说明

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