From 7e275acee90c914685ca53f04ec6a4b74e46abbf Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 22 四月 2024 15:41:50 +0800 Subject: [PATCH] 112 --- Terra.YaoGan.Web/Terra.YaoGan.Web/html/tooljs/menu.js | 62 ++++++++++++++++++++++++++++-- 1 files changed, 57 insertions(+), 5 deletions(-) diff --git a/Terra.YaoGan.Web/Terra.YaoGan.Web/html/tooljs/menu.js b/Terra.YaoGan.Web/Terra.YaoGan.Web/html/tooljs/menu.js index 6e4824b..5376076 100644 --- a/Terra.YaoGan.Web/Terra.YaoGan.Web/html/tooljs/menu.js +++ b/Terra.YaoGan.Web/Terra.YaoGan.Web/html/tooljs/menu.js @@ -101,6 +101,9 @@ // case "coorsys": // coorsys(); // break; + case "yxdbfx": + yxdbfx(); + break; } }); $(".imgx").hover(function () { @@ -150,18 +153,65 @@ } //鍙岀悆瀵规瘮 -var dd = true +var dd = true, globe; function sqdb() { - globe = window.external.createMultScreen(); - //globe.Open("http://118.213.95.34/SG/projects/init.434250"); - globe.open(sqFly); + 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 = 175, 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 dbfxstatus = true; + +function yxdbfx() { + if (dbfxstatus) { + //var dd= sgworld.Creator.CreatePopupMessage("tool", url + "tool/ImageComparisonPopup.html?lang=imagecom", 500, 150, 400, 140); + //sgworld.Window.ShowPopup(dd); + window.external.createPmDialogDock('tool', url + "tool/ImageComparisonPopup.html?lang=imagecom", 380, 100, 50, -1, -1, 10); + tjxstatus = false; + dbfxstatus = false + } else { + window.external.closeDialog("tool"); + dbfxstatus = true; } } @@ -225,10 +275,12 @@ //宸ョ▼鏍� var projectTreeStatus = true; +//createBorderDialog function projectTree() { if (projectTreeStatus) { //sgworld.ProjectTree.ShowSearchTool = false; - window.external.createPmDialogDock('projectTree', url + "tool/ProjectTree.html", 420, 500, 200, 500, -1, -1); + //window.external.createPmDialogDock('projectTree', url + "tool/ProjectTree.html", 420, 500, 200, 500, -1, -1); + window.external.createPmDialogDock('projectTree', url + "tool/ProjectTree.html", 280, 600, 200, 20, -1, -1); //rb.width, rb.height, rb.top, rb.left, rb.bottom, rb.right projectTreeStatus = false; } else { window.external.closeDialog("projectTree"); -- Gitblit v1.9.3