| | |
| | | public async Task SetBindingData(long projectId) |
| | | { |
| | | _projectId = projectId; |
| | | var projectSite = await new HStation.BLL.XhsProjectSiteStd().GetDefaultByProjectID(projectId); |
| | | var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(projectId); |
| | | if (projectSite == null) |
| | | { |
| | | return; |
| | |
| | | //临时---选择泵型号 |
| | | private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | var dlg = new ChoicePumpMainDlg(); |
| | | dlg.SetBindingData(); |
| | | dlg.ShowDialog(); |
| | | // var dlg = new AssetsAutoMatchingMainDlg(); |
| | | // dlg.SetMatching(); |
| | | // dlg.ShowDialog(); |
| | | } |
| | | |
| | | private async void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | |
| | | } |
| | | var pumps = _hydro.Pumps; |
| | | var ids = pumps.Select(x => x.Code).Distinct().ToList(); |
| | | await this.xhsProjectAssetsBimfaceCtrl1.HideComponents(ids); |
| | | await this.xhsProjectAssetsBimfaceCtrl1.TranslucentComponents(ids); |
| | | } |
| | | |
| | | private async void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | |
| | | } |
| | | var pumps = _hydro.Pumps; |
| | | var ids = pumps.Select(x => x.Code).Distinct().ToList(); |
| | | await this.xhsProjectAssetsBimfaceCtrl1.ShowComponents(ids); |
| | | await this.xhsProjectAssetsBimfaceCtrl1.OpaqueComponents(ids); |
| | | } |
| | | |
| | | private async void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | |
| | | await this.xhsProjectAssetsBimfaceCtrl1.ShowAllComponents(); |
| | | } |
| | | |
| | | //自动匹配 |
| | | private void barBtnAutoMatch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | /* var dlg = new AssetsAutoMatchingMainDlg(); |
| | | dlg.SetMatching(); |
| | | dlg.ShowDialog(); |
| | | */ |
| | | } |
| | | } |
| | | } |