1
13693261870
2024-04-03 430ca426af0002e5b81bffb04ed5a21209ea8dbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
let baseState = false,
    yyongState = false,
    zhuantiState = false;
//左侧弹窗位置
var lT = new leftTopDatlog();
var rT = new rightTopDatlog();
//根目录点击事件
function RootClickData(parm) {
    CloseAllScreenDialog();
    ClearLocstrage();
    TJBtnCheck();
 
    if (parm == "" | parm == null) {
        return false;
    }
 
    //点击飞到初始化位置
    var currentId = sgworld.ProjectTree.FindItem(RootInitLocation);
    if (currentId == "") return;
    sgworld.Navigate.FlyTo(currentId);
 
    //打开青海图层
    sgworld.ProjectTree.SetVisibility("", false);
    let initLayer = sgworld.ProjectTree.FindItem(RootInitLayer);
    if (initLayer == "") return;
    sgworld.ProjectTree.SetVisibility(initLayer, true);
    sgworld.Navigate.FlyTo(initLayer);
 
    //传递参数  基础数据
    if (parm == RootCatlogExBase.Type) {
        if (baseState == false) {
            TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?type=" + parm, lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
            var LayerId = sgworld.ProjectTree.FindItem(RootCatlogExBase.name);
            if (LayerId != "") { return false };
            //确认图层关闭
            var layer = sgworld.ProjectTree.LoadFlyLayer(RootCatlogExBase.Fly, '');
            sgworld.ProjectTree.RenameGroup(layer, RootCatlogExBase.name);
            //let CurrentID = sgworld.ProjectTree.FindItem(RootCatlogExBase.name);
            //sgworld.ProjectTree.SetVisibility(CurrentID, false);
        } else {
            TBAX.setLMenu(JSON.stringify(lMenu));
        }
        baseState = !baseState;
        yyongState = false;
        zhuantiState = false;
    }
 
    //应用数据
    if (parm == RootCatlogExYingYong.Type) {
        
        if (yyongState == false) {   
            TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?type=" + parm, lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
            var LayerId = sgworld.ProjectTree.FindItem(RootCatlogExYingYong.name);
            if (LayerId != "") { return false };
            var layer = sgworld.ProjectTree.LoadFlyLayer(RootCatlogExYingYong.Fly, '');
            sgworld.ProjectTree.SetVisibility(layer, false);
            sgworld.ProjectTree.RenameGroup(layer, RootCatlogExYingYong.name);
        } else {
            TBAX.setLMenu(JSON.stringify(lMenu));
        }
        yyongState = !yyongState;
        baseState = false;
        zhuantiState = false;
    }
 
    //专题数据
    if (parm == RootCatlogExBasezhuanti.Type) {
        if (zhuantiState == false) {          
            TBAX.createPmDialogDock("左上", url + "html/firstAndSecondCatlog.html?type=" + parm, lT.width, lT.height, lT.top, lT.left, lT.bottom, lT.right);
 
            var LayerId = sgworld.ProjectTree.FindItem(RootCatlogExBasezhuanti.name);
            if (LayerId != "") { return false };
            let layer = sgworld.ProjectTree.LoadFlyLayer(RootCatlogExBasezhuanti.Fly, '');        
            sgworld.ProjectTree.SetVisibility(layer, false);
            sgworld.ProjectTree.RenameGroup(layer, RootCatlogExBasezhuanti.name);
        } else {
            TBAX.setLMenu(JSON.stringify(lMenu));           
        }
        zhuantiState = !zhuantiState;
        baseState = false;
        yyongState = 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("中间");
    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);
    }
    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("右下");
        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");
}
 
function kjcx(param) {
    showHtml("空间查询", mainUrl + "Resources/SpatialQuery/SpatialQuery.html", 20, 120, 420, 285);
}
 
function tjfx(param) {
    showHtml("统计分析", mainUrl + "Resources/SpatialQuery/SpatialQuery.html", 20, 120, 420, 285);
}
 
function showHtml(tile, url, left, top, width, height) {
    if (sgworld.Window.GetPopupByCaption(tile) != null) {
        sgworld.Window.RemovePopupByCaption(tile);
    }
 
    var popup = sgworld.Creator.CreatePopupMessage(tile, url, left, top, width, height);
    popup.AllowResize = true;
    popup.ShowCaption = true;
    popup.AllowDrag = true;
    popup.Width = width;
    popup.Height = height;
 
    sgworld.Window.ShowPopup(popup);
}