| | |
| | | } |
| | | |
| | | //双球对比 |
| | | var dd = true |
| | | var dd = true, globe; |
| | | |
| | | function sqdb() { |
| | | var title = "多期数据"; |
| | | if (!globe) { |
| | | globe = window.external.createMultScreen(); |
| | | //globe.Open("http://118.213.95.34/SG/projects/init.434250"); |
| | | globe.open(sqFly); |
| | | } |
| | | var mode = window.external.setShowMode(7); |
| | | if (mode) { |
| | | sgworld.Application.Multiple3DWindows.SetAsLeader(); |
| | | sgworld.Application.Multiple3DWindows.LinkPosition(globe); |
| | | |
| | | var width = 125, height = 25; |
| | | var left = 1920 / 2 - 20 - width - 20; |
| | | |
| | | showHtmlBySG(sgworld, title, location.origin + "/checkbox.html", left, 200, width, height, false); |
| | | showHtmlBySG(globe, title, location.origin + "/checkbox.html", 20, 200, width, height, false); |
| | | } else { |
| | | if (sgworld.Window.GetPopupByCaption(title) != null) { |
| | | sgworld.Window.RemovePopupByCaption(title); |
| | | } |
| | | if (globe.Window.GetPopupByCaption(title) != null) { |
| | | globe.Window.RemovePopupByCaption(title); |
| | | } |
| | | sgworld.Application.Multiple3DWindows.UnlinkPosition(); |
| | | } |
| | | } |
| | | |
| | | function showHtmlBySG(sg, title, url, left, top, width, height, showCaption) { |
| | | if (sg.Window.GetPopupByCaption(title) != null) { |
| | | sg.Window.RemovePopupByCaption(title); |
| | | } |
| | | |
| | | var popup = sg.Creator.CreatePopupMessage(title, url, left, top, width, height); |
| | | popup.AllowResize = true; |
| | | popup.ShowCaption = true; |
| | | popup.AllowDrag = true; |
| | | popup.Width = width; |
| | | popup.Height = height; |
| | | popup.ShowCaption = showCaption; |
| | | |
| | | sg.Window.ShowPopup(popup); |
| | | } |
| | | |
| | | //三维截面分析 |
| | | var swjmfxStatus = true; |
| | | |