Shuxia Ning
2024-11-09 d2f89d47afad3f3fe2f4266658b25f5baa101ea3
WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/04-scheme/01-add/AddXhsSchemeDlg.cs
@@ -8,22 +8,11 @@
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.ribbon.SetFormStyle();
            //this.flyoutPanel1.BorderStyle = BorderStyle.None;
            //this.flyoutPanel1.OwnerControl = this.sidePanel3dModel;
            //this.flyoutPanel1.Options.AnimationType = DevExpress.Utils.Win.PopupToolWindowAnimation.Fade;
            //this.flyoutPanel1.Options.AnchorType = DevExpress.Utils.Win.PopupToolWindowAnchor.Bottom;
            this.setSchemePumpListCtrl1.ShowFindPanel = false;
            this.setSchemeValveListCtrl1.ShowFindPanel = false;
            this.setSchemePipeListCtrl1.ShowFindPanel = false;
            this.ribbon.SetFormStyle();
            foreach (var page in this.tabPane1.Pages)
            {
                if (page.Controls[0] is IHydroParterList ctrl)
                if (page.Controls[0] is ISetSchemeParterList ctrl)
                {
                    ctrl.ShowFindPanel = false;
                    ctrl.HydroClickEvent += async (parter) =>
@@ -32,6 +21,11 @@
                        await  _bimfaceCtrl?.ZoomAndSelectComponent(_selectedParter.Code);
                   
                    };
                    ctrl.HydroRecordChangedEvent += (record) =>
                    {
                        _set_record_list.Add(record);
                        this.setSchemeParterRecordBindingSource.ResetBindings(false);
                    };
                    ctrl.HydroChangedEvent += (parterList) =>
                    {
                        
@@ -46,6 +40,7 @@
        private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息
                                                         
        private Yw.Model.HydroParterInfo _selectedParter = null; //选择构件
        private List<SetSchemeParterRecord> _set_record_list = null;
        /// <summary>
        /// 绑定数据
@@ -56,7 +51,7 @@
                HStation.Vmo.XhsProjectSiteVmo projectSite,
                Yw.Model.HydroModelInfo hydroInfo
            )
        {
        {
            if (project == null)
            {
                return;
@@ -64,6 +59,7 @@
            _project = project;
            _projectSite = projectSite;
            _hydroInfo = hydroInfo;
            _set_record_list = new List<SetSchemeParterRecord>();
            if (_projectSite == null)
            {
                _projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_project.ID);
@@ -78,6 +74,9 @@
            this.setSchemePumpListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemeValveListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemePipeListCtrl1.SetBindingData(_hydroInfo);
            this.setSchemeParterRecordBindingSource.DataSource = _set_record_list;
            this.setSchemeParterRecordBindingSource.ResetBindings(false);
            ShowBimfaceCtrl();
        }
@@ -128,16 +127,7 @@
        }
        #endregion
        //更新选择组件属性
        private void UpdateSelectedParterProperty()
        {
            if (_selectedParter == null)
            {
                return;
            }
        }
        private void barCek_CheckedChanged(object sender, ItemClickEventArgs e)
        {