regBusHisHouseBdcqzsdjxxFormDY.jsp
14.1 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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<%@ 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() {
//$("#name").focus();
$("#inputForm").validate({
submitHandler: function(form){
loading('正在提交,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
$(function(){
//此方法用来解决iframe高度自适应的问题;
$("#gjzwframe").load(function(){
$(this).height($(this).contents().find("#contentTable").height() + 140);
});
$("#qlrframe").load(function(){
$(this).height($(this).contents().find("#contentTable").height() + 100);
});
$("#ywrframe").load(function(){
$(this).height($(this).contents().find("#contentTable").height() + 140);
});
});
function addRow(list, idx, tpl, row){
$(list).append(Mustache.render(tpl, {
idx: idx, delBtn: true, row: row
}));
$(list+idx).find("select").each(function(){
$(this).val($(this).attr("data-value"));
});
$(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
var ss = $(this).attr("data-value").split(',');
for (var i=0; i<ss.length; i++){
if($(this).val() == ss[i]){
$(this).attr("checked","checked");
}
}
});
}
function delRow(obj, prefix){
var id = $(prefix+"_id");
var delFlag = $(prefix+"_delFlag");
if (id.val() == ""){
$(obj).parent().parent().remove();
}else if(delFlag.val() == "0"){
delFlag.val("1");
$(obj).html("÷").attr("title", "撤销删除");
$(obj).parent().parent().addClass("error");
}else if(delFlag.val() == "1"){
delFlag.val("0");
$(obj).html("×").attr("title", "删除");
$(obj).parent().parent().removeClass("error");
}
}
//房屋选择
function firstHouseGuide(){
//弹出窗口的宽度;
var iWidth=1100;
//弹出窗口的高度;
var iHeight=600;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
var ywh = $("#ywhtext").val();
var djxl = $("#djxltext").data('select2').val();
var url = "${ctx}/reg/base/regBaseH/hishouseHformgageGuide?ywh="+ywh+"&djxl="+djxl;
window.open(url, "楼盘信息向导", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
}
function setinfo(ysdm,bdcdyh,xmmc,zrzh,ch,hh,zl,fwjg,sjc,fttdmj,scjzmj,scftjzmj,sjcs,fwxz){
$("#bdcdyh").val(bdcdyh);
$("#xmmc").val(xmmc);
$("#zrzh").val(zrzh);
$("#ch").val(ch);
$("#hh").val(hh);
$("#zl").val(zl);
$("#fwjg").val(fwjg);
$("#sjc").val(sjc);
$("#fttdmj").val(fttdmj);
$("#scjzmj").val(scjzmj);
$("#scftjzmj").val(scftjzmj);
$("#sjcs").val(sjcs);
$("#fwxz").val(fwxz);
}
function qlrwinOpen()
{
var ifmWindow_1 = document.getElementById('gjzwframe').contentWindow;
var tbLen_1 = $(ifmWindow_1.document).find("#contentTable").find("tbody").find("tr").length;
if(tbLen_1 == 0){
alert("请您先添加抵押权信息!");
return;
}
//弹出窗口的宽度;
var iWidth=1100;
//弹出窗口的高度;
var iHeight=600;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
var gyfs = "";
$.ajax({
type:"POST",
url:"${ctx}/reg/bus/regBusHisHouseQlr/isFlagGyqk",
cache: false,
data:"YWH="+$("#ywhtext").val(),
async : false,
success:function(modelmap){
successbj = modelmap.success;
gyfs = modelmap.gyfs;
if(modelmap.success != 1){
alert(modelmap.msg);
return;
}
}
});
if(successbj == 1){
window.open("${ctx}/reg/bus/regBusHisHouseQlr/form?YWH="+$("#ywhtext").val()+"&gyfs="+gyfs,"88",
"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
}
// function ywrwinOpen()
// {
// //弹出窗口的宽度;
// 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/regBusHisHouseYwr/form?YWH="+$("#ywhtext").val(),"newwindow",
// "height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
// }
function dyywrwinOpen()
{
var ifmWindow_1 = document.getElementById('gjzwframe').contentWindow;
var tbLen_1 = $(ifmWindow_1.document).find("#contentTable").find("tbody").find("tr").length;
if(tbLen_1 == 0){
alert("请您先添加抵押权信息!");
return;
}
//弹出窗口的宽度;
var iWidth=1100;
//弹出窗口的高度;
var iHeight=600;
//获得窗口的垂直位置
var iTop = (window.screen.height - 30 - iHeight) / 2;
//获得窗口的水平位置
var iLeft = (window.screen.width - 10 - iWidth) / 2;
var url = "${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/hishouseformgageGuide?YWH="+$("#ywhtext").val();
window.open(url, "111", "width=" + iWidth + ", height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no,alwaysRaised=yes,depended=yes");
}
function setqlxzinfo(qlxz,dymjhj,ywh)
{
$("#qlxz").val(qlxz);
$("#jzmjhj").val(dymjhj);
$("#ywhtext").val(ywh);
}
function getUrl(){
//查询权利人共有方式
var successbj ="";
$.ajax({
type:"POST",
url:"${ctx}/reg/bus/regBusHisHouseQlr/querygyfs", //请求路径
cache: false,
data:"YWH="+$("#ywhtext").val(),
async : false,
success:function(modelmap){
successbj = modelmap.success;
if(modelmap.success == 1){
alert(modelmap.msg);
return;
}
}
});
if(successbj == 0){
$(".error").remove();
if($("#qllxtext").val() == "" || $("#qllxtext").val() == null){
alert("权利类型不能为空");
return;
}
if($("#qlxz").val() == "" || $("#qlxz").val() == null){
alert("权利性质不能为空");
return;
}
var ifmWindow_1 = document.getElementById('gjzwframe').contentWindow;
var tbLen_1 = $(ifmWindow_1.document).find("#contentTable").find("tbody").find("tr").length;
if(tbLen_1 == 0){
alert("请添加抵押权信息!");
return;
}
var ifmWindow = document.getElementById('qlrframe').contentWindow;
var tbLen = $(ifmWindow.document).find("#contentTable").find("tbody").find("tr").length;
var ifmWindow_1 = document.getElementById('ywrframe').contentWindow;
var tbLen_1 = $(ifmWindow_1.document).find("#contentTable").find("tbody").find("tr").length;
if(tbLen == 0 || tbLen_1 == 0){
alert("请添加抵押权人或抵押人信息!");
return;
}
document.getElementById("btnSubmit").disabled="disabled";
document.inputForms.action = "${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/save?H=2&optype=${optype}";
document.inputForms.submit();
}
}
function setids(id){
$("#ids").val(id);
}
function qllxbg(){
var djxl = $("#djxltext").val();
if(djxl == "804" || djxl == "807"){
$("#qllxtext").data('select2').val("27");
}else{
$("#qllxtext").data('select2').val("24");
}
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<br/>
<c:if test="${empty VIEWS}">
<li><a href="${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/listDY">房屋抵押权历史登记数据列表</a></li>
</c:if>
<li class="active"><a href="#">房屋抵押权历史登记数据录入<shiro:hasPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit">${not empty regBusHisHouseBdcqzsdjxx.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit">查看</shiro:lacksPermission></a></li>
</ul><br/>
<form:form id="inputForm" name="inputForms" modelAttribute="regBusHisHouseBdcqzsdjxx" action="${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/save?H=2" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<fieldset>
<legend>业务信息</legend>
</br>
<table class="table-form">
<tr>
<td class="tit">业务编号:</td>
<td>
<form:input path="ywh" id="ywhtext" htmlEscape="false" readonly="true" value="${YWHIS}" maxlength="100" class="input-large"/>
</td>
<td class="tit"><font color="red">登记小类:</font></td>
<td>
<form:select path="djxl" id="djxltext" onchange="qllxbg()" class="input-large required">
<form:option value="213" label="在建工程抵押权"/>
<form:option value="804" label="预购商品房抵押预告登记"/>
<form:option value="214" label="房屋建筑物一般抵押权登记"/>
<form:option value="215" label="房屋建筑物最高额抵押权登记"/>
<form:option value="807" label="房屋建筑物抵押权预告登记"/>
</form:select>
<!-- <span class="help-inline"><font color="red">*</font> </span> -->
</td>
<!--
<td class="tit">登记类型</td>
<td>
<form:select id="txtDjlx" path="djlx" readonly="true" class="input-large ">
<form:option value="200" label="首次登记" />
<form:option value="800" label="预告登记"/>
</form:select>
</td>
-->
<td class="tit">抵押建筑面积合计:㎡</td>
<td>
<form:input path="jzmjhj" htmlEscape="false" maxlength="50" class="input-large"/>
</td>
</tr>
<tr>
<td class="tit">权利类型</td>
<td>
<form:select path="qllx" id="qllxtext" class="input-large required">
<form:option value="" label=""/>
<%-- <form:option value="1" label="集体土地所有权"/> --%>
<%-- <form:option value="2" label="国家土地所有权"/> --%>
<%-- <form:option value="3" label="国有建设用地使用权"/> --%>
<%-- <form:option value="4" label="国有建设用地使用权/房屋所有权"/> --%>
<%-- <form:option value="5" label="宅基地使用权"/> --%>
<%-- <form:option value="6" label="宅基地使用权/房屋所有权"/> --%>
<%-- <form:option value="7" label="集体建设用地使用权"/> --%>
<%-- <form:option value="8" label="集体建设用地使用权/房屋所有权"/> --%>
<form:option value="24" label="抵押权"/>
<form:option value="27" label="预告登记"/>
</form:select>
<span class="help-inline"><font color="red">*</font> </span>
</td>
<td class="tit">权利性质</td>
<td>
<form:input path="qlxz" id="qlxz" htmlEscape="false" readonly="true" maxlength="12" class="input-large required"/>
<span class="help-inline"><font color="red">*</font> </span>
</td>
<td class="tit">备注:</td>
<td >
<form:input path="remarks" htmlEscape="false" maxlength="50" class="input-large"/>
</td>
</tr>
</table>
</fieldset>
</br>
<fieldset>
<table class="table-form">
<div>
<c:if test="${empty xg}">
<input id="queryGuide" class="btn btn-primary" style="float:right;" type="button" onclick="javascript:firstHouseGuide();" value="抵押权信息添加"/><br/><br/>
</c:if>
<iframe id="gjzwframe" name="gjzwframe" src="${ctx}/reg/bus/regBusHisHouseBdcqzsdjxx/hishousedylist?YWH=${LSH}&xg=${xg}&optype=${optype}" width="100%" height="200" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</div>
</table>
</fieldset>
</br>
</br>
<fieldset>
<legend>抵押权人信息</legend>
<table class="table-form">
<div>
<c:if test="${empty xg}">
<input id="btnOpen" class="btn btn-primary" style="float:right;" type="button" onclick="qlrwinOpen();" value="抵押权人信息添加"/>
</c:if>
<iframe id="qlrframe" name="qlrframe" src="${ctx}/reg/bus/regBusHisHouseQlr/list?YWH=${LSH}&xg=${xg}&optype=${optype}" width="100%" height="200" frameborder="no" border="0" marginwidth="0"
marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</div>
</table>
</fieldset>
</br>
<fieldset>
<legend>抵押人信息</legend>
<table class="table-form">
<div>
<c:if test="${empty xg}">
<input id="btnOpen" class="btn btn-primary" style="float:right;" type="button" onclick="dyywrwinOpen();" value="抵押人信息添加"/>
</c:if>
<iframe id="ywrframe" name="ywrframe" src="${ctx}/reg/bus/regBusHisHouseYwr/list?YWH=${LSH}&xg=${xg}" width="100%" height="200" frameborder="no" border="0" marginwidth="0"
marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</div>
</table>
</fieldset>
</br>
<div class="form-actions" align="center">
<c:if test="${empty xg}">
<shiro:hasPermission name="reg:bus:regBusHisHouseBdcqzsdjxx:edit"><input id="btnSubmit" class="btn btn-primary" type="button" onclick="getUrl()" value="保 存"/> </shiro:hasPermission>
</c:if>
<c:if test="${not empty VIEWS}">
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="javascript:window.close();"/>
</c:if>
</div>
</form:form>
</body>
</html>