| | |
| | | { |
| | | 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) => |
| | |
| | | await _bimfaceCtrl?.ZoomAndSelectComponent(_selectedParter.Code); |
| | | |
| | | }; |
| | | ctrl.HydroRecordChangedEvent += (record) => |
| | | { |
| | | _set_record_list.Add(record); |
| | | this.setSchemeParterRecordBindingSource.ResetBindings(false); |
| | | }; |
| | | ctrl.HydroChangedEvent += (parterList) => |
| | | { |
| | | |
| | |
| | | private Yw.Model.HydroModelInfo _hydroInfo = null;//水力信息 |
| | | |
| | | private Yw.Model.HydroParterInfo _selectedParter = null; //选择构件 |
| | | private List<SetSchemeParterRecord> _set_record_list = null; |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | |
| | | HStation.Vmo.XhsProjectSiteVmo projectSite, |
| | | Yw.Model.HydroModelInfo hydroInfo |
| | | ) |
| | | { |
| | | { |
| | | if (project == null) |
| | | { |
| | | return; |
| | |
| | | _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); |
| | |
| | | this.setSchemePumpListCtrl1.SetBindingData(_hydroInfo); |
| | | this.setSchemeValveListCtrl1.SetBindingData(_hydroInfo); |
| | | this.setSchemePipeListCtrl1.SetBindingData(_hydroInfo); |
| | | |
| | | this.setSchemeParterRecordBindingSource.DataSource = _set_record_list; |
| | | this.setSchemeParterRecordBindingSource.ResetBindings(false); |
| | | |
| | | ShowBimfaceCtrl(); |
| | | } |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | //更新选择组件属性 |
| | | private void UpdateSelectedParterProperty() |
| | | { |
| | | if (_selectedParter == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | private void barCek_CheckedChanged(object sender, ItemClickEventArgs e) |
| | | { |