📄 dlgdatauser.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;namespace WWAM.Forms.Dlg{ public class DlgDataUser : WWAM.Forms.Dlg.DlgBase { #region DlgDataUser private System.ComponentModel.IContainer components = null;
private DevExpress.XtraEditors.TextEdit txtPassword;
private DevExpress.XtraEditors.MemoEdit txtMemo;
private System.Windows.Forms.Label label4;
private DevExpress.XtraEditors.CheckEdit chkChangePass;
private System.Windows.Forms.Label label7;
private DevExpress.XtraEditors.CheckEdit chkMPG1;
private DevExpress.XtraEditors.CheckEdit chkMPG2;
private DevExpress.XtraEditors.CheckEdit chkMPG1I1;
private DevExpress.XtraEditors.CheckEdit chkMPG1I2;
private DevExpress.XtraEditors.CheckEdit chkMPG2I1;
private DevExpress.XtraEditors.CheckEdit chkMPG2I2;
private DevExpress.XtraEditors.CheckEdit chkMPG2I3;
private System.Windows.Forms.Label lblTitle;
private System.Windows.Forms.Label label6;
private DevExpress.XtraEditors.TextEdit txtDuty;
private System.Windows.Forms.Label label5;
private DevExpress.XtraEditors.TextEdit txtPhone;
private DevExpress.XtraEditors.TextEdit txtName;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private DevExpress.XtraEditors.TextEdit txtCode;
private DevExpress.XtraEditors.CheckEdit chkMPG1I5;
private DevExpress.XtraEditors.CheckEdit chkMPG1I4;
private DevExpress.XtraEditors.CheckEdit chkMPG1I3;
private DevExpress.XtraEditors.CheckEdit chkMPG2I4; public DlgDataUser() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } public DlgDataUser(Form form):base(form) { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.lblTitle = new System.Windows.Forms.Label();
this.txtPassword = new DevExpress.XtraEditors.TextEdit();
this.txtMemo = new DevExpress.XtraEditors.MemoEdit();
this.label4 = new System.Windows.Forms.Label();
this.chkChangePass = new DevExpress.XtraEditors.CheckEdit();
this.label7 = new System.Windows.Forms.Label();
this.chkMPG1 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I1 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I2 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I4 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I5 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I1 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I2 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I3 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I4 = new DevExpress.XtraEditors.CheckEdit();
this.label6 = new System.Windows.Forms.Label();
this.txtDuty = new DevExpress.XtraEditors.TextEdit();
this.label5 = new System.Windows.Forms.Label();
this.txtPhone = new DevExpress.XtraEditors.TextEdit();
this.txtName = new DevExpress.XtraEditors.TextEdit();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtCode = new DevExpress.XtraEditors.TextEdit();
this.chkMPG1I3 = new DevExpress.XtraEditors.CheckEdit();
((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtMemo.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkChangePass.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I2.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I4.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I5.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I2.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I3.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I4.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtDuty.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtPhone.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtName.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtCode.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I3.Properties)).BeginInit();
this.SuspendLayout();
//
// btnAccept
//
this.btnAccept.Location = new System.Drawing.Point(216, 312);
this.btnAccept.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
this.btnAccept.LookAndFeel.UseWindowsXPTheme = false;
this.btnAccept.Name = "btnAccept";
this.btnAccept.TabIndex = 17;
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(320, 312);
this.btnCancel.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
this.btnCancel.LookAndFeel.UseWindowsXPTheme = false;
this.btnCancel.Name = "btnCancel";
this.btnCancel.TabIndex = 18;
//
// lblTitle
//
this.lblTitle.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.lblTitle.ForeColor = System.Drawing.Color.RoyalBlue;
this.lblTitle.Location = new System.Drawing.Point(16, 8);
this.lblTitle.Name = "lblTitle";
this.lblTitle.Size = new System.Drawing.Size(128, 24);
this.lblTitle.TabIndex = 7;
this.lblTitle.Text = "人员资料";
//
// txtPassword
//
this.txtPassword.EditValue = "";
this.txtPassword.EnterMoveNextControl = true;
this.txtPassword.Location = new System.Drawing.Point(72, 112);
this.txtPassword.Name = "txtPassword";
//
// txtPassword.Properties
//
this.txtPassword.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtPassword.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtPassword.Properties.PasswordChar = '*';
this.txtPassword.Size = new System.Drawing.Size(128, 21);
this.txtPassword.TabIndex = 2;
this.txtPassword.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// txtMemo
//
this.txtMemo.EditValue = "";
this.txtMemo.EnterMoveNextControl = true;
this.txtMemo.Location = new System.Drawing.Point(72, 208);
this.txtMemo.Name = "txtMemo";
//
// txtMemo.Properties
//
this.txtMemo.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtMemo.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtMemo.Size = new System.Drawing.Size(176, 72);
this.txtMemo.TabIndex = 5;
this.txtMemo.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// label4
//
this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Location = new System.Drawing.Point(8, 112);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(64, 23);
this.label4.TabIndex = 16;
this.label4.Text = "密码:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// chkChangePass
//
this.chkChangePass.Location = new System.Drawing.Point(200, 112);
this.chkChangePass.Name = "chkChangePass";
//
// chkChangePass.Properties
//
this.chkChangePass.Properties.Caption = "修改";
this.chkChangePass.Size = new System.Drawing.Size(48, 19);
this.chkChangePass.TabIndex = 19;
this.chkChangePass.CheckedChanged += new System.EventHandler(this.chkChangePass_CheckedChanged);
//
// label7
//
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.Location = new System.Drawing.Point(8, 208);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(64, 23);
this.label7.TabIndex = 20;
this.label7.Text = "备注:";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// chkMPG1
//
this.chkMPG1.Location = new System.Drawing.Point(288, 32);
this.chkMPG1.Name = "chkMPG1";
//
// chkMPG1.Properties
//
this.chkMPG1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.chkMPG1.Properties.Appearance.Options.UseFont = true;
this.chkMPG1.Properties.Caption = "业务";
this.chkMPG1.Size = new System.Drawing.Size(48, 19);
this.chkMPG1.TabIndex = 6;
this.chkMPG1.CheckedChanged += new System.EventHandler(this.chkMPG1_CheckedChanged);
//
// chkMPG2
//
this.chkMPG2.Location = new System.Drawing.Point(288, 176);
this.chkMPG2.Name = "chkMPG2";
//
// chkMPG2.Properties
//
this.chkMPG2.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.chkMPG2.Properties.Appearance.Options.UseFont = true;
this.chkMPG2.Properties.Caption = "管理";
this.chkMPG2.Size = new System.Drawing.Size(48, 19);
this.chkMPG2.TabIndex = 12;
this.chkMPG2.CheckedChanged += new System.EventHandler(this.chkMPG2_CheckedChanged);
//
// chkMPG1I1
//
this.chkMPG1I1.Location = new System.Drawing.Point(304, 56);
this.chkMPG1I1.Name = "chkMPG1I1";
//
// chkMPG1I1.Properties
//
this.chkMPG1I1.Properties.Caption = "广告登记";
this.chkMPG1I1.Size = new System.Drawing.Size(80, 19);
this.chkMPG1I1.TabIndex = 7;
this.chkMPG1I1.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// chkMPG1I2
//
this.chkMPG1I2.Location = new System.Drawing.Point(304, 80);
this.chkMPG1I2.Name = "chkMPG1I2";
//
// chkMPG1I2.Properties
//
this.chkMPG1I2.Properties.Caption = "广告批示";
this.chkMPG1I2.Size = new System.Drawing.Size(80, 19);
this.chkMPG1I2.TabIndex = 8;
this.chkMPG1I2.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// chkMPG1I4
//
this.chkMPG1I4.Location = new System.Drawing.Point(304, 128);
this.chkMPG1I4.Name = "chkMPG1I4";
//
// chkMPG1I4.Properties
//
this.chkMPG1I4.Properties.Caption = "汇总报表";
this.chkMPG1I4.Size = new System.Drawing.Size(80, 19);
this.chkMPG1I4.TabIndex = 10;
this.chkMPG1I4.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// chkMPG1I5
//
this.chkMPG1I5.Location = new System.Drawing.Point(304, 152);
this.chkMPG1I5.Name = "chkMPG1I5";
//
// chkMPG1I5.Properties
//
this.chkMPG1I5.Properties.Caption = "广告模版";
this.chkMPG1I5.Size = new System.Drawing.Size(80, 19);
this.chkMPG1I5.TabIndex = 11;
this.chkMPG1I5.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// chkMPG2I1
//
this.chkMPG2I1.Location = new System.Drawing.Point(304, 200);
this.chkMPG2I1.Name = "chkMPG2I1";
//
// chkMPG2I1.Properties
//
this.chkMPG2I1.Properties.Caption = "人员管理";
this.chkMPG2I1.Size = new System.Drawing.Size(80, 19);
this.chkMPG2I1.TabIndex = 13;
this.chkMPG2I1.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// chkMPG2I2
//
this.chkMPG2I2.Location = new System.Drawing.Point(304, 224);
this.chkMPG2I2.Name = "chkMPG2I2";
//
// chkMPG2I2.Properties
//
this.chkMPG2I2.Properties.Caption = "资料管理";
this.chkMPG2I2.Size = new System.Drawing.Size(80, 19);
this.chkMPG2I2.TabIndex = 14;
this.chkMPG2I2.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// chkMPG2I3
//
this.chkMPG2I3.Location = new System.Drawing.Point(304, 248);
this.chkMPG2I3.Name = "chkMPG2I3";
//
// chkMPG2I3.Properties
//
this.chkMPG2I3.Properties.Caption = "系统日志";
this.chkMPG2I3.Size = new System.Drawing.Size(80, 19);
this.chkMPG2I3.TabIndex = 15;
this.chkMPG2I3.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// chkMPG2I4
//
this.chkMPG2I4.Location = new System.Drawing.Point(304, 272);
this.chkMPG2I4.Name = "chkMPG2I4";
//
// chkMPG2I4.Properties
//
this.chkMPG2I4.Properties.Caption = "数据备份";
this.chkMPG2I4.Size = new System.Drawing.Size(80, 19);
this.chkMPG2I4.TabIndex = 16;
this.chkMPG2I4.Visible = false;
this.chkMPG2I4.CheckedChanged += new System.EventHandler(this.CheckEdit_CheckedChanged);
//
// label6
//
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Location = new System.Drawing.Point(8, 176);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(72, 23);
this.label6.TabIndex = 19;
this.label6.Text = "联系电话:";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtDuty
//
this.txtDuty.EditValue = "";
this.txtDuty.EnterMoveNextControl = true;
this.txtDuty.Location = new System.Drawing.Point(72, 144);
this.txtDuty.Name = "txtDuty";
//
// txtDuty.Properties
//
this.txtDuty.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
this.txtDuty.Properties.AppearanceFocused.Options.UseBackColor = true;
this.txtDuty.Size = new System.Drawing.Size(176, 21);
this.txtDuty.TabIndex = 3;
this.txtDuty.EditValueChanged += new System.EventHandler(this.BaseEditor_EditValueChanged);
//
// label5
//
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Location = new System.Drawing.Point(8, 144);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(64, 23);
this.label5.TabIndex = 17;
this.label5.Text = "职务:";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// txtPhone
//
this.txtPhone.EditValue = "";
this.txtPhone.EnterMoveNextControl = true;
this.txtPhone.Location = new System.Drawing.Point(72, 176);
this.txtPhone.Name = "txtPhone";
//
// txtPhone.Properties
//
this.txtPhone.Properties.AppearanceFocused.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -