| | |
| | | public string OtherName { get; set; } |
| | | public int Importance { get; set; } |
| | | public int SortCode { get; set; } |
| | | // public PhartDiagramExGraphListVmo Diagram { get; set; } |
| | | |
| | | public long DiagramID { get; set; } |
| | | } |
| | |
| | | } |
| | | |
| | | this.gridControlPumpMain.DataSource = _pump_mian_vm_list; |
| | | this.gridControlPumpMain.RefreshDataSource(); |
| | | this.gridViewPumpMain.BestFitColumns(); |
| | | this.gridViewPumpMain.FocusedRowHandle = sel_index; |
| | | // this.gridControlPumpMain.RefreshDataSource(); |
| | | } |
| | | |
| | | private void barBtnOK_ItemClick(object sender, ItemClickEventArgs e) |
| | |
| | | } |
| | | } |
| | | this.phartViewModelBindingSource.DataSource = _phart_vm_list; |
| | | this.gridViewCurve.FocusInvalidRow(); |
| | | //this.gridControlCurve.DataSource = _phart_vm_list; |
| | | //this.gridViewCurve.RefreshData(); |
| | | this.phartViewModelBindingSource.ResetBindings(false); |
| | | //this.gridViewCurve.FocusInvalidRow(); |
| | | gridViewCurve_FocusedRowChanged(null, null); |
| | | } |
| | | |
| | | private async void gridViewCurve_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) |
| | |
| | | { |
| | | //TipFormHelper.ShowWarn("无曲线"); |
| | | //this.pumpChartViewCtrl1.SetBindingData(null, 0); |
| | | this.pumpChartViewCtrl1.ClearBindingData(); |
| | | return; |
| | | } |
| | | var list = Task.Run(async () => await new BLL.PhartDiagramRelation().GetExByObjectTypeAndObjectID(HStation.Assets.DataType.PumpMain, _pumpVmo.ID)).Result; |
| | |
| | | } |
| | | var vmo = await BLLFactory<Yw.BLL.PhartDiagramExtensions>.Instance.GetByID(phart.DiagramID); |
| | | this.pumpChartViewCtrl1.SetBindingData(vmo, _pumpVmo.RatedSpeed); |
| | | /* var diagram = phart.Diagram; |
| | | if (!OutPtList |
| | | (diagram, |
| | | out List<Yw.Geometry.Point2d> qh_pt_list, |
| | | out List<Yw.Geometry.Point2d> qe_pt_list, |
| | | out List<Yw.Geometry.Point2d> qp_pt_list |
| | | )) |
| | | { |
| | | this.xtrPerform2dChart1.InitialChartData(); |
| | | return; |
| | | } |
| | | |
| | | var cubic_spline_qh = new Yw.Geometry.CubicSpline2d(qh_pt_list); |
| | | var cubic_spline_qe = new Yw.Geometry.CubicSpline2d(qe_pt_list); |
| | | var cubic_spline_qp = new Yw.Geometry.CubicSpline2d(qp_pt_list); |
| | | var disp_paras = diagram.DispParas; |
| | | var is_calc_disp_paras = string.IsNullOrWhiteSpace(disp_paras); |
| | | this.xtrPerform2dChart1.SetBindingData(cubic_spline_qh, cubic_spline_qe, cubic_spline_qp, disp_paras, is_calc_disp_paras);*/ |
| | | } |
| | | } |
| | | } |