var baseState = false, yyongState = false, zhuantiState = false;
|
var lT = new leftTopDatlog();
|
var rT = new rightTopDatlog();
|
|
function y_yingyongData(parm) {
|
OranginOne();
|
//点击飞到初始化位置
|
var currentId = sgworld.ProjectTree.FindItem("init");
|
sgworld.Navigate.FlyTo(currentId);
|
//关闭其他弹窗
|
TBAX.closeDialog("右上");
|
TBAX.closeDialog("右下");
|
TBAX.closeDialog("右中");
|
TBAX.closeDialog("左下");
|
TBAX.closeDialog("左上");
|
//清除持久化里面的属性
|
localStorage.setItem("type", "");
|
|
if (parm == "" | parm == null) {
|
return false;
|
}
|
var pm = parm.split("*");
|
sgworld.ProjectTree.SetVisibility("", false);
|
sgworld.ProjectTree.SetVisibility(sgworld.ProjectTree.FindItem("qinghai"), true);
|
if (pm[1] == "base") {
|
if (baseState == false) {
|
yyongState = false, zhuantiState = false;
|
//TBAX.createBorderDialog("左上", url + "html/firstAndSecondCatlog.html?id=" + pm[0] + "&pname=" + pm[1], lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
|
TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?id=" + pm[0] + "&pname=" + pm[1], lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
|
baseState = true;
|
var LayerId = sgworld.ProjectTree.FindItem("基础数据");
|
if (LayerId != "") { return false };
|
|
var layer = sgworld.ProjectTree.LoadFlyLayer('http://118.213.95.33:8090/fly/基础数据.FLY', '');
|
//var layer = sgworld.ProjectTree.LoadFlyLayer('F:\\分类FLY\\基础数据.FLY', '');
|
sgworld.ProjectTree.RenameGroup(layer, "基础数据");
|
sgworld.ProjectTree.SetVisibility("", false);
|
sgworld.ProjectTree.SetVisibility(sgworld.ProjectTree.FindItem("qinghai"), true);
|
sgworld.Navigate.FlyTo(sgworld.ProjectTree.FindItem("qinghai"));
|
} else {
|
TBAX.closeDialog("左上");
|
TBAX.closeDialog("右上");
|
TBAX.setLMenu(JSON.stringify(lMenu));
|
baseState = false;
|
}
|
} else if (pm[1] == "yyong") {
|
if (yyongState == false) {
|
baseState = false, zhuantiState = false;
|
TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?id=" + pm[0] + "&pname=" + pm[1], lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
|
yyongState = true;
|
var LayerId = sgworld.ProjectTree.FindItem("应用数据");
|
if (LayerId != "") { return false };
|
var layer = sgworld.ProjectTree.LoadFlyLayer('http://118.213.95.33:8090/fly/应用数据.FLY', '');
|
//var layer = sgworld.ProjectTree.LoadFlyLayer("D:\\fly\\应用数据.FLY");
|
sgworld.ProjectTree.SetVisibility(layer, false);
|
sgworld.ProjectTree.RenameGroup(layer, "应用数据");
|
sgworld.ProjectTree.SetVisibility(sgworld.ProjectTree.FindItem("qinghai"), true);
|
sgworld.Navigate.FlyTo(sgworld.ProjectTree.FindItem("qinghai"));
|
} else {
|
TBAX.closeDialog("左上");
|
TBAX.setLMenu(JSON.stringify(lMenu));
|
yyongState = false;
|
}
|
} else if (pm[1] == "zhuanti") {
|
if (zhuantiState == false) {
|
baseState = false, yyongState = false;
|
TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?id=" + pm[0] + "&pname=" + pm[1], lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
|
zhuantiState = true;
|
var LayerId = sgworld.ProjectTree.FindItem("专题数据");
|
if (LayerId != "") { return false };
|
var layer;
|
try {
|
layer = sgworld.ProjectTree.LoadFlyLayer('http://118.213.95.33:8090/fly/专题数据.FLY', '');
|
} catch (e) {
|
layer = sgworld.ProjectTree.FindItem("http://118.213.95.33:8090/fly/专题数据");
|
}
|
if (layer == "") {
|
y_yingyongData("9ccecdc5e75145ddac930954c02fc251*zhuanti");
|
} else {
|
sgworld.ProjectTree.SetVisibility(layer, false);
|
sgworld.ProjectTree.RenameGroup(layer, "专题数据");
|
sgworld.ProjectTree.SetVisibility(sgworld.ProjectTree.FindItem("qinghai"), true);
|
sgworld.Navigate.FlyTo(sgworld.ProjectTree.FindItem("qinghai"));
|
}
|
} else {
|
TBAX.closeDialog("左上");
|
TBAX.setLMenu(JSON.stringify(lMenu));
|
zhuantiState = false;
|
}
|
} else {
|
return false;
|
}
|
}
|
|
//工具
|
function chaXun(type) {
|
TBAX.closeDialog("中间");
|
if (type == "1") {
|
TBAX.setFullBtnVisibility("a1", "false");
|
TBAX.setFullBtnVisibility("a2", "true");
|
TBAX.setFullBtnVisibility("a3", "true");
|
TBAX.setFullBtnVisibility("a4", "false");
|
TBAX.createPmDialogDock("中间", url + "html/tool.html", 1000, 50, 100, 450, -1, -1);
|
} else {
|
TBAX.setFullBtnVisibility("a1", "true");
|
TBAX.setFullBtnVisibility("a2", "false");
|
TBAX.closeDialog("中间");
|
TBAX.closeDialog("tool");
|
}
|
}
|
|
//菜单
|
function setMenu(param) {
|
TBAX.closeDialog("中间");
|
//TBAX.setFullBtn2(JSON.stringify(tMenu));
|
if (param == 1) {
|
TBAX.setFullBtnVisibility("a1", "true");
|
TBAX.setFullBtnVisibility("a2", "false");
|
TBAX.setFullBtnVisibility("a3", "false");
|
TBAX.setFullBtnVisibility("a4", "true");
|
TBAX.createPmDialogDock('中间', url + "html/menu.html", 1000, 50, 100, 450, -1, -1);
|
//TBAX.createPmDialogDock('中间', url + "html/projecttree.html", 600, 500, 150, 500, -1, -1);
|
}
|
else {
|
TBAX.setFullBtnVisibility("a3", "true");
|
TBAX.setFullBtnVisibility("a4", "false");
|
TBAX.closeDialog("中间");
|
}
|
}
|
|
function fenX(type) {
|
var modleSigle = localStorage.getItem("type");
|
if (modleSigle == "" | modleSigle == null) {
|
return false;
|
}
|
if (type == "1") {
|
TBAX.setFullBtnVisibility("a5", "false");
|
TBAX.setFullBtnVisibility("a6", "true");
|
TBAX.closeDialog("左下");
|
TBAX.closeDialog("右中");
|
if (modleSigle != "湟水河") {
|
TBAX.closeDialog("右上");
|
}
|
//TBAX.closeDialog("右上");
|
TBAX.closeDialog("右下");
|
switch (modleSigle) {
|
case "QHLD":
|
case "QHCD":
|
case "QHDB":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/QH2014.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "QHHM":
|
case "QHSD":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/QHFZ2014.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "DLDB":
|
case "DLTD":
|
case "DLSD":
|
case "DLRL":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/DL.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "HHLD":
|
case "HHCD":
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/HH.html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
case "KCGZ":
|
case "KCXY":
|
case "DZZH":
|
case "DZZS":
|
case "QHCD":
|
case "STRL":
|
case "STBC":
|
case "KCDZ":
|
case "DLZD":
|
case "DLKC":
|
case "DZZS":
|
case "DLDZ":
|
|
case "QLHT":
|
case "QLML":
|
case "QLCD":
|
case "QLGM":
|
case "QLJC":
|
case "QLQY":
|
case "QLMY":
|
case "QLHD":
|
case "DL2010":
|
case "DL2018":
|
case "DL2019":
|
case "GF1":
|
case "GF1B":
|
case "GF1C":
|
case "GF1D":
|
case "GF2":
|
case "GF6":
|
case "QH2018":
|
case "QH2019":
|
case "SJXZ":
|
case "QLQY":
|
case "QLHD":
|
case "QLCD":
|
case "QLGM":
|
case "QLHT":
|
case "QLJC":
|
case "QLML":
|
case "QLMY":
|
case "SXSJ":
|
case "XJXZ":
|
case "ZY31":
|
case "ZY32":
|
case "DLSJ":
|
case "DMSJ":
|
case "GF701":
|
case "ZY33":
|
case "ZY2C":
|
case "GF5VIMS":
|
case "GF5AHSI":
|
case "HY-1C":
|
case "ZY02D_VNIC":
|
case "ZY02D_ASHI":
|
|
break;
|
case "湟水河":
|
var hshFID = localStorage.getItem("hshFID");
|
TBAX.createPmDialogDock("queryHSH", url + "html/caseWhere/queryHSH.html?hshFID=" + hshFID, 930, 450, 100, -1, -1, 400);
|
break;
|
default:
|
TBAX.createPmDialogDock("右上", url + "html/caseWhere/" + modleSigle + ".html", rT.width, rT.height, rT.top, rT.left, rT.bottom, rT.right);
|
break;
|
}
|
}
|
else {
|
TBAX.setFullBtnVisibility("a5", "true");
|
TBAX.setFullBtnVisibility("a6", "false");
|
TBAX.closeDialog("左下");
|
TBAX.closeDialog("右中");
|
if (modleSigle != "湟水河") {
|
TBAX.closeDialog("右上");
|
} else {
|
TBAX.closeDialog("queryHSH");
|
}
|
TBAX.closeDialog("右下");
|
}
|
}
|
|
function Orangin() {
|
TBAX.setFullBtnVisibility("a5", "true");
|
TBAX.setFullBtnVisibility("a6", "false");
|
TBAX.closeDialog("右上");
|
}
|
|
function OranginOne() {
|
TBAX.setFullBtnVisibility("a5", "true");
|
TBAX.setFullBtnVisibility("a6", "false");
|
}
|