0ceb9a60ec430213a938c1b689527d0664159f00.svn-base 7.18 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 src="${ctxStatic}/select3/Area.js" type="text/javascript"></script>
	<script src="${ctxStatic}/select3/AreaData_min.js" type="text/javascript"></script>
	<script type="text/javascript">
		
		$(document).ready(function() {
			$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					document.getElementById("btnSubmit").disabled="disabled";
					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);
					}
				}
			});
			$("#ldsyqxztext").attr("readOnly","true");
			$("#lztext").attr("readOnly","true");
			$("#qytext").attr("readOnly","true");
			$("#yttext").attr("readOnly","true");
		});
		
		function select2_tdsyq(tdsyqValue){
			$("#ldsyqxztext").data('select2').val([tdsyqValue]);
		}
		function select2_tdyt(yttextValue){
			$("#yttext").data('select2').val([yttextValue]);
		}
		
		function winOpen() {
			//弹出窗口的宽度; 
			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/base/regBaseSllm/lqList","zddmwindow",
					"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
		}
		
	</script>
	<style>
		.otable-form{width:100%;border-color:#dddddd;border:1px solid #ddd;}
		.otable-form,.table-form td{background-color:#fdfdfd;padding:2px;}
		.otable-form td.tit{background:#fafafa;text-align:right;padding-right:3px;white-space:nowrap;}
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="#">森林、林木基本信息</a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="regBaseSllm" action="${ctx}/reg/base/regBaseSllm/sllmDivisionSave?YWH=${YWH}&oldywid=${oldywid}&DJLX=${DJLX}&OldSllmId=${OldSllmId}&optype=${optype}&retur=${views}"  method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>
		<fieldset>
			<c:if test="${empty views}">
				<input id="btnChoice" class="btn btn-primary" type="button" value="请选择森林林木信息" onclick="javascript:winOpen();"/>
				<br/><br/>
			</c:if>
			<table class="table-form" >
				<tr>
					<td class="tit">宗地代码:</td>
					<td><form:input path="zddm" id="zddmtext" value="${regBaseSllm.zddm}" readOnly="true" htmlEscape="false" maxlength="19" class="input-large required"/>
						<span class="help-inline"><font color="red">*</font> </span>
					<td class="tit">编码:</td>
					<td>
						<c:if test="${empty regBaseSllm.id}">
						<form:input path="lmbm" htmlEscape="false" id="bsmtext" value="${LMBM}" readOnly="true" class="input-large digits" maxlength="10"/>
						</c:if>
						<c:if test="${not empty regBaseSllm.id}">
						<form:input path="lmbm" htmlEscape="false" id="bsmtext" readOnly="true" class="input-large digits" maxlength="26"/>
						</c:if>
					</td>
				</tr>
				<tr>
					<td class="tit">使用权面积:</td>
					<td><form:input path="syqmj" id="syqmjtext" htmlEscape="false" readOnly="true" class="input-large  number required"/><font size="4"></font>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">林地所有权性质:</td>
					<td><form:select path="ldsyqxz" id="ldsyqxztext" class="input-large ">
						<form:options items="${fns:getDictList('reg_bus_tdsyqdm')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select></td>
				</tr>
				<tr>
					<td class="tit">要素代码:</td>
					<td><form:input path="ysdm" id="ysdmtext"  value="2001040000" readOnly="true" htmlEscape="false" maxlength="10" class="input-large"/></td>
					<td class="tit">不动产单元号:</td>
					<td><form:input path="bdcdyh" id="bdcdyhtext" htmlEscape="false" readOnly="true" maxlength="28" class="input-large required"/>
					<span class="help-inline"><font color="red">*</font> </span></td>
				</tr>
				<tr>
					<td class="tit">坐落:</td>
					<td><form:input path="zl" id="zltext" readOnly="true" htmlEscape="false" maxlength="10" class="input-large"/></td>
					<td class="tit">用途:</td>
					<td><form:select path="yt" id="yttext" htmlEscape="false" readOnly="true" maxlength="28" class="input-large">
						<form:options items="${fns:getDictList('reg_bus_tdyt')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select></td>
				</tr>
				<tr>
					<td class="tit">主要树种:</td>
					<td><form:input path="zysz" id="zysztext" htmlEscape="false"  maxlength="30" class="input-large"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">株数:</td>
					<td><form:input path="zs" id="zstext" htmlEscape="false" maxlength="10"  class="input-large digits required"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<td class="tit">林种:</td>
					<td><form:select path="lz" id= "lztext" class="input-large ">
						<form:options items="${fns:getDictList('reg_bus_lz')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select></td>
					<td class="tit">起源:</td>
					<td><form:select path="qy" id="qytext" class="input-large ">
						<form:options items="${fns:getDictList('reg_bus_qy')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select></td>
				</tr>
				<tr>
					<td class="tit">林班:</td>
					<td><form:input path="lb" id="lbtext" htmlEscape="false" rows="2" maxlength="50" class="input-large "/>
					<span class="help-inline"><font color="red">*</font> </span></td>
					<td class="tit">小班:</td>
					<td><form:input path="xb" id="xbtext" htmlEscape="false" maxlength="50" class="input-large "/>
					<span class="help-inline"><font color="red">*</font> </span></td>
				</tr>
				<tr>
					<td class="tit">小地名:</td>
					<td><form:input path="xdm" id="xdmtext" htmlEscape="false" rows="2" maxlength="50" class="input-large "/>
					<span class="help-inline"><font color="red">*</font> </span></td>
					<td class="tit">造林年度:</td>
					<td><form:input path="zlnd" id="zlndtext" htmlEscape="false" maxlength="4" class="input-large digits required"/>
					<span class="help-inline"><font color="red">*</font> </span></td>
				</tr>
			</table>
		</fieldset>
		<div class="form-actions">
			<shiro:hasPermission name="reg:base:regBaseZdjbxx:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="javascript:window.close();"/>
		</div>
	</form:form>
</body>
</html>