112
13693261870
2024-04-22 7e275acee90c914685ca53f04ec6a4b74e46abbf
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");