15aaf7c9a2bf924e47dbee1352324e7bd99a90d5.svn-base
16.3 KB
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>宗地地图检索展示</title>
<!-- meta name="decorator" content="default"/-->
<link href="${ctxStatic}/gis/lib/zondy-style-thin.css" rel="stylesheet" type="text/css" />
<link href="${ctxStatic}/gis/css/orbit-1.2.3.css" rel="stylesheet" type="text/css" />
<link href="${ctxStatic}/gis/css/defaultPage.css" rel="stylesheet" type="text/css" />
<link href="${ctxStatic}/gis/css/style.css" rel="stylesheet" type="text/css" />
<link href="${ctxStatic}/gis/css/styleml.css" rel="stylesheet" type="text/css" />
<script src="${ctxStatic}/gis/lib/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="${ctxStatic}/gis/lib/OpenLayers.js" type="text/javascript"></script>
<script src="${ctxStatic}/gis/lib/zdclient.js" type="text/javascript"></script>
<script src="${ctxStatic}/gis/lib/jquery.orbit-1.2.3.js" type="text/javascript"></script>
<script src="${ctxStatic}/gis/js/global.js" type="text/javascript"></script>
<script src="${ctxStatic}/gis/js/config.js" type="text/javascript"></script>
<link href="${ctxStatic}/gis/lib/jqueryEasyui/easyui.css" rel="stylesheet" type="text/css" />
<link href="${ctxStatic}/gis/lib/jqueryEasyui/icon.css" rel="stylesheet" type="text/css" />
<script src="${ctxStatic}/gis/lib/jqueryEasyui/jquery.easyui.min.js" type="text/javascript"></script>
<link href="${ctxStatic}/gis/lib/colorPicker/js_color_picker_v2.css" rel="stylesheet" type="text/css" />
<script src="${ctxStatic}/gis/lib/colorPicker/js_color_picker_v2.js" type="text/javascript"></script>
<script src="${ctxStatic}/gis/lib/colorPicker/color_functions.js" type="text/javascript"></script>
<script type="text/javascript">
var tempZrzList = new Array();
tempZrzList = ${fns:toJson(regBaseZrzList)};
var xmmc= '${regBaseXm.xmmc}';
var flag ='';
$(document).ready(function(){
var slideNav = new OpenLayers.Control.TouchNavigation({
dragPanOptions : { //惯性滑动,
enableKinetic : { //enableKinetic,可以设为bool,也可设为object,设为object时,object会考到{<OpenLayers.Kinetic> 的构造函数中
deceleration : 0.0055
//地图滑动的速率
}
}
});
////初始化地图容器,确定地图文档范围,显示级数分辨力等
map = new OpenLayers.Map("map", {
isAutoConfig: true,
controls: [
new OpenLayers.Control.Navigation(), //此控件处理伴随鼠标事件的地图浏览
new OpenLayers.Control.MousePosition(), //此控件显示鼠标移动时,所在点的地理坐标
new OpenLayers.Control.TouchNavigation({ //控制刷新地图时不用闪烁一次
dragPanOptions: {
enableKinetic: {
deceleration: true
}
}
})
]
});
layer = new Zondy.Map.Doc("MapGIS IGS MapDocLayer", actualSvrcfg.tileMapName, {
ip: actualSvrcfg.ip, //IP地址
port: actualSvrcfg.port, //端口号
isBaseLayer: true,
transitionEffect: "resize" ,//刷新地图时不用闪烁一次
filters: "21:islogout!='1' AND islogout!='2',22:islogout!='1' AND islogout!='2',23:islogout!='1' AND islogout!='2',27:islogout!='1' AND islogout!='2',28:islogout!='1' AND islogout!='2',29:islogout!='1' AND islogout!='2',35:islogout!='1' AND islogout!='2'"
});
//给容器添加图层
map.addLayers([layer]);
map.setCenter(new OpenLayers.LonLat((36405050.3420840023+36412505.1417875422)/2,(3657541.105763692+3667821.869731353)/2), 3);
flashLayer= new OpenLayers.Layer.Vector("flashLayer");
flashLayer.style={fillColor:"#D2691E",fillOpacity:0.8};
map.addLayer(flashLayer);
var queryStruct=new Zondy.Service.QueryFeatureStruct();
queryStruct.IncludeGeometry=true;
flag = '${flag}';
var chid='${regBaseZdjbxx.chid}';
var lpbdcdyh = '${regBaseZrz.bdcdyh}';
//查询该宗地信息
if(flag == 'zd'){
document.getElementById("lpinfo").style.display="none";
document.getElementById("zdinfo").style.display="";
var str = "CHID= '"+ chid +"'";
var chaxuntuceng = selectTuCeng('${regBaseZdjbxx.zdtzm}');
}else{
document.getElementById("zdinfo").style.display="none";
document.getElementById("lpinfo").style.display="";
var str = "BDCDYH= '"+ lpbdcdyh +"'";
var chaxuntuceng = actualSvrcfg.ZRZ;
}
var queryParam=new Zondy.Service.QueryByLayerParameter(chaxuntuceng,{
// geometry: line,
resultFormat: "json",
struct:queryStruct,
where : str
});
queryParam.recordNumber = 100;
var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
{
ip: actualSvrcfg.ip, //IP地址
port: actualSvrcfg.port , //端口号
requestType:"POST"
});
queryService.query(querySuccess);
if(flag == 'zd'){
queryZRZSuccess();
}
}) ;
function queryZRZSuccess(){
var zrzList = ${fns:toJson(regBaseZrzList)};
console.log(zrzList.length);
var info = "";
if(zrzList.length > 0){
$("#zrzinfo").html('该宗地有'+ zrzList.length +'条楼栋信息');
info="<ol>";
for(var i = 0 ; i<zrzList.length;i++){
var zid = zrzList[i].id;
var xmid =zrzList[i].xmid;
info = info+"<li>楼栋名称:<br>"+ xmmc + zrzList[i].gzwmc +"<a href='#' onclick='winOpenZCHView(\""+zid+"\",\""+xmid+"\",\""+xmmc+"\")'>立体展示</a></li>"
+"不动产单元号:<br>"+ zrzList[i].bdcdyh +"<br><br>"
}
info = info+"</ol>";
$(".zrzinfo").html(info);
}else{
$("#zrzinfo").html('该宗地上无楼栋');
}
}
function querySuccess(data){
var result = data;
var format=new Zondy.Format.PolygonJSON();
var features = format.read(result); //将获取到的中地数据转换为OL数据
flashLayer.addFeatures(features);//将转换的点绘制图形
if (result.SFEleArray.length > 0) {
if (result.SFEleArray[0].bound) {
var pantoX = (result.SFEleArray[0].bound.xmin + result.SFEleArray[0].bound.xmax) / 2;
var pantoY = (result.SFEleArray[0].bound.ymin + result.SFEleArray[0].bound.ymax) / 2;
}
map.setCenter([pantoX, pantoY],actualSvrcfg.mapQueryjishu);
}
if(flag == 'zd'){
if(result.TotalCount > 0){
$.ajax({
type:"POST", //请求方式
url:"${ctx}/reg/bus/regBusBdcqzsdjxx/getHKVInfo", //请求路径
cache: false, //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。
data:"qllx="+result.SFEleArray[0].AttValue[15]+"&qlxz="+result.SFEleArray[0].AttValue[16],//"id="+ id +"&NEWYWH=${regBusSlsq.ywh}&djlx=${regBusSlsq.djxl}", //传参
async:false,
success:function(modelmap){
$("#zddm").html(result.SFEleArray[0].AttValue[4]);
$("#bdcdyh").html(result.SFEleArray[0].AttValue[5]);
$("#labelqlrxm").html(result.SFEleArray[0].AttValue[30]);
$("#labelzl").html(result.SFEleArray[0].AttValue[8]);
$("#labelmj").html(result.SFEleArray[0].AttValue[9]);
$("#labelqllx").html(modelmap.qllx);
$("#labelqlxz").html(modelmap.qlxz);
$("#labelyt").html(result.SFEleArray[0].AttValue[10]);
}
})
}
}
else{
$("#zrzzddm").html(result.SFEleArray[0].AttValue[4]);
$("#zrzbdcdyh").html(result.SFEleArray[0].AttValue[5]);
$("#zrzxmmc").html(result.SFEleArray[0].AttValue[11]);
$("#zrzjzwmc").html(result.SFEleArray[0].AttValue[8]);
$("#zrzzcs").html(result.SFEleArray[0].AttValue[17]);
$("#zrzzdmj").html(result.SFEleArray[0].AttValue[10]);
}
}
function selectTuCeng(ListTucengNO)
{
var tucengValue="";
switch(ListTucengNO)
{
case "A":
tucengValue=actualSvrcfg.SYQZDGDBP;
break;
case "B":
tucengValue=actualSvrcfg.SHYQZD_DB;
break;
case "S":
tucengValue=actualSvrcfg.SHYQZD_DS;
break;
case "X":
tucengValue=actualSvrcfg.SHYQZD_DX;
break;
case "C":
tucengValue=actualSvrcfg.ZJDGDBP;
break;
case "D":
tucengValue=actualSvrcfg.CBJYQZD_GD;
break;
case "E":
tucengValue=actualSvrcfg.CBJYQZD_LD;
break;
case "F":
tucengValue=actualSvrcfg.CBJYQZD_CD;
break;
case "I":
break;
default:break;
}
return tucengValue;
}
function Opendengjibu(text)
{
var iWidth=1100;
var iHeight=600;
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
var txt="";
if(text == "zddm"){
if(flag == 'zd'){
txt=document.getElementById("zddm").innerHTML;
}else{
txt=document.getElementById("zrzzddm").innerHTML;
}
window.open("${ctx}/reg/books/book?zddm="+txt,"windownew",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
if(text == "bdcdyh"){
txt=document.getElementById("bdcdyh").innerHTML;
window.open("${ctx}/reg/books/orightbook?bdcdyh="+txt,"windownew",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
}
function winOpenZCHView(zid,xmid,xmmc){
console.log(zid,xmid,xmmc);
//弹出窗口的宽度;
var iWidth=1100;
//弹出窗口的高度;
var iHeight=600;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("${ctx}/reg/base/regBaseC/zchListView?ZID="+zid+"&XMID="+xmid+"&XMMC="+xmmc,"楼盘立体展示",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function winOpenBdcdjxx(bdcdyh){
//弹出窗口的宽度;
var iWidth=1100;
//弹出窗口的高度;
var iHeight=600;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
var url = "${ctx}/reg/base/regBaseC/openHouseView?cxfs=1&bdcdyh="+bdcdyh;
window.open(url, "lpwindow", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
}
</script>
</head>
<body>
<div id="main">
<div id="logoBtn">
<div title="隐藏标题" class="logoImg logoBtn"> </div>
</div>
<div id="zdinfo">
<div class="infohead">宗地情况:</div>
<div class="infotitle" margin-left="0px">宗地基本情况:</div>
<div class="info">
<label class="display-label">宗地代码:</label>
<div class="controls">
<a id="zddm" class="controls" href="javascript:void(0)" title="点击此处查看更多详细信息" onclick="Opendengjibu('zddm');"></a>
</div>
<br>
<label class="display-label">不动产单元号:</label>
<div class="controls">
<a id="bdcdyh" class="controls" href="javascript:void(0)" title="点击此处查看更多详细信息" onclick="Opendengjibu('bdcdyh');"></a>
</div>
<br>
<label class="display-label">权利人:</label>
<div id="labelqlrxm" class="controls">
</div>
<br>
<label class="display-label">权利类型:</label>
<div id="labelqllx" class="controls">
</div>
<br>
<label class="display-label">权利性质:</label>
<div id="labelqlxz" class="controls">
</div>
<br>
<label class="display-label">用途:</label>
<div id="labelyt" class="controls">
</div>
<br>
<label class="display-label">面积:</label>
<div id="labelmj" class="controls">
</div>
<br>
<label class="display-label">状态:</label>
<div id="labelzt" class="controls">
${fns:getDictLabel(regBaseZdjbxx.isdiya, 'reg_bus_isdiya', '')}
<c:if test="${regBaseZdjbxx.ischafeng eq 0}">
${fns:getDictLabel(regBaseZdjbxx.ischafeng, 'reg_bus_ischafeng', '')}
</c:if>
<c:if test="${regBaseZdjbxx.ischafeng ne 0}">
<span class="help-inline"><font color="red">
查封
</font></span>
</c:if>
<c:if test="${regBaseZdjbxx.isyiyi eq 0}">
${fns:getDictLabel(regBaseZdjbxx.isyiyi, 'reg_bus_isyiyi', '')}
</c:if>
<c:if test="${regBaseZdjbxx.isyiyi ne 0}">
<span class="help-inline"><font color="red">
${fns:getDictLabel(regBaseZdjbxx.isyiyi, 'reg_bus_isyiyi', '')}
</font></span>
</c:if>
</div>
<br>
</div>
<div class="infotitle" id="zrzinfo"></div>
<div class="zrzinfo">
</div>
</div>
<div id = "lpinfo">
<label class="control-label">宗地代码:</label>
<div> <a id="zrzzddm" class="controls" href="javascript:void(0)" title="点击此处查看更多详细信息" onclick="Opendengjibu('zddm');" >
</a>
</div>
<br/>
<label class="control-label">不动产单元号:</label>
<div><a id="zrzbdcdyh">
</a>
<br><a href="javascript:void(0);" onclick="winOpenBdcdjxx('${regBaseZrz.bdcdyh}');">楼盘整体信息</a>
</div>
<br />
<label class="control-label">项目名称:</label>
<div id="zrzxmmc" class="controls">
</div>
<br />
<label class="control-label">构筑物名称:</label>
<div id="zrzjzwmc" class="controls">
</div>
<br />
<label class="control-label">总层数:</label>
<div id="zrzzcs" class="controls">
</div>
<br />
<label class="control-label">幢占地面积:</label>
<div id="zrzzdmj" class="controls">
</div>
</div>
<!-- div id="map" style="width:1050px;height:550px"> --> <!-- style="position: absolute;" -->
<div id="map" style="width:100%;height:98%">
</div>
</div>
<!-- 列表显示多条查询信息 -->
<div id="PQdialog" class="easyui-window" title="查询信息" border="false" maximizable="false" minimizable="false" collapsible="false" border="false" resizable="false" closable="true" closed="true" style="width:600px; height: 200px;padding:5px;left:200px;top:100px">
</div>
</body>
</html>