45c5d03b941bfd6b5a532230362e74a76034c536.svn-base
3.14 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
<%@ 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() {
});
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
function implpinfo(){
document.getElementById("submitButton").disabled = "disabled";
var zbh = $("#zbhtext").val();
var fybh = $("#fybhtext").val();
var zt = $("#zttext").val();
if(zbh == "" || zbh == null){
alert("幢序号不能为空!!!");
document.getElementById("submitButton").disabled = "";
return;
}
if(zt == "" || zt == null || zt == 1 || zt == 4){
alert("目前仅支持期房与现房导入!!!");
document.getElementById("submitButton").disabled = "";
return;
}
if(confirm('是否确认导入该楼栋信息?')){
$.ajax({
type:"POST",
url:"${ctx}/reg/base/regBaseH/implpsave",
cache: false,
data:"zbh="+zbh+"&fybh="+fybh+"&zt="+zt,
async : false,
success:function(modelmap){
successbj = modelmap.success;
if(modelmap.success == 0){
alert("导入成功");
url = "${ctx}/reg/base/regBaseH/ycslh?cx=1&zbh="+zbh;
window.location.href=url;
// window.close();
}else{
alert(modelmap.msg + "导入失败");
document.getElementById("submitButton").disabled = "";
return;
}
}
});
} else {
document.getElementById("submitButton").disabled = "";
}
}
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/reg/base/regBaseH/ycslh">户信息列表</a></li>
<li class="active"><a href="#">楼盘信息导入</a></li>
</ul>
<form:form id="searchForm" modelAttribute="regBaseH" action="${ctx}/reg/base/regBaseH/getlpinfo" method="post" class="breadcrumb form-search">
<fieldset>
<legend>基础信息</legend>
<table class="table-form">
<tr>
<td>幢序号:</td>
<td>
<form:input path="zbh" id="zbhtext" htmlEscape="false" maxlength="28" class="input-medium"/>
<span class="help-inline"><font color="red">*</font> </span>
</td>
<td> 房屋序号:</td>
<td>
<form:input path="fybh" id="fybhtext" htmlEscape="false" maxlength="10" class="input-medium"/>
</td>
<td> 是否现房:</td>
<td><form:select path="zt" class="input-mini required" id="zttext">
<form:option value="" label=""/>
<form:option value="2" label="期房" htmlEscape="false"/>
<form:option value="3" label="现房" htmlEscape="false"/>
<%-- <form:options items="${fns:getDictList('reg_bus_jzwzt')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
</form:select><span class="help-inline"><font color="red">*</font> </span></td>
<td> <input id="submitButton" class="btn btn-primary" type="button" value="确定导入" onclick="implpinfo()"></td>
</tr>
</table>
</fieldset>
</form:form>
</body>
</html>