exchangeHouseIntentDetail.jsp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <script type="text/javascript">
  3. var exchangeHouseIntent_detail_load = function(id){
  4. $.ajax({
  5. type: "post",//使用get方法访问后台
  6. dataType: "json",//返回json格式的数据
  7. url: "exchangeHouseIntentAction_findById",//要访问的后台地址
  8. data: "exchangeHouseIntent.id="+id,//要发送的数据
  9. complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
  10. success: function(msg){//msg为返回的数据,在这里做数据绑定
  11. $("#securityPersonIdCard_detail").text(msg.obj.securityPerson.idCard);
  12. $("#securityPersonName_detail").text(msg.obj.securityPerson.name);
  13. $("#securityPersonPhone_detail").text(msg.obj.securityPerson.phone);
  14. $("#securityNum_detail").text(msg.obj.securityPerson.securityNum);
  15. $("#houseAddress_detail").text(msg.obj.house.address);
  16. $("#communitieNames_detail").text(msg.obj.communitieNames);
  17. $("#houseArea_detail").text(msg.obj.house.area);
  18. var garageArea = msg.obj.house.garageAreava;
  19. if(garageArea == null){
  20. garageArea = 0;
  21. }
  22. $("#garageArea_detail").text(garageArea);
  23. $("#exchangeReason_detail").text(msg.obj.exchangeReason);
  24. }
  25. });
  26. }
  27. </script>
  28. <form id="detailExchangeHouseIntentForm" method="post">
  29. <table class="mytable" style="width:100%;">
  30. <tr>
  31. <th colspan="4">换房意向人员登记信息</th>
  32. </tr>
  33. <tr>
  34. <th width="20%">身份证号</th>
  35. <td width="30%">
  36. <span id="securityPersonIdCard_detail" ></span>
  37. </td>
  38. <th width="20%">姓名</th>
  39. <td width="30%">
  40. <span id="securityPersonName_detail" ></span>
  41. </td>
  42. </tr>
  43. <tr>
  44. <th>联系电话</th>
  45. <td>
  46. <span id="securityPersonPhone_detail" ></span>
  47. </td>
  48. <th>保障人口数量</th>
  49. <td >
  50. <span id="securityNum_detail" ></span>
  51. </td>
  52. </tr>
  53. <tr>
  54. <th>房源面积</th>
  55. <td>
  56. <span id="houseArea_detail" ></span>
  57. </td>
  58. <th>车库面积</th>
  59. <td>
  60. <span id="garageArea_detail" ></span>
  61. </td>
  62. </tr>
  63. <tr>
  64. <th>现住房源地址</th>
  65. <td colspan="3">
  66. <span id="houseAddress_detail" ></span>
  67. </td>
  68. </tr>
  69. <tr>
  70. <th>意向房源小区</th>
  71. <td colspan="3">
  72. <span id="communitieNames_detail" ></span>
  73. </td>
  74. </tr>
  75. <tr>
  76. <th >换房原因</th>
  77. <td colspan="3">
  78. <span id="exchangeReason_detail" ></span>
  79. </th>
  80. </tr>
  81. </table>
  82. </form>