| | |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | pumpProductListBox1 = new Assets.PumpProductListBox(); |
| | | BtnAddPumpPart = new DevExpress.XtraEditors.SimpleButton(); |
| | | treeListPart = new DevExpress.XtraTreeList.TreeList(); |
| | | treeListColumn1 = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | BtnOk = new DevExpress.XtraEditors.SimpleButton(); |
| | | simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | |
| | | Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
| | | r = new DevExpress.XtraLayout.EmptySpaceItem(); |
| | | layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControAddPart = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | popupPumpPartMenu = new DevExpress.XtraBars.PopupMenu(components); |
| | | BarBtnAddPumpPart = new DevExpress.XtraBars.BarButtonItem(); |
| | | barManager1 = new DevExpress.XtraBars.BarManager(components); |
| | | barDockControlTop = new DevExpress.XtraBars.BarDockControl(); |
| | | barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); |
| | |
| | | barDockControlRight = new DevExpress.XtraBars.BarDockControl(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); |
| | | layoutControl1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)treeListPart).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)propGroupChoiceViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)r).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem5).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem6).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControAddPart).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)popupPumpPartMenu).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)barManager1).BeginInit(); |
| | |
| | | // |
| | | // layoutControl1 |
| | | // |
| | | layoutControl1.Controls.Add(pumpProductListBox1); |
| | | layoutControl1.Controls.Add(BtnAddPumpPart); |
| | | layoutControl1.Controls.Add(treeListPart); |
| | | layoutControl1.Controls.Add(BtnOk); |
| | | layoutControl1.Controls.Add(simpleButton1); |
| | | layoutControl1.Controls.Add(gridControl1); |
| | |
| | | layoutControl1.TabIndex = 0; |
| | | layoutControl1.Text = "layoutControl1"; |
| | | // |
| | | // pumpProductListBox1 |
| | | // |
| | | pumpProductListBox1.Location = new Point(12, 12); |
| | | pumpProductListBox1.Name = "pumpProductListBox1"; |
| | | pumpProductListBox1.Size = new Size(163, 512); |
| | | pumpProductListBox1.TabIndex = 9; |
| | | // |
| | | // BtnAddPumpPart |
| | | // |
| | | BtnAddPumpPart.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; |
| | | BtnAddPumpPart.Appearance.Options.UseBackColor = true; |
| | | BtnAddPumpPart.Location = new Point(652, 502); |
| | | BtnAddPumpPart.Location = new Point(713, 502); |
| | | BtnAddPumpPart.Name = "BtnAddPumpPart"; |
| | | BtnAddPumpPart.Size = new Size(107, 22); |
| | | BtnAddPumpPart.Size = new Size(85, 22); |
| | | BtnAddPumpPart.StyleController = layoutControl1; |
| | | BtnAddPumpPart.TabIndex = 5; |
| | | BtnAddPumpPart.Text = "添加产品"; |
| | | BtnAddPumpPart.Click += BtnAddPumpPart_Click; |
| | | // |
| | | // treeListPart |
| | | // |
| | | treeListPart.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { treeListColumn1 }); |
| | | treeListPart.Location = new Point(12, 12); |
| | | treeListPart.Name = "treeListPart"; |
| | | treeListPart.Size = new Size(217, 486); |
| | | treeListPart.TabIndex = 0; |
| | | treeListPart.ViewStyle = DevExpress.XtraTreeList.TreeListViewStyle.TreeView; |
| | | treeListPart.FocusedNodeChanged += treeListPart_FocusedNodeChanged; |
| | | treeListPart.MouseUp += treeListPart_MouseUp; |
| | | // |
| | | // treeListColumn1 |
| | | // |
| | | treeListColumn1.Caption = "treeListColumn1"; |
| | | treeListColumn1.FieldName = "Name"; |
| | | treeListColumn1.Name = "treeListColumn1"; |
| | | treeListColumn1.OptionsColumn.AllowEdit = false; |
| | | treeListColumn1.Visible = true; |
| | | treeListColumn1.VisibleIndex = 0; |
| | | // |
| | | // BtnOk |
| | | // |
| | | BtnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; |
| | | BtnOk.Appearance.Options.UseBackColor = true; |
| | | BtnOk.Location = new Point(763, 502); |
| | | BtnOk.Location = new Point(802, 502); |
| | | BtnOk.Name = "BtnOk"; |
| | | BtnOk.Size = new Size(101, 22); |
| | | BtnOk.Size = new Size(91, 22); |
| | | BtnOk.StyleController = layoutControl1; |
| | | BtnOk.TabIndex = 4; |
| | | BtnOk.Text = "确认编辑"; |
| | |
| | | simpleButton1.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Danger; |
| | | simpleButton1.Appearance.Options.UseBackColor = true; |
| | | simpleButton1.DialogResult = DialogResult.Cancel; |
| | | simpleButton1.Location = new Point(868, 502); |
| | | simpleButton1.Location = new Point(897, 502); |
| | | simpleButton1.Name = "simpleButton1"; |
| | | simpleButton1.Size = new Size(121, 22); |
| | | simpleButton1.Size = new Size(92, 22); |
| | | simpleButton1.StyleController = layoutControl1; |
| | | simpleButton1.TabIndex = 5; |
| | | simpleButton1.Text = "取消"; |
| | |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = propGroupChoiceViewModelBindingSource; |
| | | gridControl1.Location = new Point(233, 84); |
| | | gridControl1.Location = new Point(179, 84); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(756, 414); |
| | | gridControl1.Size = new Size(810, 414); |
| | | gridControl1.TabIndex = 3; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | |
| | | // |
| | | // TextEditProductName |
| | | // |
| | | TextEditProductName.Location = new Point(297, 12); |
| | | TextEditProductName.Location = new Point(243, 12); |
| | | TextEditProductName.Name = "TextEditProductName"; |
| | | TextEditProductName.Size = new Size(692, 20); |
| | | TextEditProductName.Size = new Size(746, 20); |
| | | TextEditProductName.StyleController = layoutControl1; |
| | | TextEditProductName.TabIndex = 2; |
| | | // |
| | | // TextEditProductCode |
| | | // |
| | | TextEditProductCode.Location = new Point(297, 36); |
| | | TextEditProductCode.Location = new Point(243, 36); |
| | | TextEditProductCode.Name = "TextEditProductCode"; |
| | | TextEditProductCode.Size = new Size(692, 20); |
| | | TextEditProductCode.Size = new Size(746, 20); |
| | | TextEditProductCode.StyleController = layoutControl1; |
| | | TextEditProductCode.TabIndex = 6; |
| | | // |
| | | // TextEditNo |
| | | // |
| | | TextEditNo.Location = new Point(297, 60); |
| | | TextEditNo.Location = new Point(243, 60); |
| | | TextEditNo.Name = "TextEditNo"; |
| | | TextEditNo.Size = new Size(692, 20); |
| | | TextEditNo.Size = new Size(746, 20); |
| | | TextEditNo.StyleController = layoutControl1; |
| | | TextEditNo.TabIndex = 7; |
| | | // |
| | |
| | | // |
| | | Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; |
| | | Root.GroupBordersVisible = false; |
| | | Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem3, layoutControlItem4, emptySpaceItem1, layoutControlItem5, layoutControlItem6, layoutControlItem7, layoutControlItem2, layoutControlItem8 }); |
| | | Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, layoutControlItem3, r, layoutControlItem5, layoutControlItem6, layoutControlItem7, layoutControlItem2, layoutControAddPart, layoutControlItem8 }); |
| | | Root.Name = "Root"; |
| | | Root.Size = new Size(1001, 536); |
| | | Root.TextVisible = false; |
| | |
| | | // layoutControlItem1 |
| | | // |
| | | layoutControlItem1.Control = gridControl1; |
| | | layoutControlItem1.Location = new Point(221, 72); |
| | | layoutControlItem1.Location = new Point(167, 72); |
| | | layoutControlItem1.Name = "layoutControlItem1"; |
| | | layoutControlItem1.Size = new Size(760, 418); |
| | | layoutControlItem1.Size = new Size(814, 418); |
| | | layoutControlItem1.TextSize = new Size(0, 0); |
| | | layoutControlItem1.TextVisible = false; |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = simpleButton1; |
| | | layoutControlItem3.Location = new Point(856, 490); |
| | | layoutControlItem3.Location = new Point(885, 490); |
| | | layoutControlItem3.MaxSize = new Size(96, 26); |
| | | layoutControlItem3.MinSize = new Size(96, 26); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.Size = new Size(125, 26); |
| | | layoutControlItem3.Size = new Size(96, 26); |
| | | layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
| | | layoutControlItem3.TextSize = new Size(0, 0); |
| | | layoutControlItem3.TextVisible = false; |
| | | // |
| | | // layoutControlItem4 |
| | | // r |
| | | // |
| | | layoutControlItem4.Control = treeListPart; |
| | | layoutControlItem4.Location = new Point(0, 0); |
| | | layoutControlItem4.Name = "layoutControlItem4"; |
| | | layoutControlItem4.Size = new Size(221, 490); |
| | | layoutControlItem4.TextSize = new Size(0, 0); |
| | | layoutControlItem4.TextVisible = false; |
| | | // |
| | | // emptySpaceItem1 |
| | | // |
| | | emptySpaceItem1.AllowHotTrack = false; |
| | | emptySpaceItem1.Location = new Point(0, 490); |
| | | emptySpaceItem1.Name = "emptySpaceItem1"; |
| | | emptySpaceItem1.Size = new Size(640, 26); |
| | | emptySpaceItem1.TextSize = new Size(0, 0); |
| | | r.AllowHotTrack = false; |
| | | r.Location = new Point(167, 490); |
| | | r.Name = "r"; |
| | | r.Size = new Size(534, 26); |
| | | r.TextSize = new Size(0, 0); |
| | | // |
| | | // layoutControlItem5 |
| | | // |
| | | layoutControlItem5.Control = TextEditProductName; |
| | | layoutControlItem5.Location = new Point(221, 0); |
| | | layoutControlItem5.Location = new Point(167, 0); |
| | | layoutControlItem5.Name = "layoutControlItem5"; |
| | | layoutControlItem5.Size = new Size(760, 24); |
| | | layoutControlItem5.Size = new Size(814, 24); |
| | | layoutControlItem5.Text = "产品名称:"; |
| | | layoutControlItem5.TextSize = new Size(52, 14); |
| | | // |
| | | // layoutControlItem6 |
| | | // |
| | | layoutControlItem6.Control = TextEditProductCode; |
| | | layoutControlItem6.Location = new Point(221, 24); |
| | | layoutControlItem6.Location = new Point(167, 24); |
| | | layoutControlItem6.Name = "layoutControlItem6"; |
| | | layoutControlItem6.Size = new Size(760, 24); |
| | | layoutControlItem6.Size = new Size(814, 24); |
| | | layoutControlItem6.Text = "产品图号:"; |
| | | layoutControlItem6.TextSize = new Size(52, 14); |
| | | // |
| | | // layoutControlItem7 |
| | | // |
| | | layoutControlItem7.Control = TextEditNo; |
| | | layoutControlItem7.Location = new Point(221, 48); |
| | | layoutControlItem7.Location = new Point(167, 48); |
| | | layoutControlItem7.Name = "layoutControlItem7"; |
| | | layoutControlItem7.Size = new Size(760, 24); |
| | | layoutControlItem7.Size = new Size(814, 24); |
| | | layoutControlItem7.Text = "产品编号:"; |
| | | layoutControlItem7.TextSize = new Size(52, 14); |
| | | // |
| | | // layoutControlItem2 |
| | | // |
| | | layoutControlItem2.Control = BtnOk; |
| | | layoutControlItem2.Location = new Point(751, 490); |
| | | layoutControlItem2.Location = new Point(790, 490); |
| | | layoutControlItem2.MaxSize = new Size(95, 26); |
| | | layoutControlItem2.MinSize = new Size(95, 26); |
| | | layoutControlItem2.Name = "layoutControlItem2"; |
| | | layoutControlItem2.Size = new Size(105, 26); |
| | | layoutControlItem2.Size = new Size(95, 26); |
| | | layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
| | | layoutControlItem2.TextSize = new Size(0, 0); |
| | | layoutControlItem2.TextVisible = false; |
| | | // |
| | | // layoutControAddPart |
| | | // |
| | | layoutControAddPart.Control = BtnAddPumpPart; |
| | | layoutControAddPart.Location = new Point(701, 490); |
| | | layoutControAddPart.MaxSize = new Size(89, 26); |
| | | layoutControAddPart.MinSize = new Size(89, 26); |
| | | layoutControAddPart.Name = "layoutControAddPart"; |
| | | layoutControAddPart.Size = new Size(89, 26); |
| | | layoutControAddPart.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
| | | layoutControAddPart.TextSize = new Size(0, 0); |
| | | layoutControAddPart.TextVisible = false; |
| | | // |
| | | // layoutControlItem8 |
| | | // |
| | | layoutControlItem8.Control = BtnAddPumpPart; |
| | | layoutControlItem8.Location = new Point(640, 490); |
| | | layoutControlItem8.Control = pumpProductListBox1; |
| | | layoutControlItem8.Location = new Point(0, 0); |
| | | layoutControlItem8.Name = "layoutControlItem8"; |
| | | layoutControlItem8.Size = new Size(111, 26); |
| | | layoutControlItem8.Size = new Size(167, 516); |
| | | layoutControlItem8.TextSize = new Size(0, 0); |
| | | layoutControlItem8.TextVisible = false; |
| | | // |
| | | // popupPumpPartMenu |
| | | // |
| | | popupPumpPartMenu.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(BarBtnAddPumpPart) }); |
| | | popupPumpPartMenu.Manager = barManager1; |
| | | popupPumpPartMenu.Name = "popupPumpPartMenu"; |
| | | // |
| | | // BarBtnAddPumpPart |
| | | // |
| | | BarBtnAddPumpPart.Caption = "添加产品"; |
| | | BarBtnAddPumpPart.Id = 0; |
| | | BarBtnAddPumpPart.Name = "BarBtnAddPumpPart"; |
| | | // |
| | | // barManager1 |
| | | // |
| | |
| | | barManager1.DockControls.Add(barDockControlLeft); |
| | | barManager1.DockControls.Add(barDockControlRight); |
| | | barManager1.Form = this; |
| | | barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { BarBtnAddPumpPart }); |
| | | barManager1.MaxItemId = 1; |
| | | // |
| | | // barDockControlTop |
| | | // |
| | |
| | | Text = "编辑产品"; |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)treeListPart).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)propGroupChoiceViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)Root).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)r).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem5).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem6).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControAddPart).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)popupPumpPartMenu).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)barManager1).EndInit(); |
| | | ResumeLayout(false); |
| | | PerformLayout(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colPropName; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colValue; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; |
| | | private DevExpress.XtraTreeList.TreeList treeListPart; |
| | | private DevExpress.XtraEditors.SimpleButton BtnOk; |
| | | private DevExpress.XtraEditors.SimpleButton simpleButton1; |
| | | private DevExpress.XtraEditors.TextEdit TextEditProductName; |
| | | private DevExpress.XtraEditors.TextEdit TextEditProductCode; |
| | | private DevExpress.XtraEditors.TextEdit TextEditNo; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; |
| | | private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; |
| | | private DevExpress.XtraLayout.EmptySpaceItem r; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn treeListColumn1; |
| | | private BindingSource propGroupChoiceViewModelBindingSource; |
| | | private DevExpress.XtraBars.PopupMenu popupPumpPartMenu; |
| | | private DevExpress.XtraBars.BarButtonItem BarBtnAddPumpPart; |
| | | private DevExpress.XtraEditors.SimpleButton BtnAddPumpPart; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControAddPart; |
| | | private DevExpress.XtraBars.BarManager barManager1; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlTop; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlBottom; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlLeft; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlRight; |
| | | private DevExpress.XtraEditors.SimpleButton BtnAddPumpPart; |
| | | private Assets.PumpProductListBox pumpProductListBox1; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; |
| | | } |
| | | } |