00ec3508291c87fa527b1b7067cba4367b7351a1.svn-base 6.06 KB
<%@ 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() {
			$("#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);
					}
				}
			});
			views();
		});
		
		window.onload = function() { 
			var ywh = window.opener.getywh();
			$("#txtYwh").val(ywh);
			var qlrm = window.opener.getqlr();
			var zjh = window.opener.getzjh();
			$("#txtQlrmc").val(qlrm);
			$("#txtZjh").val(zjh);
		};
	
		function views(){
			var viewid = "${VIEWS}";
			if(viewid == undefined || viewid == null || viewid ==""){
				return;
			}
			$("input:not(:button,:submit,:hidden),select,textarea").attr("disabled","disabled");
		}
		
		function zyhsave(){
			var txtYwh = $("#txtYwh").val();
			var txtygYwh = $("#txtygYwh").val();
			var txtBdcdyh = $("#txtBdcdyh").val();
			var txtZddm= $("#txtZddm").val();
			var txtBdcqzh = $("#txtBdcqzh").val();
			var txtQlrmc = $("#txtQlrmc").val();
			var txtGyqk = $("#txtGyqk").val();
			var qllxtext = $("#qllxtext").val();
			var qlxztext = $("#qlxztext").val();
			var txtMj = $("#txtMj").val();
			var txtYt = $("#txtYt").val();
			var remarks = $("#remarks").val();
			var ygid = window.opener.getygid();
			var jid = window.opener.getjid();
			var scbj = "0";
			$.ajax({ 
				type:"POST", //请求方式 
				url:"${ctx}/reg/bus/regBusBdcqzsdjxx/yghsave", //请求路径 
				cache: false,   //(默认: true,dataType为script和jsonp时默认为false) jQuery 1.2 新功能,设置为 false 将不缓存此页面。 
				data:"ywh="+txtygYwh+"&xywh="+txtYwh+"&ygid="+ygid+"&scbj="+scbj+"&jid="+jid
						+"&bdcdyh="+txtBdcdyh+"&zddm="+txtZddm+"&bdcqzh="+txtBdcqzh+"&qlrmc="+txtQlrmc+"&gyqk="+txtGyqk+"&qllx="+
						qllxtext+"&qlxz="+qlxztext+"&Mj="+txtMj+"&Yt="+txtYt+"&remarks="+remarks,  //传参 
				dataType: "html",   //返回值类型       使用json的话也可以,但是需要在JS中编写迭代的html代码,如果格式样式复杂的话还是用html返回类型好 
				success:function(data){
					alert("预告转移信息已成功变更!");
					window.opener.document.qlrframe.location="${ctx}/reg/bus/regBusQlr/list?ywh="+txtYwh;
					if(opener){
						window.close();
						window.opener.zyDoAfterDialog(txtYwh);
					}
				}
			});
		}
	</script>
</head>
<body>

	<form:form id="inputForm" modelAttribute="regBusBdcqzsdjxx"  action="#"  method="post" class="form-horizontal">
		<form:hidden id="txtId"  path="id"/>
		<sys:message content="${message}"/>
		<table class="table-form">
		<br/><tr> <span  class="help-inline"><font size="5" color="red">房屋建筑物所有权转移预告信息</font> </span> </tr><br/>
			<tr>
				<td class="tit" >当前业务号</td>
				<td><form:input id="txtYwh" readonly="true" path="ywh" htmlEscape="false"
						maxlength="20" class="input-large " /></td>
				<td class="tit" >已预购房屋业务号</td>
				<td ><form:input id="txtygYwh" readonly="true" path="ywh" htmlEscape="false"
						maxlength="20" class="input-large " /></td>
				<td class="tit">不动产单元号</td>
				<td><form:input id="txtBdcdyh" path="bdcdyh" readonly="true"
						htmlEscape="false" maxlength="28" class="input-large" />
				</td>
			</tr>
			</div>
			<tr>
				<td class="tit" >宗地代码</td>
				<td ><form:input id="txtZddm" path="zddm" htmlEscape="false" readonly="true"
						maxlength="20" class="input-large " /></td>
				<td class="tit">不动产权证号</td>
				<td><form:input id="txtBdcqzh" path="bdcqzh" readonly="true"
						htmlEscape="false" maxlength="28" class="input-large" />
				</td>
				<td class="tit">权利人</td>
				<td><form:input id="txtQlrmc" path="qlrmc" readonly="true"
					htmlEscape="false" maxlength="28" class="input-large" />
				</td>
			</tr>
			
			<tr>

				<td class="tit">证件号</td>
				<td><form:input id="txtZjh" path="remarks" readonly="true"
					htmlEscape="false" maxlength="28" class="input-large" />
				</td>
				<td class="tit">权利人类型</td>
					<td><form:select path="qllx" id="qllxtext" class="input-medium" >
							<form:option value="" label="" />
							<form:options  items="${fns:getDictList('reg_bus_qlrlx')}"
								itemLabel="label" itemValue="value" htmlEscape="false" />
						</form:select><span  class="help-inline"><font  color="red">*</font> </span> 
				</td>
				<td class="tit">权利性质</td>
				<td><form:select path="qlxz" id="qlxztext"  class="input-medium ">
							<form:option value="" label="" />
							<form:options items="${fns:getDictList('reg_bus_qlxz')}"
								itemLabel="label" itemValue="value" htmlEscape="false" />
					</form:select><font  color="red">*</font> </span> 
				</td>
			</tr>

			<tr>
				<td class="tit" >共有情况</td>
				<td ><form:input id="txtGyqk" path="gyqk" htmlEscape="false" readonly="true"
						maxlength="20" class="input-large " /></td>
				<td class="tit" >用途</td>
				<td ><form:input id="txtYt" path="yt" htmlEscape="false" readonly="true"
						maxlength="20" class="input-large " /></td>
				<td class="tit">备注</td>
					<td colspan="4">
						<textarea id="remarks" name="remarks" style="width:350px" maxlength="300" class="input-xxlarge " rows="4"></textarea>
				</td>
			</tr>
			
		</table>
		<div class="form-actions" align="center">
			<c:if test="${empty VIEWS}">
				<shiro:hasPermission name="reg:bus:regBusBdcqzsdjxx:edit">
					<input id="button" class="btn btn-primary" type="button" onclick="zyhsave();" value="保 存"/>&nbsp;&nbsp;&nbsp;&nbsp;</shiro:hasPermission>
			</c:if>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="javascript:window.close();"/>
		</div>
	</form:form>
</body>
</html>