yaohaoItemSelectList.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <script>
  3. /**小区名称*/
  4. var yaohaoItem_communityNameFormatter = function(value , row , index){
  5. return row.house.communityName ;
  6. };
  7. /**居住地点*/
  8. var yaohaoItem_addressFormatter = function(value , row , index){
  9. return row.house.address ;
  10. };
  11. /**房号*/
  12. var yaohaoItem_houseNumberFormatter = function(value , row , index){
  13. return row.house.houseNumber ;
  14. };
  15. /**面积*/
  16. var yaohaoItem_areaFormatter = function(value , row , index){
  17. return row.house.area ;
  18. };
  19. /**人员名称*/
  20. var yaohaoItem_nameFormatter = function(value , row , index){
  21. return row.securityPerson.name ;
  22. };
  23. /**身份证号*/
  24. var yaohaoItem_idCardFormatter = function(value , row , index){
  25. return row.securityPerson.idCard ;
  26. };
  27. var select_load = function(){
  28. $('#yaohaoItemSelectDataGrid').datagrid({
  29. rownumbers:true,
  30. fit:true,
  31. fitColumns:false,
  32. border:false,
  33. sortOrder:'desc',
  34. url:whzl.basePath + '/yaohaoAction_listYaohaoItemByYaohaoId?yaohaoItem.yaohaoItemState=1',
  35. checkOnSelect:true,
  36. selectOnCheck:true,
  37. singleSelect:true,
  38. nowrap:true,
  39. loadFilter:function(result){
  40. if(result.success){
  41. return result.obj;
  42. }else{
  43. return ;
  44. }
  45. }
  46. });
  47. }
  48. /**查询*/
  49. function yaohaoItemSearchFun(){
  50. var params = encodeURI("yaohaoItem.house.address="+trim($('#houseAddress').val())+
  51. "&yaohaoItem.securityPerson.name="+trim($('#securityPersonName').val()) +
  52. "&yaohaoItem.securityPerson.idCard="+trim($('#securityPersonIdCard').val()));
  53. $('#yaohaoItemSelectDataGrid').datagrid({url:whzl.basePath + '/yaohaoAction_listYaohaoItemByYaohaoId?yaohaoItem.yaohaoItemState=1&'+params});
  54. }
  55. var select_submit = function(){
  56. var yaohaoItemId = "";
  57. $("input[name='id']:checkbox").each(function(){
  58. if($(this).attr("checked")){
  59. yaohaoItemId = $(this).val() ;
  60. }
  61. });
  62. return yaohaoItemId;
  63. }
  64. </script>
  65. <div class="easyui-layout" data-options="fit:true,border:false">
  66. <div data-options="region:'center',border:false">
  67. <div id="searchtoolHouse" data-options="region:'north',border:false">
  68. <div class="clear"></div>
  69. <table id="tblQuery" style="width:100%;">
  70. <tr>
  71. <td align="right" style="width: 70px;">
  72. <span>租房人名称</span>
  73. </td>
  74. <td style="width: 120px;">
  75. <input id="securityPersonName" type="text" style="width: 100px;"/>
  76. </td>
  77. <td align="right" style="width: 70px;">
  78. <span>租房人身份证号码</span>
  79. </td>
  80. <td style="width: 120px;">
  81. <input id="securityPersonIdCard" type="text" style="width: 100px;"/>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td align="right" style="width: 70px;">
  86. <span>租房地址</span>
  87. </td>
  88. <td style="width: 120px;">
  89. <input id="houseAddress" type="text" style="width: 100px;"/>
  90. </td>
  91. <td colspan = "2" >
  92. <a href="javascript:yaohaoItemSearchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
  93. <a href="javascript:yaohaoItemClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
  94. </td>
  95. </tr>
  96. </table>
  97. <div class="clear"></div>
  98. </div>
  99. <table id="yaohaoItemSelectDataGrid" >
  100. <thead frozen="true">
  101. <tr><th data-options="field:'id',checkbox:true,width:30">ID</th>
  102. </tr>
  103. </thead>
  104. <thead>
  105. <tr>
  106. <th data-options="field:'name',align:'center',sortable:true,width:80,formatter:yaohaoItem_nameFormatter">姓名</th>
  107. <th data-options="field:'idCard',align:'center',sortable:true,width:180,formatter:yaohaoItem_idCardFormatter">身份证<br/>号码</th>
  108. <th data-options="field:'communityName',width:100,formatter:yaohaoItem_communityNameFormatter">小区名称</th>
  109. <th data-options="field:'address',width:200,formatter:yaohaoItem_addressFormatter">居住地点</th>
  110. <th data-options="field:'houseNumber',width:40,formatter:yaohaoItem_houseNumberFormatter">房号</th>
  111. <th data-options="field:'area',width:60,formatter:yaohaoItem_areaFormatter">面积</th>
  112. </tr>
  113. </thead>
  114. </table>
  115. </div>
  116. </div>