6274b05e37f9e275d7431028373724e685bd5dda.svn-base
8.18 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
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>自然幢信息管理</title>
<meta name="decorator" content="default"/>
<script src="${ctxStatic}/gis/js/init.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>
<script type="text/javascript">
var regBaseChxxData;
var TempTUceng;
var zid,xmid,cid;
$(document).ready(function() {
hideMask();
});
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
function gobackx(){
var url = "${ctx}/reg/base/regBaseXm/exportXm?repage";
window.location = url;
}
function showMask(){
$("#mask").css("height",$(document).height());
$("#mask").css("width",$(document).width());
$("#mask").show();
window.setTimeout("hideMask()",5000);//使用字符串执行方法
}
function hideMask(){
$("#mask").hide();
}
//初始化方法,改变已审核数据的颜色
window.onload = function() {
$.ajax({
type:"POST",
url:"${ctx}/reg/base/regBaseZrz/isauditinfo",
cache: false,
data:"xmid="+"${XMID}",
async : false,
success:function(modelmap){
var arr = modelmap.bsbm;
for(var i=0;i<arr.length;i++){
var t = arr[i];
var bsm_q = t.substr(0,6);
var bsm_h = t.substr(7,1);
$("#contentTable > tbody").find("tr").each(function(){
var ret = $(this).find("td").attr('id');
if(bsm_h =="1" && ret == bsm_q){
$(this).find("td").attr("style","background-color:#D2E9FF;");
}
});
}
}
});
}
function exportBuilding(zid){
if(confirm('确定导出该楼盘信息?')){
showMask();
window.setTimeout("hideMask()",5000);//使用字符串执行方法
url = "${ctx}/reg/base/regBaseZrz/exportBuilding?zid="+zid;
window.location.href=url;
}
}
function winOpenZCHView(zid){
//弹出窗口的宽度;
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=${regBaseXmmc}","楼盘立体展示",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
//有关坐标
function zbguanli(id,xmid){
url = "${ctx}/reg/base/regBaseZrz/zzbmanage?id="+id+"&XMID="+xmid+"&guanli=1";
window.location.href=url;
}
function deleteZrzChxx(chid) {
var queryStruct=new Zondy.Service.QueryFeatureStruct();
queryStruct.IncludeGeometry=true;
TempTUceng=actualSvrcfg.ZRZ;
var str="CHID='"+chid +"'";
var queryParam=new Zondy.Service.QueryByLayerParameter(TempTUceng,{
// geometry: line,
resultFormat: "json",
struct:queryStruct,
where : str
});
var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
{
ip: actualSvrcfg.ip, //IP地址
port: actualSvrcfg.port , //端口号
requestType:"POST"
});
queryService.query(queryquerydataSuccess);
}
function queryquerydataSuccess(data)
{
var chaxunvalue=data;
if(chaxunvalue.TotalCount>0)
{
var editDocFeature = new Zondy.Service.EditLayerFeature(TempTUceng, { ip: actualSvrcfg.ip, port: actualSvrcfg.port });
editDocFeature.deletes(chaxunvalue.SFEleArray[0].FID, deleteonSuccess);
}
}
function deleteonSuccess(data)
{
if (data == true) {
alert("已删除!");
var url = "${ctx}/reg/base/regBaseZrz/delete?id="+zid+"&XMID="+xmid+"&flag=true";
window.location.href=url;
}
else {
alert("删除失败,请检查参数是否填写完整!");
}
}
</script>
</head>
<body>
<div id="mask" class="mask">
<div class="maskloading"></div>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="#">自然幢信息列表</a></li>
</ul>
<form:form id="searchForm" modelAttribute="regBaseZrz" action="${ctx}/reg/base/regBaseZrz/zrzExportList" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<input id="xmid" name="XMID" type="hidden" value="${XMID}" />
<ul class="ul-form">
<li> 不动产单元号:
<form:input path="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
</li>
<li><label>标识码:</label>
<form:input path="bsm" htmlEscape="false" maxlength="6" class="input-medium"/>
</li>
<li><label style="width:100px;">建筑物名称:</label>
<form:input path="gzwmc" htmlEscape="false" maxlength="100" class="input-medium"/>
</li>
<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
<li class="btns"><input id="btnCancel" class="btn" type="button" value="返回项目" onclick="gobackx()"/></li>
<li class="clearfix"></li>
</ul>
</form:form>
<sys:message content="${message}"/>
<div class="current_fwinfo">当前项目【${regBaseXmmc}】,一共包含【${zCount}】幢楼</div>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>标识码</th>
<th>不动产单元号</th>
<th>项目名称</th>
<th>建筑物名称</th>
<th>宗地代码</th>
<th hidden="hidden">自然幢号</th>
<th>建筑面积</th>
<th>占地面积</th>
<th>总层数</th>
<th>最后修改人</th>
<th>最后修改时间</th>
<shiro:hasPermission name="reg:base:regBaseZrz:edit"><th>操作</th></shiro:hasPermission>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="regBaseZrz">
<tr>
<td id="${regBaseZrz.bsm}" ><a href="javascript:void(0);" onclick="exportBuilding('${regBaseZrz.id}');">
${regBaseZrz.bsm}</a>
</td>
<td><%--<a href="${ctx}/reg/base/regBaseZrz/form?id=${regBaseZrz.id}&VIEWS=1&XMID=${XMID}"></a> --%>
${regBaseZrz.bdcdyh}
</td>
<td>
${regBaseZrz.xmmc}
</td>
<td>
${regBaseZrz.gzwmc}
</td>
<td>
${regBaseZrz.zddm}
</td>
<td hidden="hidden">
${regBaseZrz.zrzh}#
</td>
<td>
${regBaseZrz.scjzmj}
</td>
<td>
${regBaseZrz.zzdmj}
</td>
<td>
${regBaseZrz.zcs}
</td>
<td>
${regBaseZrz.updater}
</td>
<td>
<fmt:formatDate value="${regBaseZrz.updateDate}" pattern="yyyy-MM-dd"/>
</td>
<shiro:hasPermission name="reg:base:regBaseZrz:edit"><td>
<a href="javascript:void(0);" onclick="winOpenZCHView('${regBaseZrz.id}');">立体展示</a>
<%-- <a href="javascript:void(0);" onclick="zrzExport('${regBaseZrz.id}');">楼盘导出</a>--%>
<a href="${ctx}/reg/base/regBaseZrz/zrzExport?zid=${regBaseZrz.id}&lx=1" onclick="showMask()">1代楼盘导出</a>
<a href="${ctx}/reg/base/regBaseZrz/zrzExport?zid=${regBaseZrz.id}&lx=2" onclick="showMask()">2代楼盘导出</a>
</td></shiro:hasPermission>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>