| | |
| | | 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;//项目 |
| | |
| | | #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; |
| | | } |
| | | |
| | | //水力信息点击 |
| | | 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 |
| | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |