| | |
| | | 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.FormRowClickEvent += xhsProjectSimulationHydroCheckFailedCtrl1_HydroClickEvent; |
| | | } |
| | | |
| | | private HStation.Vmo.XhsProjectVmo _project = null;//项目 |
| | |
| | | await this.xhsProjectSimulationBimfaceCtrl1.SetBindingData(_project, _projectSite, () => _hydroInfo); |
| | | this.xhsProjectSimulationQ3dCtrl1.SetBindingData(_hydroInfo); |
| | | this.xhsProjectSimulationL3dCtrl1.SetBindingData(_hydroInfo); |
| | | } |
| | | |
| | | //属性面板获取水力信息事件 |
| | | private Yw.Model.HydroModelInfo xhsProjectSimulationPropertyCtrl1_GetHydroInfoEvent() |
| | | { |
| | | return _hydroInfo; |
| | | this.xhsProjectSimulationPropertyCtrl1.SetBindingData(() => _hydroInfo); |
| | | } |
| | | |
| | | //水力计算 |
| | |
| | | |
| | | #endregion Bimface |
| | | |
| | | #region 属性面板 |
| | | |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region 自动匹配 |
| | | |
| | | //自动匹配 |
| | | private void barBtnMatching_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | private void barBtnMatchingList_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | if (_hydroInfo == null) |
| | | { |
| | |
| | | |
| | | 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; |
| | | } |
| | | |
| | | #endregion 自动匹配 |
| | | //水力信息点击 |
| | | 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 |
| | | |
| | | #region 未匹配列表 |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | #endregion 一键显隐 |
| | | #endregion |
| | | |
| | | #region 水力校验 |
| | | |
| | |
| | | ShowProperty(); |
| | | } |
| | | |
| | | #endregion 水力校验 |
| | | #endregion |
| | | |
| | | #region 保存水力信息 |
| | | |
| | |
| | | TipFormHelper.ShowSucceed("保存成功!"); |
| | | } |
| | | |
| | | #endregion 保存水力信息 |
| | | #endregion |
| | | |
| | | #region 业务方法 |
| | | |
| | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |