469b1369ffcd9e2c96ba81590f30c24b3ca56c12.svn-base 10.9 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() {
			//$("#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);
					}
				}
			});
			views();
		});
		function views(){
			var viewid = "${VIEWS}";
			if(viewid == undefined || viewid == null || viewid ==""){
				return;
			}
			$("input:not(:button,:submit,:hidden),select,textarea").attr("disabled","disabled");
		}
		function getUrl(){
			var optype = "${optype}";
			var url = "";
			if (optype != undefined && optype != null && optype != "") {
				var zzsl = $("#zzsl").val();
				var yszzje = $("#yszzje").val();
				var sszzje = $("#sszzje").val();
				var fzzsl = $("#fzzsl").val();
				var ysfzzje = $("#ysfzzje").val();
				var ssfzzje = $("#ssfzzje").val();
				var jbzzsl = $("#jbzzsl").val();
				var ysjbzzje = $("#ysjbzzje").val();
				var ssjbzzje = $("#ssjbzzje").val();
				var jbfzzsl = $("#jbfzzsl").val();
				var ysjbfzzje = $("#ysjbfzzje").val();
				var ssjbfzzje = $("#ssjbfzzje").val();
				var gyrsl = $("#gyrsl").val();
				var ysgbf = $("#ysgbf").val();
				var ssgbf = $("#ssgbf").val();
				var str = "&zzsl="+zzsl+"&yszzje="+yszzje+"&sszzje="+sszzje+"&fzzsl="+fzzsl+"&ysfzzje="+ysfzzje+"&ssfzzje="+ssfzzje
							+"&jbzzsl="+jbzzsl+"&ysjbzzje="+ysjbzzje+"&ssjbzzje="+ssjbzzje
							+"&jbfzzsl="+jbfzzsl+"&ysjbfzzje="+ysjbfzzje+"&ssjbfzzje="+ssjbfzzje
							+"&gyrsl="+gyrsl+"&ysgbf="+ysgbf+"&ssgbf="+ssgbf;
			} else {
				var str = "&zzsl=${zzsl}&yszzje=${zzje}&sszzje=${zzje}&fzzsl=${fzzsl}&ysfzzje=${fzzje}&ssfzzje=${fzzje}"
					+"&jbzzsl=${jbzzsl}&ysjbzzje=${jbzzje}&ssjbzzje=${jbzzje}"
					+"&jbfzzsl=${jbfzzsl}&ysjbfzzje=${jbfzzje}&ssjbfzzje=${jbfzzje}"
					+"&gyrsl=${gyrsl}&ysgbf=${gbf}&ssgbf=${gbf}";
			}
			url = "${ctx}/reg/bus/regBusSf/sfsave?slsq=${slsq}&tzrxm=${tzrxm}&djlx=${djlx}"+str;
			$("#inputForm").attr("action", url);
		}
	</script>
</head>
<body>
	<ul id="regBusSfFrom" class="nav nav-tabs">
		<li><a href="${ctx}/reg/bus/regBusSf/"  data-toggle="tab">收费信息列表</a></li>
		<li class="active"><a href="#" data-toggle="tab">收费信息${not empty regBusSf.id?'修改':'添加'}</a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="regBusSf" action="#" method="post" onsubmit="getUrl()" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<iframe id="sfframe" name="sfframe"
		 src="${ctx}/reg/bus/regBusSf/sfwhCkChoiceForm?YWH=${ywh}&djlx=${djlx}"
	 			width="100%" height="320" frameborder="no" border="0" marginwidth="0" marginheight="0" 
	 			scrolling="no" allowtransparency="yes">
	 	</iframe>
		<fieldset>
		<legend>收费信息</legend>
			<table class="table-form">
				<tr>
					<td class="tit">业务号</td>
					<td><form:input path="ywh" htmlEscape="false" readonly="true" value="${YWH}" maxlength="20" class="input-xlarge "/></td>
					<td class="tit">要素代码</td>
					<td><form:input path="ysdm" htmlEscape="false" readonly="true" value="6004040000" maxlength="20" class="input-xlarge "/></td>
					<td class="tit">计费日期</td>
					<td>
						<!-- 更新 -->
						<c:if test="${not empty regBusSf.id}">
							<input name="jfrq" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
								value="<fmt:formatDate value="${regBusSf.jfrq}" pattern="yyyy-MM-dd"/>"
								onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
						</c:if>
						<!-- 新增 -->
						<c:if test="${empty regBusSf.id}">
							<input name="jfrq" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
								value="${fns:getDate('yyyy-MM-dd')}"
								onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
						</c:if>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr>
				<tr>
					<td class="tit">计费人员</td>
					<td>
						<form:input path="jfry" value="${NAME }" htmlEscape="false" maxlength="50" class="input-xlarge required"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">收费人员</td>
					<td><form:input path="sfry" value="${NAME }" htmlEscape="false" maxlength="50" class="input-xlarge required"/></td>
					<td class="tit">收费日期</td>
					<td>
						<!-- 更新 -->
						<c:if test="${not empty regBusSf.id}">
							<input name="sfrq" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
								value="<fmt:formatDate value="${regBusSf.sfrq}" pattern="yyyy-MM-dd"/>"
								onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
						</c:if>
						<!-- 新增 -->
						<c:if test="${empty regBusSf.id}">
							<input name="sfrq" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
								value="${fns:getDate('yyyy-MM-dd')}"
								onclick="WdatePicker({dateFmt:'yyyy-MM-dd' });"/>
						</c:if>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
				</tr> 
				<tr>
					<td class="tit">付费方</td>
					<td>
						<form:select path="fff" class="input-xlarge " >
							<form:option value="2" label="乙方"/>
							<form:options items="${fns:getDictList('reg_bus_fffs')}" itemLabel="label" itemValue="value" htmlEscape="false" />
						</form:select>
					</td>
					<td class="tit">实际付费人</td>
					<td>
						<form:input path="sjffr" value="${tzrxm }" htmlEscape="false" maxlength="50" class="input-xlarge required"/>
						<span class="help-inline"><font color="red">*</font> </span>
					</td>
					<td class="tit">收费单位</td>
					<td>
						<form:input path="sfdw" value="不动产登记交易服务中心" readonly="true" htmlEscape="false" maxlength="50" class="input-xlarge "/>
					</td>
				</tr>
				<tr>
					<td class="tit">备注信息</td>
					<td colspan="5">
						<form:textarea path="remarks" htmlEscape="false" rows="2" maxlength="255" class="input-xxlarge "/>
					</td>
				</tr>   
			</table>
		</fieldset>
		<fieldset>
			<legend>收费详细信息</legend>
		<br> 
		<div class="controls">
			<table id="contentTable" class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>收费科目名称</th> 
						<th>收费基数</th>
						<th>收费类型</th>
						<th>应收金额</th> 
						<th>实收金额</th>
					</tr>
				</thead>
				<tbody id="regBusSfSubList">
					<c:if test="${empty optype}">
						<tr>
							<td>登记费(住宅)</td>
							<td id="insertzzsl">${zzsl}</td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td id="insertzzje">${zzje}</td>
							<td id="insertzzje">${zzje}</td>
						</tr>
						<tr>
							<td>登记费(非住宅)</td>
							<td id="insertfzzsl">${fzzsl}</td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td id="insertfzzje">${fzzje}</td>
							<td id="insertfzzje">${fzzje}</td>
						</tr>
						<tr>
							<td>减半登记费(住宅)</td>
							<td id="insertjbzzsl">${jbzzsl}</td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td id="insertjbzzje">${jbzzje}</td>
							<td id="insertjbzzje">${jbzzje}</td>
						</tr>
						<tr>
							<td>减半登记费(非住宅)</td>
							<td id="insertjbfzzsl">${jbfzzsl}</td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td id="insertjbfzzje">${jbfzzje}</td>
							<td id="insertjbfzzje">${jbfzzje}</td>
						</tr>
						<tr>
							<td>工本费</td>
							<td id="insertgyrsl">${gyrsl}</td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td id="insertgbf">${gbf}</td>
							<td id="insertgbf">${gbf}</td>
						</tr>
					</c:if>
					<c:if test="${not empty optype}">
						<tr>
							<td>登记费(住宅)</td>
							<td><input id="zzsl" name="zzsl" type="text" value="${zzsl}" class="input-small number required"/></td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td><input id="yszzje" name="zzje" type="text" value="${yszzje}" class="input-small number required"/></td>
							<td><input id="sszzje" name="zzje" type="text" value="${sszzje}" class="input-small number required"/></td>
						</tr>
						<tr>
							<td>登记费(非住宅)</td>
							<td><input id="fzzsl" name="fzzsl" type="text" value="${fzzsl}" class="input-small number required"/></td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td><input id="ysfzzje" name="fzzje" type="text" value="${ysfzzje}" class="input-small number required"/></td>
							<td><input id="ssfzzje" name="fzzje" type="text" value="${ssfzzje}" class="input-small number required"/></td>
						</tr>
						<tr>
							<td>减半登记费(住宅)</td>
							<td><input id="jbzzsl" name="jbzzsl" type="text" value="${jbzzsl}" class="input-small number required"/></td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td><input id="ysjbzzje" name="jbzzje" type="text" value="${ysjbzzje}" class="input-small number required"/></td>
							<td><input id="ssjbzzje" name="jbzzje" type="text" value="${ssjbzzje}" class="input-small number required"/></td>
						</tr>
						<tr>
							<td>减半登记费(非住宅)</td>
							<td><input id="jbfzzsl" name="jbfzzsl" type="text" value="${jbfzzsl}" class="input-small number required"/></td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td><input id="ysjbfzzje" name="jbfzzje" type="text" value="${ysjbfzzje}" class="input-small number required"/></td>
							<td><input id="ssjbfzzje" name="jbfzzje" type="text" value="${ssjbfzzje}" class="input-small number required"/></td>
						</tr>
						<tr>
							<td>工本费</td>
							<td><input id="gyrsl" name="gyrsl" type="text" value="${gyrsl}" class="input-small number required"/></td>
							<td>${fns:getDictLabel('1', 'reg_bus_sflx', '')}</td>
							<td><input id="ysgbf" name="gbf" type="text" value="${ysgbf}" class="input-small number required"/></td>
							<td><input id="ssgbf" name="gbf" type="text" value="${ssgbf}" class="input-small number required"/></td>
						</tr>
					</c:if>
				</tbody>
			</table>
		</div>
		</fieldset>
		<div class="form-actions">
			<c:if test="${empty VIEWS}">
				<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;
			</c:if>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
 	<script>
	   $(function () {
	      $('#regBusSfFrom li:eq(1) a').tab('show');
	   });
	</script>
</body>
</html>