duheng
2024-09-27 32b2fee0421e7997672fe4a14fe5bf9a6de926c2
WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/XhsProjectSimulationCorePage.cs
@@ -20,7 +20,6 @@
            this.docPnlHydroParterList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
            this.docPnlUnMatchingList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
            this.docPnlMatchingList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden;
            this.xhsProjectSimulationMatchingListCtrl1.HydroClickEvent += xhsProjectSimulationHydroCheckFailedCtrl1_HydroClickEvent;
        }
        private HStation.Vmo.XhsProjectVmo _project = null;//项目
@@ -222,12 +221,29 @@
            var input = AssetsMatchingParasHelper.Create(_hydroInfo);
            this.xhsProjectSimulationMatchingListCtrl1.SetBindingData(input);
            this.xhsProjectSimulationMatchingListCtrl1.RelaodEvent += (output) =>
            {
                return AssetsMatchingParasHelper.Apply(_hydroInfo, output);
            };
            this.docPnlMatchingList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible;
            this.docPnlMatchingList.Height = 350;
        }
        //水力信息点击
        private async void xhsProjectSimulationMatchingListCtrl1_HydroClickEvent(string code)
        {
            if (_hydroInfo == null)
            {
                return;
            }
            var allParterList = _hydroInfo.GetAllParters();
            _parter = allParterList.Find(x => x.Code == code);
            var elementIds = new List<string>() { _parter.Code };
            await this.xhsProjectSimulationBimfaceCtrl1.ZoomAndSelectComponents(elementIds);
            ShowProperty();
            SetBimfaceLinkColor();
        }
        //应用匹配事件
        private bool xhsProjectSimulationMatchingListCtrl1_ApplyMatchingEvent(AssetsMatchingViewModel output)
        {
            return AssetsMatchingParasHelper.Apply(_hydroInfo, output);
        }
        #endregion
@@ -433,5 +449,7 @@
        #endregion
    }
}