houseAdd.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="s" uri="/struts-tags" %>
  3. <form id="addHouseForm" method="post">
  4. <div class="easyui-tabs" id="tabs">
  5. <div title="房源信息" id="fyxx">
  6. <table class="mytable" style="width: 100%;">
  7. <tr>
  8. <th width="20%">小区名称</th>
  9. <td width="80%" colspan="3">
  10. <select id="qx_add" style="width:100px;" onchange="changeCommunityName()">
  11. <option value="">全部</option>
  12. </select>
  13. <input type="hidden" id="communityName_add" name="house.communityName">
  14. <input id="communityId_add" name="house.community.id">
  15. </td>
  16. </tr>
  17. <tr>
  18. <th>居住地点</th>
  19. <td colspan="3">
  20. <input class="easyui-validatebox" required="true" id="no_add" style="width:100px;" name="house.no">幢
  21. <input class="easyui-validatebox" required="true" id="houseNumber_add" style="width:100px;" name="house.houseNumber">室
  22. </td>
  23. </tr>
  24. <tr>
  25. <th width="20%">房屋面积</th>
  26. <td width="30%">
  27. <input class="easyui-numberbox" data-options="required:true" name="house.area" precision="2" style="width:100px">
  28. </td>
  29. <th width="20%">车库面积</th>
  30. <td width="30%">
  31. <input class="easyui-numberbox" data-options="required:true" name="house.garageArea" precision="2" style="width:100px">
  32. </td>
  33. </tr>
  34. <tr>
  35. <th>户型</th>
  36. <td>
  37. <select id="roomType_add" name="house.roomType" class="easyui-validatebox" required="true" style="width:100px">
  38. <option value="">请选择</option>
  39. </select>
  40. </td>
  41. <th>是否现房</th>
  42. <td>
  43. <select id="isExistHouse_add" name="house.isExistHouse" class="easyui-validatebox" required="true" style="width:100px">
  44. <option value="">请选择</option>
  45. </select>
  46. </td>
  47. </tr>
  48. <tr>
  49. <th>水卡卡号</th>
  50. <td>
  51. <input class="easyui-validatebox" required="true" name="house.waterCardNum" style="width:100px">
  52. </td>
  53. <th>电卡卡号</th>
  54. <td>
  55. <input class="easyui-validatebox" required="true" name="house.electricCardNum" style="width:100px">
  56. </td>
  57. </tr>
  58. <tr>
  59. <th>天然气卡卡号</th>
  60. <td>
  61. <input class="easyui-validatebox" required="true" name="house.gasCardNum" style="width:100px">
  62. </td>
  63. <th>房源状态</th>
  64. <td>
  65. <select id="status_add" name="house.status" class="easyui-validatebox" required="true">
  66. <option value="0">未租</option>
  67. <option value="1">已配租</option>
  68. <option value="2">预配租</option>
  69. </select>
  70. </td>
  71. </tr>
  72. <tr>
  73. <th>交房日期</th>
  74. <td>
  75. <input class="easyui-datebox" name="house.deliveryDate" data-options="onSelect:onSelect" id="deliveryDate_add">
  76. </td>
  77. <th>开发商维修截止日期</th>
  78. <td>
  79. <input class="easyui-datebox" name="house.developerDeadline" id="developerDeadline_add" readonly="readonly">
  80. </td>
  81. </tr>
  82. <tr>
  83. <th>市场租金<br />(元/㎡•月)</th>
  84. <td><input class="easyui-numberbox" required="true" type="text" id="marketRent_add" name="house.marketRent" precision="2"></td>
  85. </tr>
  86. <tr>
  87. <th>备注</th>
  88. <td colspan="3">
  89. <textarea rows="5" cols="" style="width: 100%" id="remark_add" name="house.remark"></textarea>
  90. </td>
  91. </tr>
  92. </table>
  93. </div>
  94. </div>
  95. </form>
  96. <script type="text/javascript">
  97. <!--
  98. $(function(){
  99. $('#qx_add').combobox({
  100. url: whzl.basePath + '/houseRegisterAction_listChildrenCombobox',
  101. valueField:'value',
  102. textField:'text',
  103. onChange:function (newValue,oldValue) {
  104. $('#communityId_add').combobox("setValue","");
  105. $('#communityId_add').combobox('reload',whzl.basePath + '/communityAction_findAll?community.area='+$('#qx_add').combobox("getValue"));
  106. }
  107. });
  108. $('#communityId_add').combobox({
  109. url: whzl.basePath + '/communityAction_findAll',
  110. valueField:'value',
  111. textField:'text',
  112. filter:function(q,row){
  113. var opts=$(this).combobox("options");
  114. return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
  115. }
  116. });
  117. });
  118. //-->
  119. </script>