1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
- <jsp:include page="../../common/include.jsp" />
- <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
- <%@taglib prefix="s" uri="/struts-tags" %>
- <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <script type="text/javascript">
- /* $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "leaseContractAction_findById",//要访问的后台地址
- data:{"leaseContract.id":${leaseContract.id} },
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- $("#contractNo").text(msg.obj.contractNo);
- $("#securityPersonName").text(msg.obj.securityPerson.name);
- $("#houseAddress").text(msg.obj.houseAddress);
- $("#houseArea").text(new Number(msg.obj.houseArea).toFixed(2));
- $("#garageArea").text(new Number(msg.obj.garageArea).toFixed(2));
- $("#houseMoney").text(new Number(msg.obj.housePrice * msg.obj.houseArea).toFixed(2));
- $("#houseReduce").text(new Number((msg.obj.housePrice-msg.obj.protectPrice) * 24 * msg.obj.securityNum).toFixed(2));
- $("#moneyActual").text(new Number(msg.obj.moneyActual).toFixed(2));
- $("#garageMoney").text(new Number(msg.obj.garagePrice * msg.obj.garageArea).toFixed(2));
- $("#moneyActual12").text(new Number(msg.obj.moneyActual * 12).toFixed(2));
-
- if(msg.obj.startDate != null){
- $("#startDate").text(msg.obj.startDate.substring(0,10));
- }
- if(msg.obj.endDate != null){
- $("#endDate").text(msg.obj.endDate.substring(0,10));
- }
- }
- }
- });
- */
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "exchangeHouseAction_findById",//要访问的后台地址
- data:{"exchangeHouse.id":${exchangeHouse.id} },
- success: function(msg){
- if(msg.success){
- $("#securityPerson1.name").text(msg.obj.securityPerson1.name);
- }
- }
- });
- </script>
- ${templet.content }
|