| | |
| | | _hydroInfo = await BLLFactory<Yw.BLL.HydroModelInfo>.Instance.GetByID(hydroRelation.ModelID); |
| | | } |
| | | this.xhsProjectSimulationQ3dCtrl1.SetBindingData(_hydroInfo); |
| | | //this.xhsProjectSimulationL3dCtrl1.SetBindingData(_hydroInfo); |
| | | this.xhsProjectSimulationL3dCtrl1.SetBindingData(_hydroInfo); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | if (_fastShowHideCodeList == null) |
| | | { |
| | | _fastShowHideCodeList = _hydroInfo.Waterboxs.Select(x => x.Code).ToList(); |
| | | _fastShowHideCodeList = _hydroInfo.Decorators.Select(x => x.Code).ToList(); |
| | | await this.xhsProjectSimulationBimfaceCtrl1.HideComponents(_fastShowHideCodeList); |
| | | } |
| | | else |
| | |
| | | TipFormHelper.ShowSucceed("导出成功"); |
| | | } |
| | | |
| | | //未匹配列表 |
| | | private void barBtnUnMatchingList_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_hydroInfo == null) |
| | | { |
| | | return; |
| | | } |
| | | this.docPnlHydroCheck.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | this.docPnlHydroCalcu.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | this.docPnlHydroParterList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | this.docPnlUnMatchingList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | |
| | | this.xhsProjectSimulationUnMatchingListCtrl1.SetBindingData(_hydroInfo); |
| | | this.docPnlUnMatchingList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible; |
| | | this.docPnlUnMatchingList.Height = 350; |
| | | } |
| | | |
| | | //bimface 构件点击 |
| | | private void xhsProjectSimulationBimfaceCtrl1_ClickParterEvent(string objectId) |
| | |
| | | Dbid = x.DbId, |
| | | DbLocked = x.DbLocked, |
| | | ModelType = x.ModelType, |
| | | // Caliber = x.Caliber, |
| | | Caliber = x.Caliber, |
| | | Material = x.Material |
| | | }).ToList(); |
| | | input.ThreeLinkMatchingModels = _hydroInfo.Threelinks?.Select(x => new ThreeLinkMatchingViewModel() |
| | |
| | | DbId = x.DbId, |
| | | DbLocked = x.DbLocked, |
| | | ModelType = x.ModelType, |
| | | //Caliber = x.Caliber, |
| | | Caliber = x.Caliber, |
| | | Material = x.Material |
| | | }).ToList(); |
| | | input.FourLinkMatchingModels = _hydroInfo.Fourlinks?.Select(x => new FourLinkMatchingViewModel() |
| | |
| | | Dbid = x.DbId, |
| | | DbLocked = x.DbLocked, |
| | | ModelType = x.ModelType, |
| | | // Caliber = x.Caliber, |
| | | Caliber = x.Caliber, |
| | | Material = x.Material |
| | | }).ToList(); |
| | | input.PipeLineMatchingModels = _hydroInfo.Pipes?.Select(x => new PipeLineMatchingViewModel() |
| | |
| | | }; |
| | | } |
| | | |
| | | private void BtnPerformChart_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var dlg = new PerformChart(); |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | | //水力校验点击 |
| | | private async void xhsProjectSimulationHydroCheckFailedCtrl1_HydroClickEvent(string obj) |
| | | { |
| | |
| | | ShowProperty(); |
| | | } |
| | | |
| | | #region 未匹配列表 |
| | | |
| | | //未匹配列表 |
| | | private void barBtnUnMatchingList_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_hydroInfo == null) |
| | | { |
| | | return; |
| | | } |
| | | this.docPnlHydroCheck.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | this.docPnlHydroCalcu.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | 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.xhsProjectSimulationUnMatchingListCtrl1.SetBindingData(_hydroInfo); |
| | | this.docPnlUnMatchingList.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible; |
| | | this.docPnlUnMatchingList.Height = 350; |
| | | } |
| | | |
| | | //未匹配列表点击事件 |
| | | private async void xhsProjectSimulationUnMatchingListCtrl1_HydroClickEvent(Yw.Model.HydroParterInfo parter) |
| | | { |
| | | var allParterList = _hydroInfo.GetAllParters(); |
| | | _parter = allParterList.Find(x => x.ID == parter.ID); |
| | | await this.xhsProjectSimulationBimfaceCtrl1.SetSelectedComponents(new List<string>() { _parter.Code }); |
| | | var elementIds = new List<string>() { _parter.Code }; |
| | | await this.xhsProjectSimulationBimfaceCtrl1.ZoomAndSelectComponents(elementIds); |
| | | ShowProperty(); |
| | | } |
| | | |
| | |
| | | private async void xhsProjectSimulationUnMatchingListCtrl1_ViewModelEvent(List<Yw.Model.HydroParterInfo> parters) |
| | | { |
| | | var codes = parters?.Select(x => x.Code).Distinct().ToList(); |
| | | await this.xhsProjectSimulationBimfaceCtrl1.AddSelectedComponents(codes); |
| | | await this.xhsProjectSimulationBimfaceCtrl1.ZoomAndSelectComponents(codes); |
| | | _parter = null; |
| | | ShowProperty(); |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | } |