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

📄 usermanage.cs

📁 c#编写的汽车销售公司erp进销存系统
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using CallCenter.BusinessLayer;
using CallCenter.Modules;
using System.Data;
using System.IO;
using System.Xml;

namespace CallCenter.BusinessInterfaces.MainForms
{
	/// <summary>
	/// UserManage 的摘要说明。
	/// </summary>
	public class UserManage :System.Windows.Forms.UserControl
	{
		private WebMIS.GoldFilter.GridDataFilter gridDataFilter1;
		private DevExpress.XtraEditors.PanelControl panel2;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.DataGrid dgMenu;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label6;
		private DevExpress.XtraEditors.PanelControl panel1;
		private DevExpress.XtraEditors.ComboBoxEdit cobLevel;
		private DevExpress.XtraEditors.TextEdit txtname;
		private DevExpress.XtraEditors.TextEdit txtLogin;
		private DevExpress.XtraEditors.TextEdit txtPwd;
		private DevExpress.XtraEditors.TextEdit txtId;
		private DevExpress.XtraEditors.TextEdit txtPwdC;
		private DevExpress.XtraEditors.TextEdit txtTelnumber;
		private DevExpress.XtraEditors.TextEdit txtDescript;
		private DevExpress.XtraEditors.TextEdit txtMenu;
		private DevExpress.XtraEditors.SimpleButton btAdd;
		private DevExpress.XtraEditors.SimpleButton btSave;
		private DevExpress.XtraEditors.SimpleButton btDelete;
		private DevExpress.XtraEditors.SimpleButton btReset;
		private System.Windows.Forms.DataGrid dgUser;
		private DevExpress.XtraEditors.PanelControl panelControl1;
		private System.ComponentModel.IContainer components=null;

