| | |
| | | InitializeComponent(); |
| | | this.PageTitle.Caption = "水力模拟"; |
| | | this.PageTitle.HeaderSvgImage = this.svgImg32[0]; |
| | | this.docPnlBottom.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | this.docPnlBottom.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; |
| | | } |
| | | |
| | | private HStation.Vmo.XhsProjectVmo _project = null;//项目 |
| | |
| | | this.tabPageBimface.Controls.Clear(); |
| | | this.tabPageBimface.Controls.Add(bimfaceCtrl); |
| | | await bimfaceCtrl.InitialData(_project, _projectSite, () => _hydroInfo); |
| | | this.xhsProjectSimulationQ3dCtrl1.SetBindingData(_hydroInfo); |
| | | this.xhsProjectSimulationPropertyCtrl1.InitialData(() => _hydroInfo); |
| | | var q3dCtrl = GetQ3dCtrl(); |
| | | this.tabPageQ3d.Controls.Clear(); |
| | | this.tabPageQ3d.Controls.Add(q3dCtrl); |
| | | q3dCtrl.InitialData(() => _hydroInfo); |
| | | var propertyCtrl = GetPropertyCtrl(); |
| | | this.controlContainerRight.Controls.Clear(); |
| | | this.controlContainerRight.Controls.Add(propertyCtrl); |
| | | propertyCtrl.InitialData(() => _hydroInfo); |
| | | } |
| | | |
| | | #region Bimface |
| | |
| | | } |
| | | return _bimfaceCtrl; |
| | | } |
| | | |
| | | //bimface控件 |
| | | private XhsProjectSimulationBimfaceCtrl _bimfaceCtrl = null; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | #endregion Bimface |
| | | |
| | | #region Q3d |
| | | |
| | | //点击事件 |
| | | private void xhsProjectSimulationQ3dCtrl1_ClickParterEvent(string code) |
| | | //获取Q3d控件 |
| | | private XhsProjectSimulationQ3dCtrl GetQ3dCtrl() |
| | | { |
| | | if (_hydroInfo == null) |
| | | if (_q3dCtrl == null) |
| | | { |
| | | return; |
| | | _q3dCtrl = new XhsProjectSimulationQ3dCtrl(); |
| | | _q3dCtrl.Dock = DockStyle.Fill; |
| | | _q3dCtrl.SelectedPartersChangedEvent += (obj) => |
| | | { |
| | | if (_hydroInfo == null) |
| | | { |
| | | return; |
| | | } |
| | | var allParterList = _hydroInfo.GetAllParters(); |
| | | _parter = allParterList?.Find(x => x.Code == obj?.FirstOrDefault()); |
| | | ShowProperty(); |
| | | }; |
| | | } |
| | | var allParterList = _hydroInfo.GetAllParters(); |
| | | _parter = allParterList?.Find(x => x.Code == code); |
| | | ShowProperty(); |
| | | return _q3dCtrl; |
| | | } |
| | | |
| | | #endregion |
| | | //Q3d控件 |
| | | private XhsProjectSimulationQ3dCtrl _q3dCtrl = null; |
| | | |
| | | #endregion Q3d |
| | | |
| | | #region 属性面板 |
| | | |
| | | //获取属性控件 |
| | | private XhsProjectSimulationPropertyCtrl GetPropertyCtrl() |
| | | { |
| | | if (_propertyCtrl == null) |
| | | { |
| | | _propertyCtrl = new XhsProjectSimulationPropertyCtrl(); |
| | | _propertyCtrl.Dock = DockStyle.Fill; |
| | | } |
| | | return _propertyCtrl; |
| | | } |
| | | |
| | | private XhsProjectSimulationPropertyCtrl _propertyCtrl = null;//属性控件 |
| | | |
| | | #endregion |
| | | #endregion 属性面板 |
| | | |
| | | #region 自动匹配 |
| | | |
| | |
| | | } |
| | | return _matchingListCtrl; |
| | | } |
| | | |
| | | //匹配列表控件 |
| | | private XhsProjectSimulationMatchingListCtrl _matchingListCtrl = null; |
| | | |
| | |
| | | this.docPnlBottom.Height = 350; |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | #endregion 自动匹配 |
| | | |
| | | #region 未匹配列表 |
| | | |
| | |
| | | } |
| | | return _unMatchingListCtrl; |
| | | } |
| | | |
| | | private XhsProjectSimulationUnMatchingListCtrl _unMatchingListCtrl = null;//未匹配列表 |
| | | |
| | | //未匹配列表 |
| | |
| | | this.docPnlBottom.Height = 350; |
| | | } |
| | | |
| | | |
| | | |
| | | #endregion |
| | | #endregion 未匹配列表 |
| | | |
| | | #region 一键显隐 |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 一键显隐 |
| | | |
| | | #region 水力校验 |
| | | |
| | |
| | | } |
| | | return _checkResultCtrl; |
| | | } |
| | | |
| | | //校验结果控件 |
| | | private XhsProjectSimulationHydroCheckResultCtrl _checkResultCtrl = null; |
| | | |
| | |
| | | this.docPnlBottom.Height = 350; |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 水力校验 |
| | | |
| | | #region 保存水力信息 |
| | | |
| | |
| | | TipFormHelper.ShowSucceed("保存成功!"); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 保存水力信息 |
| | | |
| | | #region 构件明细 |
| | | |
| | |
| | | } |
| | | return _parterListCtrl; |
| | | } |
| | | |
| | | //构件明细控件 |
| | | private Yw.WinFrmUI.HydroParterListCtrl _parterListCtrl = null; |
| | | |
| | |
| | | this.docPnlBottom.Height = 350; |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | #endregion 构件明细 |
| | | |
| | | #region INP导出 |
| | | |
| | |
| | | TipFormHelper.ShowSucceed("导出成功"); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion INP导出 |
| | | |
| | | #region 业务方法 |
| | | |
| | |
| | | |
| | | if (_parter == null) |
| | | { |
| | | this.xhsProjectSimulationPropertyCtrl1.SelectParter(null); |
| | | _propertyCtrl?.SelectParter(null); |
| | | return; |
| | | } |
| | | |
| | | this.xhsProjectSimulationPropertyCtrl1.SelectParter(_parter.Code); |
| | | _propertyCtrl?.SelectParter(_parter.Code); |
| | | if (_calcuResult != null) |
| | | { |
| | | if (_calcuResult.Succeed) |
| | |
| | | |
| | | if (calcuProperty != null) |
| | | { |
| | | this.xhsProjectSimulationPropertyCtrl1.UpdateCalcuProperty(calcuProperty); |
| | | _propertyCtrl?.UpdateCalcuProperty(calcuProperty); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 业务方法 |
| | | |
| | | #region 配置 |
| | | |
| | |
| | | this.rmSet.ShowPopup(MousePosition, true); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 配置 |
| | | |
| | | #region 性能曲线 |
| | | |
| | |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 性能曲线 |
| | | |
| | | #region 水力计算 |
| | | |
| | | |
| | | //获取计算控件 |
| | | private XhsProjectSimulationCalcuCtrl GetCalcuCtrl() |
| | |
| | | this.docPnlBottom.Height = 350; |
| | | TipFormHelper.ShowError("计算失败"); |
| | | } |
| | | |
| | | }; |
| | | } |
| | | return _calcuCtrl; |
| | | } |
| | | |
| | | private XhsProjectSimulationCalcuCtrl _calcuCtrl = null;//计算控件 |
| | | |
| | | //水力计算 |
| | |
| | | this.docPnlBottom.Height = 350; |
| | | } |
| | | |
| | | |
| | | |
| | | #endregion |
| | | #endregion 水力计算 |
| | | |
| | | #region 构件查询 |
| | | |
| | |
| | | } |
| | | return _searchCtrl; |
| | | } |
| | | |
| | | private XhsProjectSimulationSearchCtrl _searchCtrl = null;//查询组件 |
| | | |
| | | //查询 |
| | |
| | | this.docPnlBottom.Height = 350; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #endregion 构件查询 |
| | | |
| | | #region 标注 |
| | | |
| | |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion 标注 |
| | | } |
| | | } |