c74d55da10978cd083b2badc88d98480bba52813.svn-base
12.7 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
<%@ 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 type="text/javascript">
$(document).ready(function(){
hideMask();
var msg = "${MSG}";
if(msg != "" && msg != null && msg != undefined){
alert("${MSG}");
}
var isbatch = "${isbatch}";
if(isbatch == '1'){
}
$("#batchAudit").click(function(){
batchAudit();
});
});
function batchAudit(){
var h = $("#contentTable > tbody").find("tr")[0];
var l = $(h).find("td").size();
var t = $(h).find("td")[l-1];
var row_id = $(t).find("input[name='table_row_id']")[0];
var isaudit = $(t).find("input[name='table_row_audit']")[0];
var a_html = $(t).find("a")[0];
if($(a_html).html() != '审核'){
return;
}
if(isaudit == '1'){
location.reload();
}
showMask();
url = "${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/audit?H=3&isbatch=1&id="+$(row_id).val()+"¶ywh="+$("#ywh").val()+"¶bdcqzh="+$("#bdcqzh").val()+"¶bdcdyh="+$("#bdcdyh").val()+"¶fdzl="+$("#fdzl").val()+"¶jzmj="+$("#jzmj").val();
window.location.href=url;
}
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
//初始化方法,改变已审核数据的颜色
window.onload = function(){
//改变 已打印的 行颜色
$("#contentTable > tbody").find("tr").each(function(){
var ret = $(this).find('input:hidden').attr('id');
if(ret == "1"){
$(this).find("td").attr("style","background-color:#D2E9FF;");
}
});
};
function hideMask(){
$("#mask").hide();
}
function showMask(){
$("#mask").css("height",$(document).height());
$("#mask").css("width",$(document).width());
$("#mask").show();
}
//审核
function auditHisDjxx(id,isaudit){
if(isaudit == '1'){
alert("已审核的数据不能重复审核!");
return;
}
showMask();
if(confirm('审核后数据将正式生效,并且不能删除和修改。确认要审核该信息吗?')){
url = "${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/audit?H=3&id="+id+"¶ywh="+$("#ywh").val()+"¶bdcqzh="+$("#bdcqzh").val()+"¶bdcdyh="+$("#bdcdyh").val()+"¶fdzl="+$("#fdzl").val()+"¶jzmj="+$("#jzmj").val();
window.location.href=url;
}else{
hideMask();
}
}
//删除
function deleteHisDjxx(id,isaudit){
if(isaudit == '1'){
alert("已审核的数据不能删除!");
return;
}
if(confirm('确认要删除该历史不动产登记信息吗?')){
url = "${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/delete?H=3&mainid="+id;
window.location.href=url;
}
}
function deleteHisDjxxFSH(id,isaudit){
if(isaudit == '1'){
alert("已审核的数据不能删除!");
return;
}
if(confirm('确认要删除该历史不动产登记信息吗?')){
url = "${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/deleteFSH?H=3&mainid="+id;
window.location.href=url;
}
}
//修改
function winOpenUpdateHisDjxx(id,isaudit){
if(isaudit == '1'){
alert("已审核的数据不能修改!");
return;
}
//弹出窗口的宽度;
var iWidth=1500;
//弹出窗口的高度;
var iHeight=800;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/form?H=3&id="+ id +"&optype=1&VIEWS=2","newwindow","height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function winOpenHisDjxx(id){
//弹出窗口的宽度;
var iWidth=1500;
//弹出窗口的高度;
var iHeight=800;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/form?xg=1&H=3&id="+ id +"&optype=update&VIEWS=2&drbj=1","newwindow","height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
//退出列表
function reload(){
if(window.opener) {
window.close();
window.opener.location.reload();
}
}
function unauditHisDjxx(id){
showMask();
if(confirm('重审核原数据将被覆盖,确认要反审核该信息吗?')){
$.ajax({
type:"POST", //请求方式
url:"${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/unaudit", //请求路径
cache: false, //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。
data:"ids="+id,//"seachcity="+$("#seachcitytext").val()+"&seachdistrict="+$("#seachdistricttext").val()+"&qlrmc="+$("#qlrxmtext").val()+"&zjlx="+$("#zjlxtext").val()+"&zjhm="+$("#zjhmtext").val()+"&seachprov="+$("#seachprovtext").val()+"&zdtzm="+$("#zdtzmTxt").val()+"&zl="+$("#zltext").val()+"&zdmj="+$("#zdmjtext").val()+"&tfh="+$("#tfhtext").val()+"&zdszd="+$("#adszdtext").val()+"&zdszn="+$("#zdszntext").val()+"&zdszx="+$("#zdszxtext").val()+"&zdszb="+$("#zdszbtext").val()+"&zdt="+$("#zdt").val()+"&chrymc="+$("#chrymctext").val()+"&chsj="+$("#chsjtext").val()+"&jzdzb="+zbtemp,//chrymctext
async:true,
//dataType: "html", //返回值类型
success:function(modelmap){
if(modelmap.success == 1){
alert(modelmap.msg);
hideMask();
return;
}else{
alert("反审核成功!");
$("#btnSubmit").trigger("click");
}
}
});
}else{
hideMask();
}
}
</script>
</head>
<body>
<div id="mask" class="mask">
<div class="maskloading"></div>
</div>
<c:if test="${empty ysh}">
<ul class="nav nav-tabs">
<br/>
<li class="active"><a href="#">房屋所有权历史数据录入列表</a></li>
<shiro:hasPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit"><li><a href="${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/form?H=3">房屋所有权历史数据录入添加</a></li></shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="regBusHisHouseBdcqzsdjxx" action="${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/listSC" 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 class="table-form">
<tr>
<td> 业务编号</td>
<td>
<form:input path="ywh" id="ywh" htmlEscape="false" maxlength="20" class="input-medium"/>
</td>
<td>不动产权证号</td>
<td>
<form:input path="bdcqzh" id="bdcqzh" htmlEscape="false" maxlength="50" class="input-medium"/>
</td>
<td>不动产单元号</td>
<td>
<form:input path="bdcdyh" id="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
</td>
<td>坐落</td>
<td>
<form:input path="fdzl" id="fdzl" htmlEscape="false" maxlength="28" class="input-medium"/>
</td>
</tr>
<tr>
<td>宗地面积㎡</td>
<td>
<form:input path="jzmj" id="jzmj" htmlEscape="false" maxlength="100" class="input-medium"/>
</td>
<td class="btns">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
<input id="batchAudit" class="btn btn-primary" type="button" value="批量审核"/>
</td>
<td class="clearfix"></td>
</tr>
</table>
</form:form>
</c:if>
<c:if test="${not empty WO}">
<input id="reLoad" class="btn btn-primary" type="button" onclick="reload();" value="退出列表" />
</c:if>
<sys:message content="${message}"/>
<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> -->
<th>面积(㎡)</th>
<c:if test="${empty LISTVIEWS}">
<shiro:hasPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit"><th>操作</th></shiro:hasPermission>
</c:if>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="regBusHisHouseBdcqzsdjxx">
<tr>
<td>
<a href="javascript:void(0);" onclick="winOpenHisDjxx('${regBusHisHouseBdcqzsdjxx.id}');">
${regBusHisHouseBdcqzsdjxx.ywh}
</a>
<input type="hidden" name="isaudit" id="${regBusHisHouseBdcqzsdjxx.isaudit}" value=""/>
</td>
<td>
${regBusHisHouseBdcqzsdjxx.bdcqzh}
</td>
<td>
${regBusHisHouseBdcqzsdjxx.bdcdyh}
</td>
<td>
${regBusHisHouseBdcqzsdjxx.fdzl}
</td>
<!-- <td> -->
<%-- ${fns:getDictLabel(regBusHisHouseBdcqzsdjxx.qlxz, 'reg_bus_qlxz', '')} --%>
<!-- </td> -->
<td>
${fns:getDictLabel(regBusHisHouseBdcqzsdjxx.djxl, 'reg_bus_djxl', '')}
</td>
<!-- <td> -->
<%-- ${fns:getDictLabel(regBusHisHouseBdcqzsdjxx.qllx, 'reg_bus_qllx', '')} --%>
<!-- </td> -->
<!-- <td> -->
<%-- ${fns:getDictLabel(regBusHisHouseBdcqzsdjxx.ghyt, 'reg_bus_fwyt', '')} --%>
<!-- </td> -->
<td>
${regBusHisHouseBdcqzsdjxx.jzmj}
</td>
<c:if test="${regBusHisHouseBdcqzsdjxx.isaudit eq 0}">
<c:if test="${VIEWS eq 1}">
<shiro:hasPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit"><td>
<c:if test="${SH eq 'S00001001007'}">
<a href="#" onclick="winOpenUpdateHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">修改</a>
<c:if test="${regBusHisHouseBdcqzsdjxx.isfsh eq '0'}">
<a href="#" onclick="deleteHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">删除</a>
</c:if>
</c:if>
<c:if test="${SH ne 'S00001001007'}">
<input type="hidden" name="table_row_id" value="${regBusHisHouseBdcqzsdjxx.id}">
<input type="hidden" name="table_row_audit" value="${regBusHisHouseBdcqzsdjxx.isaudit}">
<c:choose>
<c:when test="${regBusHisHouseBdcqzsdjxx.isfsh ne '0'}">
<a href="#" onclick="auditHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">复审</a>
</c:when>
<c:otherwise>
<a href="#" onclick="auditHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">审核</a>
</c:otherwise>
</c:choose>
<a href="#" onclick="winOpenUpdateHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">修改</a>
<c:choose>
<c:when test="${regBusHisHouseBdcqzsdjxx.isfsh ne '0'}">
<a href="#" onclick="deleteHisDjxxFSH('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">删除</a>
</c:when>
<c:otherwise>
<a href="#" onclick="deleteHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">删除</a>
</c:otherwise>
</c:choose>
</c:if>
</td></shiro:hasPermission>
</c:if>
</c:if>
<c:if test="${regBusHisHouseBdcqzsdjxx.isaudit eq 1}">
<shiro:hasPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit">
<td>
<%--
<c:choose>
<c:when test="${regBusHisHouseBdcqzsdjxx.fshok eq '0' && regBusHisHouseBdcqzsdjxx.hisok eq '0'}">
<a href="#" onclick="unauditHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">反审核</a>
</c:when>
<c:otherwise>
<label title="${regBusHisHouseBdcqzsdjxx.fshok}">已审核</label>
</c:otherwise>
</c:choose> --%>
<a href="#" onclick="unauditHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">反审核</a>
</td>
</shiro:hasPermission>
</c:if>
<c:if test="${empty regBusHisHouseBdcqzsdjxx.isaudit}">
<shiro:hasPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit">
<td>
<a href="#" onclick="winOpenUpdateHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">修改</a>
<c:if test="${regBusHisHouseBdcqzsdjxx.isfsh eq '0'}">
<a href="#" onclick="deleteHisDjxx('${regBusHisHouseBdcqzsdjxx.id}','${regBusHisHouseBdcqzsdjxx.isaudit}');">删除</a>
</c:if>
</td>
</shiro:hasPermission>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>