cde769ecc40fca5b4994426114dc1f71c8b523ec.svn-base
9.93 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
<%@ 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/lib/iconfont/iconfont.js"></script>
<style type="text/css">
.icon {
width: 32px;
height: 32px;
fill: currentColor;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
hideMask();
var msg = '${msg}';
if(msg != null && msg != ""){
alert('${msg}');
}
});
// function page(n,s){
// $("#pageNo").val(n);
// $("#pageSize").val(s);
// $("#searchForm").submit();
// return false;
// }
function page(n,s){
if(n) $("#pageNo").val(n);
if(s) $("#pageSize").val(s);
$("#searchForm").attr("action","${ctx}/reg/bus/regBusClhjFw/list");
$("#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:#C1FFC1;");
}
});
};
function daoru()
{
showMask();
if(confirm('确认上传文件吗?')){
var url = "${ctx}/reg/bus/regBusClhjFw/importFile";
window.location = url;
}
// $.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true},
// bottomText:"导入文件不能超过5M,仅允许导入“xls”或“xlsx”格式文件!"});
}
function hideMask(){
$("#mask").hide();
}
function showMask(){
$("#mask").css("height",$(document).height());
$("#mask").css("width",$(document).width());
$("#mask").show();
}
//启用
function audit(id,isaudit){
if(isaudit == '1'){
alert("已启用的数据不能重复启用!");
return;
}
if(confirm('启用后数据将正式生效,确认要启用该信息吗?')){
showMask();
$.ajax({
type:"POST",
url:"${ctx}/reg/bus/regBusClhjFw/audityz",
cache: false,
data:"ids="+id,
async : false,
success:function(modelmap){
successbj = modelmap.success;
if(successbj == 0){
url = "${ctx}/reg/bus/regBusClhjFw/audit?id="+id;
window.location.href=url;
}else{
alert(modelmap.msg);
}
}
});
}else{
hideMask();
}
}
//查看
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/regBusClhjFw/form?LISTVIEWS=1&id="+ id,"newwindow","height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
//批量审核
function getsavebat(){
showMask();
var iWidth=400;
var iHeight=150;
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("/ODM/a/reg/bus/regBusClhjFw/batform","审核信息",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
window.close();
}
//全部批量审核
function getsavebatall(){
showMask();
if(confirm('审核后数据将正式生效,确认要审核该信息吗?')){
$.ajax({
type:"POST",
url:"${ctx}/reg/bus/regBusClhjFw/saveauditbatall",
cache: false,
data:"",
async : false,
success:function(modelmap){
if(modelmap.success == 0){
window.location.reload();
}
}
});
}
}
</script>
</head>
<body>
<div id="mask" class="mask">
<div class="maskloading"></div>
</div>
<div id="importBox" class="hide">
<form id="importForm" action="${ctx}/reg/bus/regBusClhjFw/importFile" 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 class="btn btn-default" style="height: 50px" id="excel_file" type="file" name="filename" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
<br>
<input id="btnImportSubmit" style="height: 50px;width: 100px" class="btn btn-primary" type="button" value=" 导 入 " />
<%-- <a href="${ctx}/reg/bus/regBusClhjFw/importFileTemplate">下载模板</a> --%>
</form>
</div>
<ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/reg/bus/regBusClhjFw/list">存量数据汇交房屋历史表列表</a></li>
<%-- <shiro:hasPermission name="reg:bus:regBusClhjFw:edit"><li><a href="${ctx}/reg/bus/regBusClhjFw/form">存量数据汇交房屋历史表添加</a></li></shiro:hasPermission> --%>
</ul>
<form:form id="searchForm" name="importForms" modelAttribute="regBusClhjFw" action="${ctx}/reg/bus/regBusClhjFw/" 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}"/>
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
<table class="table-form">
<tr>
<td>项目小区</td>
<td>
<form:input path="xmxq" htmlEscape="false" class="input-medium"/>
</td>
<td>不动产权证号</td>
<td>
<form:input path="bdcqzh" htmlEscape="false" class="input-medium"/>
</td>
<td>不动产单元号</td>
<td>
<form:input path="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
</td>
<td>坐落</td>
<td>
<form:input path="zl" htmlEscape="false" class="input-xlarge"/>
</td>
</tr>
<tr>
<td>业务细类</td>
<td>
<form:select path="djxl" id="djxltext" class="input-medium ">
<form:option value="" label=""/>
<form:option value="207" label="房屋建筑物所有权"/>
<form:option value="302" label="房屋建筑物所有权转移登记"/>
<form:option value="214" label="房屋建筑物一般抵押权登记"/>
<form:option value="215" label="房屋建筑物最高额抵押权登记"/>
<form:option value="905" label="房屋查封登记"/>
</form:select>
</td>
<td> 层号</td>
<td>
<form:input path="ch" htmlEscape="false" maxlength="20" class="input-medium"/>
</td>
<td>室号部位</td>
<td>
<form:input path="shbw" htmlEscape="false" maxlength="50" class="input-medium"/>
</td>
<td>审核</td>
<td>
<form:select path="isaudit" id="isaudit" class="input-medium ">
<form:option value="" label=""/>
<form:option value="0" label="未启用"/>
<form:option value="1" label="已启用"/>
<form:option value="2" label="已引用"/>
</form:select>
</td>
</tr>
<tr>
<td>建筑面积</td>
<td>
<form:input path="jzmj" htmlEscape="false" maxlength="20" class="input-medium"/>
</td>
<td align="right" class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></td>
<td align="right" class="btns"><input id="btn btn-inverse" class="btn btn-primary" type="button" value="存量数据导入" onclick="daoru()"/></td>
<!-- <td align="right"><input id="btnSubmit"class="btn btn-info" type="button" onclick="getsavebat()" value="批量审核"/></td> -->
<td align="left"><input id="btnSubmit"class="btn btn-success" type="button" onclick="getsavebatall()" value="全部审核"/></td>
</tr>
</table>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th class="sort-column ywh">业务编号</th>
<th class="sort-column bdcdyh">不动产单元号</th>
<th>项目小区</th>
<th class="sort-column djxl">业务细类</th>
<th>建筑物名称</th>
<th>层号</th>
<th>室号部位</th>
<th>建筑面积</th>
<th>房地坐落</th>
<shiro:hasPermission name="reg:bus:regBusClhjFw:edit"><th width="6%">操作</th></shiro:hasPermission>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="regBusClhjFw">
<tr>
<td>
${regBusClhjFw.ywh}
<input type="hidden" name="isaudit" id="${regBusClhjFw.isaudit}" value=""/>
</td>
<td>
<a href="javascript:void(0);" onclick="winOpenHisDjxx('${regBusClhjFw.id}');">
${regBusClhjFw.bdcdyh}
</a>
</td>
<td>
${regBusClhjFw.xmxq}
</td>
<td>
${fns:getDictLabel(regBusClhjFw.djxl, 'reg_bus_djxl', '')}
</td>
<td>
${regBusClhjFw.jgzwmc}
</td>
<td>
${regBusClhjFw.ch}
</td>
<td>
${regBusClhjFw.shbw}
</td>
<td>
${regBusClhjFw.jzmj}
</td>
<td>
${regBusClhjFw.zl}
</td>
<shiro:hasPermission name="reg:bus:regBusClhjFw:edit"><td>
<c:if test="${regBusClhjFw.isaudit eq '0' }">
<a href="${ctx}/reg/bus/regBusClhjFw/form?id=${regBusClhjFw.id}">修改</a>
<a href="${ctx}/reg/bus/regBusClhjFw/delete?id=${regBusClhjFw.id}" onclick="return confirmx('确认要删除该存量数据吗?', this.href)"><span><font color="red">删除</font></span></a>
<a href="#" onclick="audit('${regBusClhjFw.id}','${regBusClhjFw.isaudit}');"><span><font color="green">启用</font></span></a>
</c:if>
<c:if test="${regBusClhjFw.isaudit eq '1' }">
<a href="#">已启用</a>
</c:if>
</td></shiro:hasPermission>
</tr>
</c:forEach>
</table>
<div class="pagination">${page}</div>
</body>
</html>