| | |
| | | //跳转事件 |
| | | private async void homeXhsProjectPropertyCtrl1_JumpDirectEvent(XhsProjectStdDto obj) |
| | | { |
| | | var guid = new PageGuid() |
| | | var bimfacefile = await BimfaceFileStateHelper.IsHaveBimFace(obj.ID); |
| | | if (bimfacefile == null) |
| | | { |
| | | Modular = Yw.WinFrmUI.PageModular.Bimface, |
| | | MoudingType = Yw.WinFrmUI.Page.eMoudingType.Tab, |
| | | Function = Yw.WinFrmUI.PageFunction.ViewBimface3d, |
| | | TagName = $"{obj.ID}" |
| | | }; |
| | | if (!MessageBoxHelper.IsClickOk("当前项目未上传文件,是否前去上传模型文件?")) |
| | | { |
| | | var Prjguid = new PageGuid() |
| | | { |
| | | Modular = "Xhs", |
| | | MoudingType = eMoudingType.Tab, |
| | | Function = "ProjectMgr", |
| | | }; |
| | | if (!IsExistPage(Prjguid, true)) |
| | | { |
| | | var page = new XhsProjectMgrPage(); |
| | | CreatePage(page, Prjguid); |
| | | } |
| | | } |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | var guid = new PageGuid() |
| | | { |
| | | Modular = Yw.WinFrmUI.PageModular.Bimface, |
| | | MoudingType = Yw.WinFrmUI.Page.eMoudingType.Tab, |
| | | Function = Yw.WinFrmUI.PageFunction.ViewBimface3d, |
| | | TagName = $"{obj.ID}" |
| | | }; |
| | | |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var page = new XhsSchemeMultiMgrPage(); |
| | | await page.SetBindingData(obj.ID); |
| | | //var page = new XhsProjectSimulationMgrPage(); |
| | | CreatePage(page, guid); |
| | | if (!IsExistPage(guid, true)) |
| | | { |
| | | var page = new XhsSchemeMultiMgrPage(); |
| | | await page.SetBindingData(obj.ID); |
| | | //var page = new XhsProjectSimulationMgrPage(); |
| | | CreatePage(page, guid); |
| | | } |
| | | } |
| | | } |
| | | |