duheng
2024-11-06 bc230c03cb961e8d5fb40131806fe795ecfbfa73
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/01-matching/03-valve/01-valvesinglematching/ValveSingleMatchingForm.cs
@@ -96,11 +96,11 @@
                    }
                }
            }
            if (_pumpMatchingViewModel.MatchingChartDbId != null)
            if (_pumpMatchingViewModel.MatchingCurveDbId != null)
            {
                for (int i = 0; i < _allPhartList.Count; i++)
                {
                    if (_allBindingList[i].ID.ToString() == _pumpMatchingViewModel.MatchingChartDbId)
                    if (_allBindingList[i].ID.ToString() == _pumpMatchingViewModel.MatchingCurveDbId)
                    {
                        gridView1.FocusedRowHandle = i;
                    }
@@ -120,7 +120,7 @@
                    var vmo = await _bll_ex.Value.GetByID(vm.ID);
                    if (vmo != null)
                    {
                        _pumpMatchingViewModel.MatchingChartDbId = vm.ID.ToString();
                        _pumpMatchingViewModel.MatchingCurveDbId = vm.ID.ToString();
                        var graph_ql = vmo.Diagram.GraphList.Find(x => x.GraphType == HStation.PhartRelation.eGraphType.ValveQL);
                        if (graph_ql != null)
                        {