regBaseChxxFormhu.jsp
7.62 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
<%@ 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>
<script src="${ctxStatic}/select3/AreaData_min.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 mapreturnvale;
var mapreturnvaleList;
var DJQTotle,DJZQTotle;
var DJQName = new Array();
var DJZQName = new Array();
var regBaseZbinfoRowIdx = 0;
var tempdjq,tempdjzq,tempxzq;
var TempZBArray = new Array();
var TempZBYXArray = new Array();
var zblisttemp="";
var daoru="";
var minArea = 0, maxArea = 0;
$(document).ready(function() {
$("tbody > tr").bind("click",function(){
$("tbody > tr").each(function(i){
$(this).removeClass("trBgcolor");
});
$(this).find('input:radio').prop('checked', true);
$(this).addClass("trBgcolor");
});
var wfbl = "${wfbl}";
var zb = "${zb}";
if(wfbl == '1'){
alert("此处无权限进行修改,请经过变更业务修改!!");
var url = "${ctx}/reg/base/regBaseChxx/xglist";
window.location.href=url;
}
if(zb == '1'){
alert("请删除此宗地上的楼栋坐标,再进行更改");
var url = "${ctx}/reg/base/regBaseChxx/xglist";
window.location.href=url;
}
});
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
function huoqu(){
var queryStruct=new Zondy.Service.QueryFeatureStruct();
queryStruct.IncludeGeometry=true;
var queryParam=new Zondy.Service.QueryByLayerParameter(actualSvrcfg.LINQUAN,{
// geometry: line,
resultFormat: "json",
struct:queryStruct,
});
queryParam.recordNumber = 2000;
var queryService=new Zondy.Service.QueryLayerFeature(queryParam,
{
ip: actualSvrcfg.ip, //IP地址
port: actualSvrcfg.port , //端口号
requestType:"POST"
});
queryService.query(queryUpdatedataSuccess);
//------------------------------------
}
function queryUpdatedataSuccess(data)
{
console.log(data);
var list = {};
for(var i = 0;i<data.TotalCount;i++){
var temp = new Array();
var zbArray = data.SFEleArray[i].fGeom.RegGeom[0].Rings[0].Arcs[0].Dots;
for (var j = 0;j<zbArray.length;j++){
temp[j] = zbArray[j].x + ","+zbArray[j].y;
}
var zdxx = new Object();
zdxx.zddm = data.SFEleArray[i].AttValue[3];
zdxx.bdcdyh = data.SFEleArray[i].AttValue[4];
zdxx.zb = temp;
list[i] = zdxx;
}
$.ajax({
url : "${ctx}/reg/base/regBaseChxx/lqcs",
type:"POST",
data : {'zdxx':JSON.stringify(list)},
dataType : "json",
success : function(data) {
console.log(data);
}
});
}
function zbdaoru()
{
$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true},
bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
}
function cxzd(){
var zdbdcdyh = $("#bdcdyhtext").val();
var url = "${ctx}/reg/base/regBaseChxx/xgcxzd?bdcdyh="+zdbdcdyh;
window.location.href=url;
}
function auditXgDjxx(chid,isaudit,bdcdyh){
if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
var url = "${ctx}/reg/base/regBaseChxx/xgaudit?id="+chid+"&lsbj=1"+"&bdcdyh="+bdcdyh;
window.location.href=url;
}
}
</script>
</head>
<body>
<div id="importBox" class="hide">
<form id="importForm" action="${ctx}/reg/base/regBaseChxx/importxgFile?bdcdyh=${regBaseZdjbxx.bdcdyh}" method="post" enctype="multipart/form-data"
class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入,请稍等...');"><br/>
<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>
<input id="btnImportSubmit" class="btn btn-primary" type="submit" value=" 导 入 " />
<a href="${ctx}/reg/base/regBaseChxx/importFileTemplate">下载模板</a>
</form>
</div>
<!-- <input id="getdjqdjzqCancel" class="btn" type="button" value="读取林权信息" onclick="huoqu();"/> -->
<form:form id="searchForm" modelAttribute="regBaseZdjbxx" action="${ctx}/reg/base/regBaseChxx/xgcxzd" 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}"/>
<table>
<tr>
<td class="tit">不动产单元号 </td>
<td>
<input path="bdcdyh" name="bdcdyh" value="${zdbdcdyh}" id="bdcdyhtext" htmlEscape="false" maxlength="30" class="input-medium"/>
</td>
<td class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" /></td>
<td class="clearfix"></td>
</tr>
</table>
</form:form>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>宗地代码</th>
<th>不动产单元号</th>
<th>坐落</th>
<th>宗地面积</th>
<th>面积单位</th>
<th>权利人</th>
<th>权利类型</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="regBaseZdjbxx">
<tr>
<td>${regBaseZdjbxx.zddm}</td>
<td>
<c:if test="${regBaseZdjbxx.isaudit eq '10'}">
<a href="${ctx}/reg/base/regBaseChxx/xgform?chid=${regBaseZdjbxx.chid}&bdcdyh=${regBaseZdjbxx.bdcdyh}&VIEWS=1&xg=1">
${regBaseZdjbxx.bdcdyh}</a></c:if>
<c:if test="${regBaseZdjbxx.isaudit eq '2'}">
${regBaseZdjbxx.bdcdyh}</c:if>
</td>
<td>
${regBaseZdjbxx.zl}
</td>
<td>
${regBaseZdjbxx.zdmj}
</td>
<td>
${fns:getDictLabel(regBaseZdjbxx.mjdw, 'reg_bus_mjdw', '')}
</td>
<td>
${regBaseZdjbxx.qlrxm}
</td>
<td>
${fns:getDictLabel(regBaseZdjbxx.qllx, 'reg_bus_qllx', '')}
</td>
<td>
<c:if test="${regBaseZdjbxx.isaudit eq '2'}">
<input id="btndaoru" class="btn btn-primary" type="button" value="坐标导入" onclick="zbdaoru()"/>
</c:if>
<c:if test="${regBaseZdjbxx.isaudit eq '10'}">
<a href="#" onclick="auditXgDjxx('${regBaseZdjbxx.chid}','${regBaseZdjbxx.isaudit}','${regBaseZdjbxx.bdcdyh}');">审核</a>
<a href="${ctx}/reg/base/regBaseChxx/xgform?chid=${regBaseZdjbxx.chid}&bdcdyh=${regBaseZdjbxx.bdcdyh}&xg=1">修改</a>
</c:if>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>