| | |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHasDb = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colStartCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colEndCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLinkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colRatedQ = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedN = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRatedHz = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCurrentHz = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colHasCurve = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCurveQH = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCurveQP = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCurveQE = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | colCalcuFlow = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuVelocity = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCalcuHeadLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)hydroPumpViewModelBindingSource).BeginInit(); |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colCode, colName, colModelType, colStartCode, colEndCode, colLinkStatus, colRatedP, colRatedQ, colRatedH, colRatedN, colCurveQH, colCurveQP, colCurveQE, colSpeedRatio, colSpeedRatioPattern, colPrice, colPricePattern, colCalcuFlow, colCalcuVelocity, colCalcuHeadLoss, colFlagsString, colDescription }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colCode, colName, colModelType, colHasDb, colStartCode, colEndCode, colLinkStatus, colRatedP, colRatedQ, colRatedH, colRatedN, colRatedHz, colCurrentHz, colHasCurve, colCurveQH, colCurveQP, colCurveQE, colSpeedRatio, colSpeedRatioPattern, colPrice, colPricePattern, colCalcuFlow, colCalcuVelocity, colCalcuHeadLoss, colFlagsString, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | |
| | | colModelType.VisibleIndex = 3; |
| | | colModelType.Width = 100; |
| | | // |
| | | // colFlagsString |
| | | // colHasDb |
| | | // |
| | | colFlagsString.FieldName = "FlagsString"; |
| | | colFlagsString.MaxWidth = 200; |
| | | colFlagsString.MinWidth = 100; |
| | | colFlagsString.Name = "colFlagsString"; |
| | | colFlagsString.Visible = true; |
| | | colFlagsString.VisibleIndex = 4; |
| | | colFlagsString.Width = 100; |
| | | colHasDb.FieldName = "HasDb"; |
| | | colHasDb.MaxWidth = 60; |
| | | colHasDb.MinWidth = 60; |
| | | colHasDb.Name = "colHasDb"; |
| | | colHasDb.Visible = true; |
| | | colHasDb.VisibleIndex = 4; |
| | | colHasDb.Width = 60; |
| | | // |
| | | // colStartCode |
| | | // |
| | |
| | | colRatedN.VisibleIndex = 11; |
| | | colRatedN.Width = 100; |
| | | // |
| | | // colRatedHz |
| | | // |
| | | colRatedHz.FieldName = "RatedHz"; |
| | | colRatedHz.MaxWidth = 100; |
| | | colRatedHz.MinWidth = 100; |
| | | colRatedHz.Name = "colRatedHz"; |
| | | colRatedHz.Visible = true; |
| | | colRatedHz.VisibleIndex = 12; |
| | | colRatedHz.Width = 100; |
| | | // |
| | | // colCurrentHz |
| | | // |
| | | colCurrentHz.FieldName = "CurrentHz"; |
| | | colCurrentHz.MaxWidth = 100; |
| | | colCurrentHz.MinWidth = 100; |
| | | colCurrentHz.Name = "colCurrentHz"; |
| | | colCurrentHz.Visible = true; |
| | | colCurrentHz.VisibleIndex = 13; |
| | | colCurrentHz.Width = 100; |
| | | // |
| | | // colHasCurve |
| | | // |
| | | colHasCurve.FieldName = "HasCurve"; |
| | | colHasCurve.MaxWidth = 60; |
| | | colHasCurve.MinWidth = 60; |
| | | colHasCurve.Name = "colHasCurve"; |
| | | colHasCurve.Visible = true; |
| | | colHasCurve.VisibleIndex = 14; |
| | | colHasCurve.Width = 60; |
| | | // |
| | | // colCurveQH |
| | | // |
| | | colCurveQH.FieldName = "CurveQH"; |
| | |
| | | colCurveQH.MinWidth = 100; |
| | | colCurveQH.Name = "colCurveQH"; |
| | | colCurveQH.Visible = true; |
| | | colCurveQH.VisibleIndex = 12; |
| | | colCurveQH.VisibleIndex = 15; |
| | | colCurveQH.Width = 100; |
| | | // |
| | | // colCurveQP |
| | |
| | | colCurveQP.MinWidth = 100; |
| | | colCurveQP.Name = "colCurveQP"; |
| | | colCurveQP.Visible = true; |
| | | colCurveQP.VisibleIndex = 13; |
| | | colCurveQP.VisibleIndex = 16; |
| | | colCurveQP.Width = 100; |
| | | // |
| | | // colCurveQE |
| | |
| | | colCurveQE.MinWidth = 100; |
| | | colCurveQE.Name = "colCurveQE"; |
| | | colCurveQE.Visible = true; |
| | | colCurveQE.VisibleIndex = 14; |
| | | colCurveQE.VisibleIndex = 17; |
| | | colCurveQE.Width = 100; |
| | | // |
| | | // colSpeedRatio |
| | |
| | | colSpeedRatio.MinWidth = 60; |
| | | colSpeedRatio.Name = "colSpeedRatio"; |
| | | colSpeedRatio.Visible = true; |
| | | colSpeedRatio.VisibleIndex = 15; |
| | | colSpeedRatio.VisibleIndex = 18; |
| | | colSpeedRatio.Width = 60; |
| | | // |
| | | // colSpeedRatioPattern |
| | |
| | | colSpeedRatioPattern.MinWidth = 100; |
| | | colSpeedRatioPattern.Name = "colSpeedRatioPattern"; |
| | | colSpeedRatioPattern.Visible = true; |
| | | colSpeedRatioPattern.VisibleIndex = 16; |
| | | colSpeedRatioPattern.VisibleIndex = 19; |
| | | colSpeedRatioPattern.Width = 100; |
| | | // |
| | | // colPrice |
| | |
| | | colPrice.MinWidth = 100; |
| | | colPrice.Name = "colPrice"; |
| | | colPrice.Visible = true; |
| | | colPrice.VisibleIndex = 17; |
| | | colPrice.VisibleIndex = 20; |
| | | colPrice.Width = 100; |
| | | // |
| | | // colPricePattern |
| | |
| | | colPricePattern.MinWidth = 100; |
| | | colPricePattern.Name = "colPricePattern"; |
| | | colPricePattern.Visible = true; |
| | | colPricePattern.VisibleIndex = 18; |
| | | colPricePattern.VisibleIndex = 21; |
| | | colPricePattern.Width = 100; |
| | | // |
| | | // colCalcuFlow |
| | |
| | | colCalcuFlow.MinWidth = 100; |
| | | colCalcuFlow.Name = "colCalcuFlow"; |
| | | colCalcuFlow.Visible = true; |
| | | colCalcuFlow.VisibleIndex = 19; |
| | | colCalcuFlow.VisibleIndex = 22; |
| | | colCalcuFlow.Width = 100; |
| | | // |
| | | // colCalcuVelocity |
| | |
| | | colCalcuVelocity.MinWidth = 100; |
| | | colCalcuVelocity.Name = "colCalcuVelocity"; |
| | | colCalcuVelocity.Visible = true; |
| | | colCalcuVelocity.VisibleIndex = 20; |
| | | colCalcuVelocity.VisibleIndex = 23; |
| | | colCalcuVelocity.Width = 100; |
| | | // |
| | | // colCalcuHeadLoss |
| | |
| | | colCalcuHeadLoss.MinWidth = 100; |
| | | colCalcuHeadLoss.Name = "colCalcuHeadLoss"; |
| | | colCalcuHeadLoss.Visible = true; |
| | | colCalcuHeadLoss.VisibleIndex = 21; |
| | | colCalcuHeadLoss.VisibleIndex = 24; |
| | | colCalcuHeadLoss.Width = 100; |
| | | // |
| | | // colFlagsString |
| | | // |
| | | colFlagsString.FieldName = "FlagsString"; |
| | | colFlagsString.MaxWidth = 200; |
| | | colFlagsString.MinWidth = 100; |
| | | colFlagsString.Name = "colFlagsString"; |
| | | colFlagsString.Visible = true; |
| | | colFlagsString.VisibleIndex = 25; |
| | | colFlagsString.Width = 100; |
| | | // |
| | | // colDescription |
| | | // |
| | |
| | | colDescription.MinWidth = 100; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 22; |
| | | colDescription.VisibleIndex = 26; |
| | | colDescription.Width = 100; |
| | | // |
| | | // HydroPumpListCtrl |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuFlow; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuVelocity; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCalcuHeadLoss; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colHasDb; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRatedHz; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCurrentHz; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colHasCurve; |
| | | } |
| | | } |