		public UserManage()
		{
			//
			// 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.gridDataFilter1 = new WebMIS.GoldFilter.GridDataFilter();
			this.panel2 = new DevExpress.XtraEditors.PanelControl();
			this.dgUser = new System.Windows.Forms.DataGrid();
			this.button1 = new System.Windows.Forms.Button();
			this.dgMenu = new System.Windows.Forms.DataGrid();
			this.label9 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.panel1 = new DevExpress.XtraEditors.PanelControl();
			this.btReset = new DevExpress.XtraEditors.SimpleButton();
			this.btDelete = new DevExpress.XtraEditors.SimpleButton();
			this.btSave = new DevExpress.XtraEditors.SimpleButton();
			this.btAdd = new DevExpress.XtraEditors.SimpleButton();
			this.txtDescript = new DevExpress.XtraEditors.TextEdit();
			this.txtTelnumber = new DevExpress.XtraEditors.TextEdit();
			this.txtPwdC = new DevExpress.XtraEditors.TextEdit();
			this.txtId = new DevExpress.XtraEditors.TextEdit();
			this.txtPwd = new DevExpress.XtraEditors.TextEdit();
			this.txtLogin = new DevExpress.XtraEditors.TextEdit();
			this.txtname = new DevExpress.XtraEditors.TextEdit();
			this.cobLevel = new DevExpress.XtraEditors.ComboBoxEdit();
			this.txtMenu = new DevExpress.XtraEditors.TextEdit();
			this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
			((System.ComponentModel.ISupportInitialize)(this.panel2)).BeginInit();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dgUser)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dgMenu)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.panel1)).BeginInit();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.txtDescript.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtTelnumber.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPwdC.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtId.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPwd.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtLogin.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtname.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cobLevel.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtMenu.Properties)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
			this.panelControl1.SuspendLayout();
			this.SuspendLayout();
			// 
			// gridDataFilter1
			// 
			this.gridDataFilter1.checkbox = null;
			this.gridDataFilter1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gridDataFilter1.Location = new System.Drawing.Point(2, 2);
			this.gridDataFilter1.Name = "gridDataFilter1";
			this.gridDataFilter1.Size = new System.Drawing.Size(804, 36);
			this.gridDataFilter1.TabIndex = 3;
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.dgUser);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel2.Location = new System.Drawing.Point(0, 208);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(808, 277);
			this.panel2.TabIndex = 5;
			// 
			// dgUser
			// 
			this.dgUser.AlternatingBackColor = System.Drawing.Color.GhostWhite;
			this.dgUser.BackColor = System.Drawing.Color.GhostWhite;
			this.dgUser.BackgroundColor = System.Drawing.Color.Lavender;
			this.dgUser.CaptionBackColor = System.Drawing.Color.FromArgb(((System.Byte)(90)), ((System.Byte)(180)), ((System.Byte)(232)));
			this.dgUser.CaptionForeColor = System.Drawing.Color.Black;
			this.dgUser.CaptionText = "用户信息列表";
			this.dgUser.DataMember = "";
			this.dgUser.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dgUser.FlatMode = true;
			this.dgUser.Font = new System.Drawing.Font("Tahoma", 8F);
			this.dgUser.ForeColor = System.Drawing.Color.MidnightBlue;
			this.dgUser.GridLineColor = System.Drawing.Color.RoyalBlue;
			this.dgUser.HeaderBackColor = System.Drawing.Color.MidnightBlue;
			this.dgUser.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
			this.dgUser.HeaderForeColor = System.Drawing.Color.Lavender;
			this.dgUser.LinkColor = System.Drawing.Color.Teal;
			this.dgUser.Location = new System.Drawing.Point(2, 2);
			this.dgUser.Name = "dgUser";
			this.dgUser.ParentRowsBackColor = System.Drawing.Color.Lavender;
			this.dgUser.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
			this.dgUser.ReadOnly = true;
			this.dgUser.SelectionBackColor = System.Drawing.Color.Teal;
			this.dgUser.SelectionForeColor = System.Drawing.Color.PaleGreen;
			this.dgUser.Size = new System.Drawing.Size(804, 273);
			this.dgUser.TabIndex = 2;
			this.dgUser.CurrentCellChanged += new System.EventHandler(this.dgUser_CurrentCellChanged);
			// 
			// button1
			// 
			this.button1.BackColor = System.Drawing.SystemColors.MenuText;
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.button1.Font = new System.Drawing.Font("Engravers MT", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button1.ForeColor = System.Drawing.Color.Red;
			this.button1.Location = new System.Drawing.Point(418, 106);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(19, 19);
			this.button1.TabIndex = 41;
			this.button1.Text = "X";
			this.button1.Visible = false;
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// dgMenu
			// 
			this.dgMenu.BackgroundColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.dgMenu.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.dgMenu.CaptionBackColor = System.Drawing.Color.Beige;
			this.dgMenu.CaptionForeColor = System.Drawing.Color.Black;
			this.dgMenu.CaptionText = "菜单信息列表";
			this.dgMenu.DataMember = "";
			this.dgMenu.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dgMenu.Location = new System.Drawing.Point(248, 104);
			this.dgMenu.Name = "dgMenu";
			this.dgMenu.ReadOnly = true;
			this.dgMenu.RowHeaderWidth = 0;
			this.dgMenu.Size = new System.Drawing.Size(192, 96);
			this.dgMenu.TabIndex = 36;
			this.dgMenu.Visible = false;
			this.dgMenu.CurrentCellChanged += new System.EventHandler(this.dgMenu_CurrentCellChanged);
			// 
			// label9
			// 
			this.label9.Font = new System.Drawing.Font("宋体", 9F);
			this.label9.Location = new System.Drawing.Point(464, 104);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(72, 16);
			this.label9.TabIndex = 45;
			this.label9.Text = "坐席电话";
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("宋体", 9F);
			this.label1.Location = new System.Drawing.Point(464, 40);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 16);
			this.label1.TabIndex = 42;
			this.label1.Text = "坐席ID";
			// 
			// label7
			// 
			this.label7.Font = new System.Drawing.Font("宋体", 9F);
			this.label7.Location = new System.Drawing.Point(232, 40);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(56, 23);
			this.label7.TabIndex = 37;
			this.label7.Text = "登陆名";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label8
			// 
			this.label8.Font = new System.Drawing.Font("宋体", 9F);
			this.label8.Location = new System.Drawing.Point(24, 104);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(64, 24);
			this.label8.TabIndex = 39;
			this.label8.Text = "菜单列表";
			this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label5
			// 
			this.label5.Font = new System.Drawing.Font("宋体", 9F);
			this.label5.Location = new System.Drawing.Point(24, 72);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(56, 23);
			this.label5.TabIndex = 29;
			this.label5.Text = "级别";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label4
			// 
			this.label4.Font = new System.Drawing.Font("宋体", 9F);
			this.label4.Location = new System.Drawing.Point(464, 72);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(72, 23);
			this.label4.TabIndex = 26;
			this.label4.Text = "密码确认";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label3
			// 
			this.label3.Font = new System.Drawing.Font("宋体", 9F);
			this.label3.Location = new System.Drawing.Point(232, 72);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(56, 23);
			this.label3.TabIndex = 24;
			this.label3.Text = "密码";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("宋体", 9F);
			this.label2.Location = new System.Drawing.Point(24, 40);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 23);
			this.label2.TabIndex = 23;
			this.label2.Text = "用户名";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label6
			// 
			this.label6.Font = new System.Drawing.Font("宋体", 9F);
			this.label6.Location = new System.Drawing.Point(24, 136);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(72, 23);
			this.label6.TabIndex = 30;
			this.label6.Text = "服务描述";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// panel1
			// 
			this.panel1.Appearance.BackColor = System.Drawing.Color.Transparent;
			this.panel1.Appearance.Options.UseBackColor = true;
			this.panel1.Controls.Add(this.btReset);
			this.panel1.Controls.Add(this.btDelete);
			this.panel1.Controls.Add(this.btSave);
			this.panel1.Controls.Add(this.btAdd);
			this.panel1.Controls.Add(this.button1);
			this.panel1.Controls.Add(this.dgMenu);
			this.panel1.Controls.Add(this.txtDescript);
			this.panel1.Controls.Add(this.txtTelnumber);
			this.panel1.Controls.Add(this.txtPwdC);
			this.panel1.Controls.Add(this.txtId);
			this.panel1.Controls.Add(this.txtPwd);
			this.panel1.Controls.Add(this.txtLogin);
			this.panel1.Controls.Add(this.txtname);
			this.panel1.Controls.Add(this.cobLevel);
			this.panel1.Controls.Add(this.label9);
			this.panel1.Controls.Add(this.label1);
			this.panel1.Controls.Add(this.label7);
			this.panel1.Controls.Add(this.label8);
			this.panel1.Controls.Add(this.label5);
			this.panel1.Controls.Add(this.label4);
			this.panel1.Controls.Add(this.label3);
			this.panel1.Controls.Add(this.label2);
			this.panel1.Controls.Add(this.label6);
			this.panel1.Controls.Add(this.txtMenu);
			this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(808, 208);
			this.panel1.TabIndex = 4;
			// 
			// btReset
			// 
			this.btReset.Location = new System.Drawing.Point(696, 128);
			this.btReset.Name = "btReset";
			this.btReset.TabIndex = 59;
			this.btReset.Text = "清空";
			this.btReset.Click += new System.EventHandler(this.btReset_Click);
			// 
			// btDelete
			// 
			this.btDelete.Location = new System.Drawing.Point(696, 96);
			this.btDelete.Name = "btDelete";
			this.btDelete.TabIndex = 58;
			this.btDelete.Text = "删除";
			this.btDelete.Click += new System.EventHandler(this.btDelete_Click);
			// 
			// btSave
			// 
			this.btSave.Location = new System.Drawing.Point(696, 64);
			this.btSave.Name = "btSave";
			this.btSave.TabIndex = 57;

⌨️ 快捷键说明

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