ycslForm.jsp
15.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
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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<%@ 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() {
});
var proid='';
var jbxx = new Object();
function jbxxwinOpen() {
//弹出窗口的宽度;
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}/ycsl/ycslJbxx/zydjGuide?IsHouse=1";
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 selectjbxx(id){
$.ajax({
type:"POST",
url:"${ctx}/ycsl/ycslJbxx/selectjbxx",
cache: false,
data:"djxxid="+id,
async : false,
success:function(modelmap){
if(modelmap.success == 1){
alert(modelmap.msg);
return;
}else{
jbxx = modelmap.jbxx;
$("#id").val(jbxx.id);
$("#proid").val(jbxx.proid);
$("#bdcdyh").val(jbxx.bdcdyh);
$("#fybh").val(jbxx.fybh);
$("#zl").val(jbxx.zl);
$("#jzmj").val(jbxx.jzmj);
$("#tnmj").val(jbxx.tnmj);
$("#szc").val(jbxx.szc);
$("#zcs").val(jbxx.zcs);
$("#zrzh").val(jbxx.zrzh);
$("#dyh").val(jbxx.dyh);
$("#fjh").val(jbxx.fjh);
$("#tdyt").val(jbxx.tdyt);
$("#fwxz").val(jbxx.fwxz);
$("#fwjg").val(jbxx.fwjg);
$("#tdxz").val(jbxx.tdxz);
$("#tdyt").val(jbxx.tdyt);
$("#fwyt").val(jbxx.fwyt);
$("#fwlx").val(jbxx.fwlx);
$("#cqzh").val(jbxx.cqzh);
$("#xmmc").val(jbxx.xmmc);
$("#chionce").attr("disabled","disabled");
document.getElementById("ywrframe").src="${ctx}/ycsl/ycslGxr/list?proid="+(jbxx.proid)+"&gxrlx=ywr";
//document.ywrframe.location.reload();
}
}
});
}
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,"99",
"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 qlrwinOpen() {
if((jbxx.proid == '' || jbxx.proid == undefined) && '${ycslJbxx.proid}' == ''){
alert("请先填写基本信息!");
return;
}
proid = jbxx.proid;
if('${ycslJbxx.proid}' != ''){
proid = '${ycslJbxx.proid}';
}
//弹出窗口的宽度;
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}/ycsl/ycslGxr/form?proid="+proid,"newwindow","height="+ iHeight+ ",width="+ iWidth+ ",top="+ iTop+ ",left="+ iLeft+ ",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
function setqlxzinfo(qlxz,ywh)
{
$("#qlxz").val(qlxz);
$("#ywhtext").val(ywh);
$("#djxltext").attr("readOnly","true");
}
function setsyqxinfo(syqx)
{
$("#syqx").val(syqx);
}
function setqlrinfo(xg)
{
if(xg == "1"){
document.getElementById("btnOpen").disabled="disabled";
}
}
function closeWindow(){
if(confirm('关闭后数据将无法保存,是否关闭')){
history.go(-1);
}
}
function sjwinOpen() {
var iWidth = 1100;
var iHeight = 600;
var iTop = (window.screen.height - 30 - iHeight) / 2;
var iLeft = (window.screen.width - 10 - iWidth) / 2;
if((jbxx.proid == '' || jbxx.proid == undefined) && '${ycslJbxx.proid}' == ''){
alert("请先填写基本信息!");
return;
}
proid = jbxx.proid;
if('${ycslJbxx.proid}' != ''){
proid = '${ycslJbxx.proid}';
}
//发一个请求看当前是否已经添加过了
$.ajax({
type : "POST",
url : "${ctx}/ycsl/ycslSj/issjed",
cache : false,
data : "proid="+proid,
async : false,
success : function(modelmap) {
var issjed = modelmap.data;
if (issjed == "1") {
alert("已经添加过收件信息了!如需变动,请直接在列表记录里进行修改!");
return;
} else {
window.open("${ctx}/ycsl/ycslSj/form?proid="+proid,"收件信息维护","height="+ iHeight+ ",width="+ iWidth+ ",top="+ iTop+ ",left="+ iLeft+ ",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}
}
});
}
function save(){
var cqly = $("#qszyfstext").val();
console.log(cqly);
if((jbxx.proid == '' || jbxx.proid == undefined) && '${ycslJbxx.proid}' == ''){
alert("请先填写基本信息!");
return;
}
proid = jbxx.proid;
if('${ycslJbxx.proid}' != ''){
proid = '${ycslJbxx.proid}';
}
var ifmWindow = document.getElementById('qlrframe').contentWindow;
var tbLen = $(ifmWindow.document).find("#contentTable").find(
"tbody").find("tr").length;
if (tbLen == 0) {
alert("请确认权利人信息填写完毕!");
return;
}
var successbj = 0;
$.ajax({
type : "POST",
url : "${ctx}/ycsl/ycslGxr/qlrinfoquery",
cache : false,
data : "proid="+proid,
async : false,
success : function(modelmap) {
if (modelmap.data != 1) {
alert("请添加转入方信息!");
return;
}else{
existsZRF();
}
}
});
}
function existsZRF(){
var cqly = $("#qszyfstext").val();
console.log(cqly);
proid = jbxx.proid;
$.ajax({
type : "POST",
url : "${ctx}/ycsl/ycslSj/issjed",
cache : false,
data : "proid="+proid,
async : false,
success : function(modelmap) {
var issjed = modelmap.data;
if (issjed != "1") {
alert("请添加收件信息!");
return;
}
}
});
var trueOrfalse=false;
if($("#fwdj").val() == ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#fwdj");
trueOrfalse=true;
}
if($("#fwzj").val()== ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#fwzj");
trueOrfalse=true;
}
if($("#qszyfstext").val()== ""){
$("<label for='name' class='error'>必填信息</label>").insertAfter("#qszyfstext");
trueOrfalse=true;
}
if(trueOrfalse){return;}
document.inputForms.submit();
}
function caldj(){
var fwzj = $("#fwzj").val();
var mj = $("#jzmj").val();
if(mj != null && mj !=''){
var fwdj = ((parseFloat(fwzj) / parseFloat(mj))).toFixed(2);
$("#fwdj").val(fwdj);
}
}
</script>
</head>
<body>
<form:form id="inputForm" name="inputForms" modelAttribute="ycslJbxx" action="${ctx}/ycsl/ycslJbxx/save" method="post" class="form-horizontal">
<form:hidden path="id" id="id"/>
<form:hidden path="proid" id="proid"/>
<sys:message content="${message}"/>
<fieldset>
<legend>基本信息</legend>
</br>
<table class="table-form">
<tr>
<td class="tit">不动产单元号:</td>
<td><form:input path="bdcdyh" id = "bdcdyh" readOnly="true" htmlEscape="false" maxlength="100" class="input-large "/>
<c:if test="${empty view}">
<input id="button" id="chionce" class="btn btn-primary" type="button" onclick="jbxxwinOpen();" value="基本信息选择"/>
</c:if>
</td>
<td class="tit">房源编号:</td>
<td>
<form:input path="fybh" id = "fybh" readOnly="true" htmlEscape="false" maxlength="100" class="input-large "/>
</td>
<td class="tit">建筑面积</td>
<td>
<form:input path="jzmj" id = "jzmj" readOnly="true" htmlEscape="false" maxlength="100" class="input-large required"/>
</td>
</tr>
<tr>
<td class="tit">套内面积:</td>
<td>
<form:input path="tnmj" id = "tnmj" readOnly="true" htmlEscape="false" maxlength="100" class="input-large required"/>
</td>
<td class="tit">所在层:</td>
<td>
<form:input path="szc" id = "szc" readOnly="true" htmlEscape="false" maxlength="100" class="input-large required"/>
<span class="help-inline"><font color="red">*</font> </span>
</td>
<td class="tit">总层数:</td>
<td>
<form:input path="zcs" id = "zcs" readOnly="true" htmlEscape="false" maxlength="100" class="input-large required"/>
<span class="help-inline"><font color="red">*</font> </span>
</td>
</tr>
<tr>
<td class="tit">自然幢号:</td>
<td>
<form:input id="zrzh" path="zrzh" htmlEscape="false" maxlength="50" readOnly="true" class="input-large"/>
</td>
<td class="tit">单元号:</td>
<td>
<form:input id="dyh" path="dyh" htmlEscape="false" maxlength="200" readOnly="true" class="input-large required"/>
</td>
<td class="tit">房间号:</td>
<td>
<form:input id="fjh" path="fjh" htmlEscape="false" maxlength="200" readOnly="true" class="input-large required"/>
</td>
</tr>
<tr>
<td rowspan="2" class="tit">坐落:</td>
<td rowspan="2">
<form:textarea path="zl" id="zl" htmlEscape="false" readOnly="true" rows="2" maxlength="200" class="input-xlarge required"/>
</td>
<td rowspan="2" class="tit">房屋类型:</td>
<td rowspan="2">
<form:input path="fwlx" id="fwlx" htmlEscape="false" readOnly="true" maxlength="200" class="input-xlarge required"/>
</td>
<td rowspan="2" class="tit">房屋结构:</td>
<td rowspan="2">
<form:input path="fwjg" id="fwjg" htmlEscape="false" readOnly="true" maxlength="200" class="input-xlarge required"/>
</td>
</tr>
<tr>
</tr>
<tr>
<td class="tit">土地性质</td>
<td>
<form:input path="tdxz" id="tdxz" htmlEscape="false" readOnly="true" maxlength="200" class="input-xlarge required"/>
</td>
<td class="tit">土地用途</td>
<td>
<form:input path="tdyt" id="tdyt" htmlEscape="false" readOnly="true" maxlength="200" class="input-xlarge required"/>
</td>
<td class="tit">房屋用途</td>
<td>
<form:input path="fwyt" id="fwyt" htmlEscape="false" readOnly="true" maxlength="200" class="input-xlarge required"/>
</td>
</tr>
<tr>
<td class="tit">房屋性质</td>
<td>
<form:input path="fwxz" id="fwxz" htmlEscape="false" readOnly="true" maxlength="200" class="input-xlarge required"/>
</td>
<td class="tit">产权证号</td>
<td>
<form:input id="cqzh" readOnly="true" path="cqzh" htmlEscape="false" maxlength="20" class="input-large "/>
</td>
<td class="tit">项目名称</td>
<td>
<form:input id="xmmc" readOnly="true" path="xmmc" htmlEscape="false" maxlength="20" class="input-large "/>
</td>
</tr>
<tr>
<td class="tit">房屋单价</td>
<td>
<form:input path="fwdj" id="fwdj" readOnly="true" htmlEscape="false" maxlength="50" class="input-large required"/>
<span class="help-inline">元<font color="red">*</font> </span>
</td>
<td class="tit">房屋总价</td>
<td>
<form:input path="fwzj" id="fwzj" onkeyup="caldj()" htmlEscape="false" maxlength="50" class="input-large required"/>
<span class="help-inline">元<font color="red">*</font> </span>
</td>
<td class="tit">产权来源</td>
<td>
<form:select path="qszyfs" id="qszyfstext" readonly="true" class="input-large required">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('reg_bus_cqly')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
<span class="help-inline"><font color="red">*</font> </span>
</td>
</tr>
</table>
</fieldset>
</br>
<fieldset>
<legend>关系人信息</legend>
<iframe id="ywrframe" name="ywrframe" src="${ctx}/ycsl/ycslGxr/list?proid=${ycslJbxx.proid}&gxrlx=ywr" width="100%" height="200" frameborder="no" border="0" marginwidth="0"
marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</br>
<c:if test="${empty view}">
<div id="zrfxx">
<input id="btnOpen" class="btn btn-primary" style="float:right;" type="button" onclick="qlrwinOpen();" value="转入方信息添加"/>
</div>
</c:if>
<iframe id="qlrframe" name="qlrframe" src="${ctx}/ycsl/ycslGxr/list?proid=${ycslJbxx.proid}&gxrlx=qlr&view=${view}" width="100%" height="200" frameborder="no" border="0" marginwidth="0"
marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</fieldset>
</br>
<fieldset>
<legend>收件信息</legend>
<div>
<input id="btnOpen" class="btn btn-primary" style="float:right;" type="button" onclick="sjwinOpen();" value="收件信息添加"/>
</div>
<iframe id="sjframe" name="sjframe" src="${ctx}/ycsl/ycslSj/list?proid=${ycslJbxx.proid}&view=${view}" width="100%" height="150" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
<br><br>
</fieldset>
<div class="form-actions" align="center">
<c:if test="${empty view}">
<input id="btnSubmit" class="btn btn-primary" type="button" onclick="save()" value="保 存"/>
</c:if>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="javascript:history.go(-1);;"/>
</div>
</form:form>
</body>
</html>