| | |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | ListBoxPart = new DevExpress.XtraEditors.ListBoxControl(); |
| | | 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(); |
| | | layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | popupPumpPartMenu = new DevExpress.XtraBars.PopupMenu(components); |
| | | BarBtnAddPumpPart = new DevExpress.XtraBars.BarButtonItem(); |
| | | barBtnDeletePart = 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)ListBoxPart).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)layoutControlItem5).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem6).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)popupPumpPartMenu).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)barManager1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // layoutControl1 |
| | | // |
| | | layoutControl1.Controls.Add(ListBoxPart); |
| | | 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"; |
| | | // |
| | | // ListBoxPart |
| | | // |
| | | ListBoxPart.Appearance.Options.UseTextOptions = true; |
| | | ListBoxPart.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | ListBoxPart.AppearanceDisabled.Options.UseTextOptions = true; |
| | | ListBoxPart.AppearanceDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | ListBoxPart.Location = new Point(12, 12); |
| | | ListBoxPart.Name = "ListBoxPart"; |
| | | ListBoxPart.Size = new Size(187, 512); |
| | | ListBoxPart.StyleController = layoutControl1; |
| | | ListBoxPart.TabIndex = 8; |
| | | ListBoxPart.SelectedIndexChanged += ListBoxPart_SelectedIndexChanged; |
| | | ListBoxPart.MouseUp += ListBoxPart_MouseUp; |
| | | // |
| | | // BtnAddPumpPart |
| | | // |
| | | BtnAddPumpPart.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; |
| | | BtnAddPumpPart.Appearance.Options.UseBackColor = true; |
| | | BtnAddPumpPart.Location = new Point(652, 502); |
| | | BtnAddPumpPart.Location = new Point(722, 502); |
| | | BtnAddPumpPart.Name = "BtnAddPumpPart"; |
| | | BtnAddPumpPart.Size = new Size(107, 22); |
| | | BtnAddPumpPart.Size = new Size(94, 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(820, 502); |
| | | BtnOk.Name = "BtnOk"; |
| | | BtnOk.Size = new Size(101, 22); |
| | | BtnOk.Size = new Size(86, 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(910, 502); |
| | | simpleButton1.Name = "simpleButton1"; |
| | | simpleButton1.Size = new Size(121, 22); |
| | | simpleButton1.Size = new Size(79, 22); |
| | | simpleButton1.StyleController = layoutControl1; |
| | | simpleButton1.TabIndex = 5; |
| | | simpleButton1.Text = "取消"; |
| | |
| | | // gridControl1 |
| | | // |
| | | gridControl1.DataSource = propGroupChoiceViewModelBindingSource; |
| | | gridControl1.Location = new Point(233, 84); |
| | | gridControl1.Location = new Point(203, 84); |
| | | gridControl1.MainView = gridView1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.Size = new Size(756, 414); |
| | | gridControl1.Size = new Size(786, 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(267, 12); |
| | | TextEditProductName.Name = "TextEditProductName"; |
| | | TextEditProductName.Size = new Size(692, 20); |
| | | TextEditProductName.Size = new Size(722, 20); |
| | | TextEditProductName.StyleController = layoutControl1; |
| | | TextEditProductName.TabIndex = 2; |
| | | // |
| | | // TextEditProductCode |
| | | // |
| | | TextEditProductCode.Location = new Point(297, 36); |
| | | TextEditProductCode.Location = new Point(267, 36); |
| | | TextEditProductCode.Name = "TextEditProductCode"; |
| | | TextEditProductCode.Size = new Size(692, 20); |
| | | TextEditProductCode.Size = new Size(722, 20); |
| | | TextEditProductCode.StyleController = layoutControl1; |
| | | TextEditProductCode.TabIndex = 6; |
| | | // |
| | | // TextEditNo |
| | | // |
| | | TextEditNo.Location = new Point(297, 60); |
| | | TextEditNo.Location = new Point(267, 60); |
| | | TextEditNo.Name = "TextEditNo"; |
| | | TextEditNo.Size = new Size(692, 20); |
| | | TextEditNo.Size = new Size(722, 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, emptySpaceItem1, layoutControlItem5, layoutControlItem6, layoutControlItem7, layoutControlItem2, layoutControlItem8, layoutControlItem4 }); |
| | | 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(191, 72); |
| | | layoutControlItem1.Name = "layoutControlItem1"; |
| | | layoutControlItem1.Size = new Size(760, 418); |
| | | layoutControlItem1.Size = new Size(790, 418); |
| | | layoutControlItem1.TextSize = new Size(0, 0); |
| | | layoutControlItem1.TextVisible = false; |
| | | // |
| | | // layoutControlItem3 |
| | | // |
| | | layoutControlItem3.Control = simpleButton1; |
| | | layoutControlItem3.Location = new Point(856, 490); |
| | | layoutControlItem3.Location = new Point(898, 490); |
| | | layoutControlItem3.Name = "layoutControlItem3"; |
| | | layoutControlItem3.Size = new Size(125, 26); |
| | | layoutControlItem3.Size = new Size(83, 26); |
| | | layoutControlItem3.TextSize = new Size(0, 0); |
| | | layoutControlItem3.TextVisible = false; |
| | | // |
| | | // layoutControlItem4 |
| | | // |
| | | 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.Location = new Point(191, 490); |
| | | emptySpaceItem1.Name = "emptySpaceItem1"; |
| | | emptySpaceItem1.Size = new Size(640, 26); |
| | | emptySpaceItem1.Size = new Size(519, 26); |
| | | emptySpaceItem1.TextSize = new Size(0, 0); |
| | | // |
| | | // layoutControlItem5 |
| | | // |
| | | layoutControlItem5.Control = TextEditProductName; |
| | | layoutControlItem5.Location = new Point(221, 0); |
| | | layoutControlItem5.Location = new Point(191, 0); |
| | | layoutControlItem5.Name = "layoutControlItem5"; |
| | | layoutControlItem5.Size = new Size(760, 24); |
| | | layoutControlItem5.Size = new Size(790, 24); |
| | | layoutControlItem5.Text = "产品名称:"; |
| | | layoutControlItem5.TextSize = new Size(52, 14); |
| | | // |
| | | // layoutControlItem6 |
| | | // |
| | | layoutControlItem6.Control = TextEditProductCode; |
| | | layoutControlItem6.Location = new Point(221, 24); |
| | | layoutControlItem6.Location = new Point(191, 24); |
| | | layoutControlItem6.Name = "layoutControlItem6"; |
| | | layoutControlItem6.Size = new Size(760, 24); |
| | | layoutControlItem6.Size = new Size(790, 24); |
| | | layoutControlItem6.Text = "产品图号:"; |
| | | layoutControlItem6.TextSize = new Size(52, 14); |
| | | // |
| | | // layoutControlItem7 |
| | | // |
| | | layoutControlItem7.Control = TextEditNo; |
| | | layoutControlItem7.Location = new Point(221, 48); |
| | | layoutControlItem7.Location = new Point(191, 48); |
| | | layoutControlItem7.Name = "layoutControlItem7"; |
| | | layoutControlItem7.Size = new Size(760, 24); |
| | | layoutControlItem7.Size = new Size(790, 24); |
| | | layoutControlItem7.Text = "产品编号:"; |
| | | layoutControlItem7.TextSize = new Size(52, 14); |
| | | // |
| | | // layoutControlItem2 |
| | | // |
| | | layoutControlItem2.Control = BtnOk; |
| | | layoutControlItem2.Location = new Point(751, 490); |
| | | layoutControlItem2.Location = new Point(808, 490); |
| | | layoutControlItem2.Name = "layoutControlItem2"; |
| | | layoutControlItem2.Size = new Size(105, 26); |
| | | layoutControlItem2.Size = new Size(90, 26); |
| | | layoutControlItem2.TextSize = new Size(0, 0); |
| | | layoutControlItem2.TextVisible = false; |
| | | // |
| | | // layoutControlItem8 |
| | | // |
| | | layoutControlItem8.Control = BtnAddPumpPart; |
| | | layoutControlItem8.Location = new Point(640, 490); |
| | | layoutControlItem8.Location = new Point(710, 490); |
| | | layoutControlItem8.Name = "layoutControlItem8"; |
| | | layoutControlItem8.Size = new Size(111, 26); |
| | | layoutControlItem8.Size = new Size(98, 26); |
| | | layoutControlItem8.TextSize = new Size(0, 0); |
| | | layoutControlItem8.TextVisible = false; |
| | | // |
| | | // layoutControlItem4 |
| | | // |
| | | layoutControlItem4.Control = ListBoxPart; |
| | | layoutControlItem4.Location = new Point(0, 0); |
| | | layoutControlItem4.Name = "layoutControlItem4"; |
| | | layoutControlItem4.Size = new Size(191, 516); |
| | | layoutControlItem4.TextSize = new Size(0, 0); |
| | | layoutControlItem4.TextVisible = false; |
| | | // |
| | | // popupPumpPartMenu |
| | | // |
| | | popupPumpPartMenu.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(BarBtnAddPumpPart) }); |
| | | popupPumpPartMenu.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(BarBtnAddPumpPart), new DevExpress.XtraBars.LinkPersistInfo(barBtnDeletePart) }); |
| | | popupPumpPartMenu.Manager = barManager1; |
| | | popupPumpPartMenu.Name = "popupPumpPartMenu"; |
| | | // |
| | |
| | | BarBtnAddPumpPart.Caption = "添加产品"; |
| | | BarBtnAddPumpPart.Id = 0; |
| | | BarBtnAddPumpPart.Name = "BarBtnAddPumpPart"; |
| | | BarBtnAddPumpPart.ItemClick += BarBtnAddPumpPart_ItemClick; |
| | | // |
| | | // barBtnDeletePart |
| | | // |
| | | barBtnDeletePart.Caption = "删除产品"; |
| | | barBtnDeletePart.Id = 1; |
| | | barBtnDeletePart.Name = "barBtnDeletePart"; |
| | | barBtnDeletePart.ItemClick += BarBtnDeletePart_ItemClick; |
| | | // |
| | | // barManager1 |
| | | // |
| | |
| | | barManager1.DockControls.Add(barDockControlLeft); |
| | | barManager1.DockControls.Add(barDockControlRight); |
| | | barManager1.Form = this; |
| | | barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { BarBtnAddPumpPart }); |
| | | barManager1.MaxItemId = 1; |
| | | barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { BarBtnAddPumpPart, barBtnDeletePart }); |
| | | barManager1.MaxItemId = 2; |
| | | // |
| | | // barDockControlTop |
| | | // |
| | |
| | | Text = "编辑产品"; |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)treeListPart).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)ListBoxPart).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)layoutControlItem5).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem6).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem7).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem8).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).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.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.XtraBars.BarDockControl barDockControlRight; |
| | | private DevExpress.XtraEditors.SimpleButton BtnAddPumpPart; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; |
| | | private DevExpress.XtraEditors.ListBoxControl ListBoxPart; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; |
| | | private DevExpress.XtraBars.BarButtonItem barBtnDeletePart; |
| | | } |
| | | } |