📄 childmgruser.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;namespace WWAM.Forms.Child{ public class ChildMgrUser : WWAM.Forms.Child.ChdBase {
#region ChildMgrUser
private DevExpress.XtraGrid.GridControl gcUser;
private DevExpress.XtraGrid.Views.Grid.GridView gvUser;
private DevExpress.XtraGrid.Columns.GridColumn colCode;
private DevExpress.XtraGrid.Columns.GridColumn colName;
private DevExpress.XtraGrid.Columns.GridColumn colDuty;
private DevExpress.XtraGrid.Columns.GridColumn colPhone;
private DevExpress.XtraBars.Docking.DockManager dockManager1;
private DevExpress.XtraBars.Docking.DockPanel dpDetail;
private DevExpress.XtraBars.Docking.ControlContainer dockPanel1_Container;
private System.Windows.Forms.Panel mainPanel;
private DevExpress.XtraEditors.TextEdit txtName;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private DevExpress.XtraEditors.TextEdit txtCode;
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.MemoEdit txtMemo;
private System.Windows.Forms.Label label7;
private DevExpress.XtraEditors.CheckEdit chkMPG1I3;
private DevExpress.XtraEditors.CheckEdit chkMPG1I4;
private DevExpress.XtraEditors.CheckEdit chkMPG1I2;
private DevExpress.XtraEditors.CheckEdit chkMPG1I1;
private DevExpress.XtraEditors.CheckEdit chkMPG1;
private DevExpress.XtraEditors.CheckEdit chkMPG2I4;
private DevExpress.XtraEditors.CheckEdit chkMPG2I3;
private DevExpress.XtraEditors.CheckEdit chkMPG2I2;
private DevExpress.XtraEditors.CheckEdit chkMPG2I1;
private DevExpress.XtraEditors.CheckEdit chkMPG2;
private DevExpress.XtraEditors.CheckEdit chkMPG1I5;
private WWAM.DBA.WWAMDS wwamds1;
private WWAM.BLL.NavBarBtns nbbUser; private System.ComponentModel.IContainer components = null; public ChildMgrUser() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } public ChildMgrUser(DevExpress.XtraNavBar.NavBarItem item):base(item) { // 该调用是 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() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ChildMgrUser));
this.gcUser = new DevExpress.XtraGrid.GridControl();
this.wwamds1 = new WWAM.DBA.WWAMDS();
this.gvUser = new DevExpress.XtraGrid.Views.Grid.GridView();
this.colCode = new DevExpress.XtraGrid.Columns.GridColumn();
this.colName = new DevExpress.XtraGrid.Columns.GridColumn();
this.colDuty = new DevExpress.XtraGrid.Columns.GridColumn();
this.colPhone = new DevExpress.XtraGrid.Columns.GridColumn();
this.nbbUser = new WWAM.BLL.NavBarBtns();
this.dockManager1 = new DevExpress.XtraBars.Docking.DockManager();
this.dpDetail = new DevExpress.XtraBars.Docking.DockPanel();
this.dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer();
this.txtName = new DevExpress.XtraEditors.TextEdit();
this.txtCode = new DevExpress.XtraEditors.TextEdit();
this.txtDuty = new DevExpress.XtraEditors.TextEdit();
this.txtPhone = new DevExpress.XtraEditors.TextEdit();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.txtMemo = new DevExpress.XtraEditors.MemoEdit();
this.label7 = new System.Windows.Forms.Label();
this.chkMPG1I3 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I4 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I2 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I1 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I4 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I3 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I2 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2I1 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG2 = new DevExpress.XtraEditors.CheckEdit();
this.chkMPG1I5 = new DevExpress.XtraEditors.CheckEdit();
this.mainPanel = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.gcUser)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.wwamds1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gvUser)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dockManager1)).BeginInit();
this.dpDetail.SuspendLayout();
this.dockPanel1_Container.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.txtName.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtCode.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtDuty.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtPhone.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtMemo.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I3.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I4.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I2.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I4.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I3.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I2.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2I1.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG2.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.chkMPG1I5.Properties)).BeginInit();
this.mainPanel.SuspendLayout();
this.SuspendLayout();
//
// btnClose
//
this.btnClose.Name = "btnClose";
//
// gcUser
//
this.gcUser.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.gcUser.DataSource = this.wwamds1.iUser;
//
// gcUser.EmbeddedNavigator
//
this.gcUser.EmbeddedNavigator.Buttons.Append.Visible = false;
this.gcUser.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
this.gcUser.EmbeddedNavigator.Buttons.Edit.Visible = false;
this.gcUser.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
this.gcUser.EmbeddedNavigator.Buttons.NextPage.Visible = false;
this.gcUser.EmbeddedNavigator.Buttons.PrevPage.Visible = false;
this.gcUser.EmbeddedNavigator.Buttons.Remove.Visible = false;
this.gcUser.EmbeddedNavigator.Name = "";
this.gcUser.EmbeddedNavigator.TextStringFormat = "第 {0} 条 / 共 {1} 条";
this.gcUser.Location = new System.Drawing.Point(16, 40);
this.gcUser.MainView = this.gvUser;
this.gcUser.Name = "gcUser";
this.gcUser.Size = new System.Drawing.Size(528, 184);
this.gcUser.TabIndex = 5;
this.gcUser.UseEmbeddedNavigator = true;
this.gcUser.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gvUser});
//
// wwamds1
//
this.wwamds1.DataSetName = "WWAMDS";
this.wwamds1.Locale = new System.Globalization.CultureInfo("en-US");
//
// gvUser
//
this.gvUser.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.colCode,
this.colName,
this.colDuty,
this.colPhone});
this.gvUser.GridControl = this.gcUser;
this.gvUser.Name = "gvUser";
this.gvUser.OptionsBehavior.Editable = false;
this.gvUser.OptionsCustomization.AllowFilter = false;
this.gvUser.OptionsMenu.EnableFooterMenu = false;
this.gvUser.OptionsMenu.EnableGroupPanelMenu = false;
this.gvUser.OptionsView.ColumnAutoWidth = false;
this.gvUser.OptionsView.ShowGroupPanel = false;
this.gvUser.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.gvUser_FocusedRowChanged);
this.gvUser.Layout += new System.EventHandler(this.View_Layout);
//
// colCode
//
this.colCode.Caption = "帐号";
this.colCode.FieldName = "Code";
this.colCode.Name = "colCode";
this.colCode.Visible = true;
this.colCode.VisibleIndex = 0;
this.colCode.Width = 104;
//
// colName
//
this.colName.Caption = "姓名";
this.colName.FieldName = "Name";
this.colName.Name = "colName";
this.colName.Visible = true;
this.colName.VisibleIndex = 1;
this.colName.Width = 112;
//
// colDuty
//
this.colDuty.Caption = "职务";
this.colDuty.FieldName = "Duty";
this.colDuty.Name = "colDuty";
this.colDuty.Visible = true;
this.colDuty.VisibleIndex = 2;
this.colDuty.Width = 98;
//
// colPhone
//
this.colPhone.Caption = "电话";
this.colPhone.FieldName = "Phone";
this.colPhone.Name = "colPhone";
this.colPhone.Visible = true;
this.colPhone.VisibleIndex = 3;
this.colPhone.Width = 173;
//
// nbbUser
//
this.nbbUser.BtnImgAppend = ((System.Drawing.Image)(resources.GetObject("nbbUser.BtnImgAppend")));
this.nbbUser.BtnImgDelete = ((System.Drawing.Image)(resources.GetObject("nbbUser.BtnImgDelete")));
this.nbbUser.BtnImgEdit = ((System.Drawing.Image)(resources.GetObject("nbbUser.BtnImgEdit")));
this.nbbUser.BtnImgExcel = ((System.Drawing.Image)(resources.GetObject("nbbUser.BtnImgExcel")));
this.nbbUser.BtnImgFind = ((System.Drawing.Image)(resources.GetObject("nbbUser.BtnImgFind")));
this.nbbUser.BtnImgPrint = ((System.Drawing.Image)(resources.GetObject("nbbUser.BtnImgPrint")));
this.nbbUser.BtnImgRefresh = ((System.Drawing.Image)(resources.GetObject("nbbUser.BtnImgRefresh")));
this.nbbUser.GridCtrl = this.gcUser;
this.nbbUser.Location = new System.Drawing.Point(16, 8);
this.nbbUser.Name = "nbbUser";
this.nbbUser.Size = new System.Drawing.Size(138, 28);
this.nbbUser.TabIndex = 4;
this.nbbUser.ClickButton += new WWAM.BLL.NavBarBtns.ButtonEventHandler(this.nbbUser_ClickButton);
//
// dockManager1
//
this.dockManager1.Form = this;
this.dockManager1.RootPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] {
this.dpDetail});
this.dockManager1.TopZIndexControls.AddRange(new string[] {
"DevExpress.XtraBars.BarDockControl",
"System.Windows.Forms.StatusBar"});
//
// dpDetail
//
this.dpDetail.Controls.Add(this.dockPanel1_Container);
this.dpDetail.Dock = DevExpress.XtraBars.Docking.DockingStyle.Bottom;
this.dpDetail.ID = new System.Guid("cfba4a50-7888-4b03-8732-6a11ad87d56b");
this.dpDetail.Location = new System.Drawing.Point(0, 232);
this.dpDetail.Name = "dpDetail";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -