| | |
| | | private void InitializeComponent() |
| | | { |
| | | components = new Container(); |
| | | ComponentResourceManager resources = new ComponentResourceManager(typeof(HydroTankListCtrl)); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | ComponentResourceManager resources = new ComponentResourceManager(typeof(HydroTankListCtrl)); |
| | | hydroTankViewModelBindingSource = new BindingSource(components); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | generalSearchAndSetCtrl1 = new GeneralSearchAndSetCtrl(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colSet = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); |
| | | colDbLocked = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHasDb = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPoolElev = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colInitLevel = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinLevel = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMaxLevel = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDN = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinVol = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCurve = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colOverFlow = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHasDb = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlags = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuPress = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuHead = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlags = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSet = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); |
| | | txtName = new DevExpress.XtraEditors.TextEdit(); |
| | | txtModelType = new DevExpress.XtraEditors.TextEdit(); |
| | | txtCode = new DevExpress.XtraEditors.TextEdit(); |
| | |
| | | // |
| | | // hydroTankViewModelBindingSource |
| | | // |
| | | hydroTankViewModelBindingSource.DataSource = typeof(HydroElbowViewModel); |
| | | hydroTankViewModelBindingSource.DataSource = typeof(HydroTankViewModel); |
| | | // |
| | | // layoutControl1 |
| | | // |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colName, colCode, colModelType, colPoolElev, colInitLevel, colMinLevel, colMaxLevel, colDN, colMinVol, colCurve, colOverFlow, colHasDb, colDescription, colFlags, colCalcuPress, colCalcuHead, colCalcuDemand, colSet }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colName, colCode, colModelType, colPoolElev, colInitLevel, colMinLevel, colMaxLevel, colDN, colMinVol, colOverFlow, colHasDb, colDescription, colFlags, colCalcuPress, colCalcuHead, colCalcuDemand, colSet }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.RowCellClick += gridView1_RowCellClick; |
| | | // |
| | | // colSet |
| | | // |
| | | colSet.Caption = "设置"; |
| | | colSet.ColumnEdit = repositoryItemButtonEdit1; |
| | | colSet.Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Right; |
| | | colSet.MaxWidth = 60; |
| | | colSet.MinWidth = 60; |
| | | colSet.Name = "colSet"; |
| | | colSet.Visible = true; |
| | | colSet.VisibleIndex = 18; |
| | | colSet.Width = 60; |
| | | // |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); |
| | | editorButtonImageOptions1.SvgImageSize = new Size(20, 20); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "设置", "set", null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | // |
| | | // colDbLocked |
| | | // |
| | |
| | | colDbLocked.VisibleIndex = 0; |
| | | colDbLocked.Width = 40; |
| | | // |
| | | // colCode |
| | | // |
| | | colCode.FieldName = "Code"; |
| | | colCode.MaxWidth = 150; |
| | | colCode.MinWidth = 100; |
| | | colCode.Name = "colCode"; |
| | | colCode.Visible = true; |
| | | colCode.VisibleIndex = 2; |
| | | colCode.Width = 100; |
| | | // |
| | | // colName |
| | | // |
| | | colName.FieldName = "Name"; |
| | |
| | | colName.VisibleIndex = 1; |
| | | colName.Width = 100; |
| | | // |
| | | // colCode |
| | | // |
| | | colCode.FieldName = "Code"; |
| | | colCode.MaxWidth = 150; |
| | | colCode.MinWidth = 100; |
| | | colCode.Name = "colCode"; |
| | | colCode.Visible = true; |
| | | colCode.VisibleIndex = 2; |
| | | colCode.Width = 100; |
| | | // |
| | | // colModelType |
| | | // |
| | | colModelType.FieldName = "ModelType"; |
| | |
| | | colModelType.Visible = true; |
| | | colModelType.VisibleIndex = 3; |
| | | colModelType.Width = 100; |
| | | // |
| | | // colHasDb |
| | | // |
| | | colHasDb.FieldName = "HasDb"; |
| | | colHasDb.MaxWidth = 40; |
| | | colHasDb.MinWidth = 40; |
| | | colHasDb.Name = "colHasDb"; |
| | | colHasDb.Visible = true; |
| | | colHasDb.VisibleIndex = 12; |
| | | colHasDb.Width = 40; |
| | | // |
| | | // colPoolElev |
| | | // |
| | |
| | | colMinVol.VisibleIndex = 9; |
| | | colMinVol.Width = 100; |
| | | // |
| | | // colCurve |
| | | // |
| | | colCurve.FieldName = "Curve"; |
| | | colCurve.MaxWidth = 100; |
| | | colCurve.MinWidth = 100; |
| | | colCurve.Name = "colCurve"; |
| | | colCurve.Visible = true; |
| | | colCurve.VisibleIndex = 10; |
| | | colCurve.Width = 100; |
| | | // |
| | | // colOverFlow |
| | | // |
| | | colOverFlow.FieldName = "OverFlow"; |
| | |
| | | colOverFlow.MinWidth = 60; |
| | | colOverFlow.Name = "colOverFlow"; |
| | | colOverFlow.Visible = true; |
| | | colOverFlow.VisibleIndex = 11; |
| | | colOverFlow.VisibleIndex = 10; |
| | | colOverFlow.Width = 60; |
| | | // |
| | | // colHasDb |
| | | // |
| | | colHasDb.FieldName = "HasDb"; |
| | | colHasDb.MaxWidth = 40; |
| | | colHasDb.MinWidth = 40; |
| | | colHasDb.Name = "colHasDb"; |
| | | colHasDb.Visible = true; |
| | | colHasDb.VisibleIndex = 11; |
| | | colHasDb.Width = 40; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 100; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 13; |
| | | colDescription.Width = 100; |
| | | // |
| | | // colFlags |
| | | // |
| | | colFlags.FieldName = "Flags"; |
| | | colFlags.MaxWidth = 200; |
| | | colFlags.MinWidth = 100; |
| | | colFlags.Name = "colFlags"; |
| | | colFlags.Visible = true; |
| | | colFlags.VisibleIndex = 12; |
| | | colFlags.Width = 100; |
| | | // |
| | | // colCalcuPress |
| | | // |
| | |
| | | colCalcuPress.MinWidth = 100; |
| | | colCalcuPress.Name = "colCalcuPress"; |
| | | colCalcuPress.Visible = true; |
| | | colCalcuPress.VisibleIndex = 15; |
| | | colCalcuPress.VisibleIndex = 14; |
| | | colCalcuPress.Width = 100; |
| | | // |
| | | // colCalcuHead |
| | |
| | | colCalcuHead.MinWidth = 100; |
| | | colCalcuHead.Name = "colCalcuHead"; |
| | | colCalcuHead.Visible = true; |
| | | colCalcuHead.VisibleIndex = 16; |
| | | colCalcuHead.VisibleIndex = 15; |
| | | colCalcuHead.Width = 100; |
| | | // |
| | | // colCalcuDemand |
| | |
| | | colCalcuDemand.MinWidth = 110; |
| | | colCalcuDemand.Name = "colCalcuDemand"; |
| | | colCalcuDemand.Visible = true; |
| | | colCalcuDemand.VisibleIndex = 17; |
| | | colCalcuDemand.VisibleIndex = 16; |
| | | colCalcuDemand.Width = 110; |
| | | // |
| | | // colFlags |
| | | // colSet |
| | | // |
| | | colFlags.FieldName = "Flags"; |
| | | colFlags.MaxWidth = 200; |
| | | colFlags.MinWidth = 100; |
| | | colFlags.Name = "colFlags"; |
| | | colFlags.Visible = true; |
| | | colFlags.VisibleIndex = 13; |
| | | colFlags.Width = 100; |
| | | colSet.Caption = "设置"; |
| | | colSet.ColumnEdit = repositoryItemButtonEdit1; |
| | | colSet.Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Right; |
| | | colSet.MaxWidth = 60; |
| | | colSet.MinWidth = 60; |
| | | colSet.Name = "colSet"; |
| | | colSet.Visible = true; |
| | | colSet.VisibleIndex = 17; |
| | | colSet.Width = 60; |
| | | // |
| | | // colDescription |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 100; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 14; |
| | | colDescription.Width = 100; |
| | | repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions1.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("editorButtonImageOptions1.SvgImage"); |
| | | editorButtonImageOptions1.SvgImageSize = new Size(20, 20); |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "设置", "set", null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | // |
| | | // txtName |
| | | // |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMaxLevel; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDN; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMinVol; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCurve; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colOverFlow; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuPress; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuHead; |