duheng
2024-12-23 3c918c55e51c67bbd48e1780967b547ee71845c1
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/07-matching/02-pump/01-pumpsinglematching/SimulationPumpSingleMatchingDlg.cs
@@ -20,7 +20,6 @@
            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; }
        }
@@ -60,9 +59,9 @@
            }
            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)
@@ -116,10 +115,11 @@
                }
            }
            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)
@@ -129,6 +129,7 @@
            {
                //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;
@@ -158,24 +159,6 @@
            }
            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);*/
        }
    }
}