71f9e4f5da851dbe7b814a42112d70f431741db4.svn-base
10.8 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
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>
<c:if test="${DJLX ne '302'}">
权利人信息管理
</c:if>
</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
$(document).ready(
function(){
if(window.parent.document.picname){
window.parent.document.picname.location.reload();
}
})
function page(n, s) {
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
function winBack() {
var checkedCount = $("input[type='checkbox']:checked").length;
if (checkedCount >= 2) {
alert("只能选择一个权利人姓名!");
return;
}
//选中一行后,获取宗地代码值
var qlrValue = $("input[name='checkbox_qlr']:checked").attr("id");
if (window.opener) {
fWindowText1 = window.opener.document.getElementById("qlrtext");
fWindowText1.value = qlrValue;
window.close();
}
}
function btnSelectedQlr(){
var checkedCount = $("input[type='checkbox']:checked").length;
if (checkedCount <=0) {
alert("请选择至少一个权利人姓名!");
return;
}
//jquery获取复选框值 //定义一个数组
var chk_value =[];
//遍历每一个名字为interest的复选框,其中选中的执行函数
$('input[name="checkbox_qlr"]:checked').each(function(){
//将选中的值添加到数组chk_value中
chk_value.push($(this).attr("id"));
});
var qlrids = chk_value.join(";")
$.ajax({
type:"POST", //请求方式
url:"${ctx}/reg/bus/regBusQlr/getByIds", //请求路径
cache: false, //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。
//data:"zddm="+ zddmValue.trim() +"&id="+idValue.trim(), //传参
data:"ids="+qlrids.trim(), //传参
async: false,
success:function(data){
if (window.opener) {
var fWindowText1 = window.opener.document.getElementById("qlrmc");
fWindowText1.value = data.qlrmcs;
fWindowText1 = window.opener.document.getElementById("zjlx");
fWindowText1.value = data.zjzls;
fWindowText1 = window.opener.document.getElementById("sfzh");
fWindowText1.value = data.zjhs;
fWindowText1 = window.opener.document.getElementById("txdz");
fWindowText1.value = data.dzs;
fWindowText1 = window.opener.document.getElementById("yzbm");
fWindowText1.value = data.ybs;
fWindowText1 = window.opener.document.getElementById("dwxz");
fWindowText1.value = data.gzdws;
window.close();
}
}
});
}
function winOpenQlr(id) {
//弹出窗口的宽度;
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/bus/regBusQlr/form?id="+id+"&DJLX=${DJLX}&VIEWS=1&XG=1", "newwindow", "height=" + iHeight + ",width=" + iWidth + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function winOpenUpdateQlr(id) {
//弹出窗口的宽度;
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/bus/regBusQlr/form?id=" + id + "&YWH=${YWH}&SXBGLX=${SXBGLX}&DJLX=${DJLX}&XG=1", "newwindow", "height=" + iHeight + ",width=" + iWidth + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function interHisOpen(pcode){
var iWidth=1300;
var iHeight=600;
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("/ODM/a/InterSi/list?pcode="+pcode,"核验记录信息",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
//人像比对界面
function interrxbdOpen(ywh){
var iWidth=1300;
var iHeight=600;
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
window.open("${ctx}/reg/bus/regBusQlr/rxbdForm?ywh="+ywh,"人像比对管理",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function reloadqlr() {
var optype = "${optype}";
var djlx = "${DJLX}";
window.close();
if (window.opener) {
//新增
if (optype == undefined || optype == null || optype == "") {
window.opener.document.qlrframe.location.reload();
if(djlx == 214215){
window.opener.document.dyaqframe.location.reload();
window.opener.document.mortgageframe.location.reload();
}else{
if(djlx == 201){
window.opener.document.firstframe.location.reload();
}else if(djlx == 601 || djlx == 602){
window.opener.document.propertyframe.location.reload();
}else if(djlx == 604){
window.opener.document.housePropertframe.location.reload();
}else if(djlx == 609){
window.opener.document.bgforenoticeframe.location.reload();
}else if(djlx == 208){
window.opener.document.mortgageframe.location.reload();
}else if(djlx == 220){
window.opener.document.firstframe.location.reload();
}else{
window.opener.document.forenoticeframe.location.reload();
}
}
}else { //更新
window.opener.parent.document.qlrframe.location.reload();
if(djlx == 214215){
window.opener.parent.document.dyaqframe.location.reload();
window.opener.parent.document.mortgageframe.location.reload();
}else{
if(djlx == 201){
window.opener.parent.document.firstframe.location.reload();
}else if(djlx == 601 || djlx == 602){
window.opener.parent.document.propertyframe.location.reload();
}else if(djlx == 604){
window.opener.parent.document.housePropertframe.location.reload();
}else if(djlx == 609){
window.opener.parent.document.bgforenoticeframe.location.reload();
}else if(djlx == 208){
window.opener.parent.document.mortgageframe.location.reload();
}else{
window.opener.parent.document.forenoticeframe.location.reload();
}
}
}
}
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:void(0);">
权利人信息列表
</a></li>
<shiro:hasPermission name="reg:bus:regBusQlr:edit">
<c:if test="${not empty QLRXXXZ}">
<li><a href="${ctx}/reg/bus/regBusQlr/form?QLRXXXZ=${QLRXXXZ}&YWH=${YWH}&YSDM=${YSDM}&WO=1&QLR=${QLR}&ZL=${ZL}&QLRDH=${QLRDH}&QLRYJ=${QLRYJ}"">权利人信息添加</a></li>
</c:if>
</shiro:hasPermission>
</ul>
<!--
<form:form id="searchForm" modelAttribute="regBusQlr" action="${ctx}/reg/bus/regBusQlr/list?SXBGLX=${SXBGLX}" 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}"/>
<ul class="ul-form">
<li><label>不动产单元号</label>
<form:input path="bdcdyh" htmlEscape="false" maxlength="28" class="input-medium"/>
</li>
<c:if test="${empty SXBGLX}">
<li><label>顺序号:</label>
<form:input path="sxh" htmlEscape="false" maxlength="6" class="input-medium"/>
</li>
<li><label>权利人名称:</label>
<form:input path="qlrmc" htmlEscape="false" maxlength="100" class="input-medium"/>
</li>
</c:if>
<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
<li class="clearfix"></li>
</ul>
</form:form>
-->
<c:if test="${not empty WO}">
<br>
<input id="reLoadQlr" class="btn btn-primary" type="button" onclick="reloadqlr();" value="退出列表" />
<br>
<br>
</c:if>
<c:if test="${not empty QLRXXXZ}">
<br>
<input id="btnSelected" class="btn btn-primary" type="button" onclick="btnSelectedQlr();" value="选择权利人" />
<br>
<br>
</c:if>
<sys:message content="${message}" />
<table id="contentTable"
class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<c:if test="${not empty QLRXXXZ}">
<th>选择</th>
</c:if>
<th>顺序号</th>
<th>权利人名称</th>
<th>电话</th>
<th>地址</th>
<th>证件号</th>
<th>权利人类型</th>
<th>共有情况</th>
<th>权利比例(%)</th>
<!--
<c:if test="${DJLX eq '305' or DJLX eq '306' or DJLX eq '307' or DJLX eq '209' or DJLX eq '507' or DJLX eq '804' or DJLX eq '214' or DJLX eq '215' or DJLX eq '807'}">
<th>义务人</th>
</c:if>
-->
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="regBusQlr">
<tr>
<c:if test="${not empty QLRXXXZ}">
<td><input type="checkbox" name="checkbox_qlr" id="${regBusQlr.id}" value="" /></td>
</c:if>
<td>${regBusQlr.sxh}</td>
<%-- <c:if test="${empty WO}"> --%>
<td>
<shiro:hasPermission name="reg:bus:regBusQlr:view">
<a href="javascript:void(0);" onclick="winOpenQlr('${regBusQlr.id}');">${regBusQlr.qlrmc}</a>
</shiro:hasPermission>
</td>
<%-- </c:if> --%>
<td>${regBusQlr.dh}</td>
<td>${regBusQlr.dz}</td>
<td>${regBusQlr.zjh}</td>
<td>${fns:getDictLabel(regBusQlr.qlrlx, 'reg_bus_qlrlx', '')}</td>
<td>${fns:getDictLabel(regBusQlr.gyfs, 'reg_bus_gyfs', '')}</td>
<td>${regBusQlr.qlbl}</td>
<!--
<c:if test="${DJLX eq '305' or DJLX eq '306' or DJLX eq '307' or DJLX eq '209' or DJLX eq '507' or DJLX eq '804' or DJLX eq '214' or DJLX eq '215' or DJLX eq '807'}">
<td>${regBusQlr.ywrmc}</td>
</c:if>
-->
<td>
<c:if test="${empty LISTVIEWS}">
<shiro:hasPermission name="reg:bus:regBusQlr:edit">
<a href="javascript:void(0);" onclick="winOpenUpdateQlr('${regBusQlr.id}');">修改</a>
<c:if test="${empty SXBGLX}">
<a href="${ctx}/reg/bus/regBusQlr/delete?id=${regBusQlr.id}&YWH=${YWH}" onclick="return confirmx('确认要删除该权利人信息吗?', this.href)">删除</a>
</c:if>
</shiro:hasPermission>
</c:if>
<a href="javascript:void(0);" onclick="interHisOpen('${regBusQlr.pcode}');">核验记录</a>
<c:if test ="${empty WO and empty QLRXXXZ}">
<a href="javascript:void(0);" onclick="interrxbdOpen('${regBusQlr.ywh}');">人像比对</a>
</c:if>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</body>
</html>