lixiaojun
2024-09-27 ddea52cb5c957705b1ed4e004de65e1a3f5ad129
WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/06-simulation/01-matching/00-core/XhsProjectSimulationMatchingListCtrl.cs
@@ -15,12 +15,12 @@
        private void RowClickEvent(string code)
        {
            FormRowClickEvent.Invoke(code);
            HydroClickEvent.Invoke(code);
        }
        public event Action<string> FormRowClickEvent = null;
        public event Action<string> HydroClickEvent;
        public event Func<AssetsMatchingViewModel, bool> RelaodEvent = null;
        public event Func<AssetsMatchingViewModel, bool> ApplyMatchingEvent;
        private BLL.PumpMain _pumpMain = null;
@@ -35,7 +35,7 @@
        public async void SetBindingData(AssetsMatchingViewModel inputViewModel)
        {
            _assetsAutoMatching = inputViewModel;
            this.elbowsMatchingCtrl1.SetBindingData(inputViewModel.ElbowsMatchingList);
            this.elbowsMatchingCtrl1.SetBindingData(inputViewModel.ElbowMatchingList);
            this.pipeLineMatchingCtrl1.SetBindingData(inputViewModel.PipeMatchingList);
            this.pumpMatchingCtrl1.SetBindingData(inputViewModel.PumpMatchingList);
            this.threeLinkMatchingCtrl1.SetBindingData(inputViewModel.ThreelinkMatchingList);
@@ -71,12 +71,12 @@
            //阀门匹配
            var valveMatching = this.valveMatchingCtrl1.SetMatching(input.ValveMatchingList, allValve);
            //弯头匹配
            var elbowsMatching = this.elbowsMatchingCtrl1.SetMatching(input.ElbowsMatchingList, allAdapting);
            var elbowsMatching = this.elbowsMatchingCtrl1.SetMatching(input.ElbowMatchingList, allAdapting);
            assetsAutoMatching.PumpMatchingList = pumpMatching;
            assetsAutoMatching.ThreelinkMatchingList = threeLinkMatching;
            assetsAutoMatching.FourlinkMatchingList = fourLinkMatching;
            assetsAutoMatching.ElbowsMatchingList = elbowsMatching;
            assetsAutoMatching.ElbowMatchingList = elbowsMatching;
            assetsAutoMatching.PipeMatchingList = pipeLineMatching;
            assetsAutoMatching.ValveMatchingList = valveMatching;
            return assetsAutoMatching;
@@ -85,7 +85,7 @@
        //确定
        private void btnComplete_Click(object sender, EventArgs e)
        {
            if (RelaodEvent.Invoke(_assetsAutoMatching))
            if (ApplyMatchingEvent.Invoke(_assetsAutoMatching))
            {
                TipFormHelper.ShowSucceed("修改成功!");
            }