| | |
| | | using DevExpress.XtraBars; |
| | | using HStation.WinFrmUI.PhartRelation; |
| | | using System.Data; |
| | | |
| | | namespace HStation.WinFrmUI |
| | |
| | | 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) |
| | |
| | | _pump_matching_vm.MatchingRatedN = pump_mian.RatedSpeed; |
| | | _pump_matching_vm.MatchingRatedP = pump_mian.RatedPower; |
| | | _pump_matching_vm.MatchingRatedQ = pump_mian.RatedFlow; |
| | | |
| | | this.ReloadDataEvent?.Invoke(_pump_matching_vm); |
| | | this.Close(); |
| | | } |
| | |
| | | //this.gridControlCurve.DataSource = _phart_vm_list; |
| | | //this.gridViewCurve.RefreshData(); |
| | | this.phartViewModelBindingSource.ResetBindings(false); |
| | | this.gridViewCurve.FocusInvalidRow(); |
| | | //this.gridViewCurve.FocusInvalidRow(); |
| | | gridViewCurve_FocusedRowChanged(null, null); |
| | | } |
| | | |
| | | private async void gridViewCurve_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) |
| | |
| | | } |
| | | 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);*/ |
| | | } |
| | | } |
| | | } |