123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <script>
- /**小区名称*/
- var yaohaoItem_communityNameFormatter = function(value , row , index){
- return row.house.communityName ;
- };
-
- /**居住地点*/
- var yaohaoItem_addressFormatter = function(value , row , index){
- return row.house.address ;
- };
-
- /**房号*/
- var yaohaoItem_houseNumberFormatter = function(value , row , index){
- return row.house.houseNumber ;
- };
-
- /**面积*/
- var yaohaoItem_areaFormatter = function(value , row , index){
- return row.house.area ;
- };
-
- /**人员名称*/
- var yaohaoItem_nameFormatter = function(value , row , index){
- return row.securityPerson.name ;
- };
-
- /**身份证号*/
- var yaohaoItem_idCardFormatter = function(value , row , index){
- return row.securityPerson.idCard ;
- };
-
- var select_load = function(){
-
- $('#yaohaoItemSelectDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- url:whzl.basePath + '/yaohaoAction_listYaohaoItemByYaohaoId?yaohaoItem.yaohaoItemState=1',
- checkOnSelect:true,
- selectOnCheck:true,
- singleSelect:true,
- nowrap:true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- return ;
- }
- }
- });
-
- }
-
- /**查询*/
- function yaohaoItemSearchFun(){
- var params = encodeURI("yaohaoItem.house.address="+trim($('#houseAddress').val())+
- "&yaohaoItem.securityPerson.name="+trim($('#securityPersonName').val()) +
- "&yaohaoItem.securityPerson.idCard="+trim($('#securityPersonIdCard').val()));
- $('#yaohaoItemSelectDataGrid').datagrid({url:whzl.basePath + '/yaohaoAction_listYaohaoItemByYaohaoId?yaohaoItem.yaohaoItemState=1&'+params});
- }
-
-
-
- var select_submit = function(){
- var yaohaoItemId = "";
- $("input[name='id']:checkbox").each(function(){
- if($(this).attr("checked")){
- yaohaoItemId = $(this).val() ;
- }
- });
- return yaohaoItemId;
- }
-
- </script>
- <div class="easyui-layout" data-options="fit:true,border:false">
- <div data-options="region:'center',border:false">
-
- <div id="searchtoolHouse" data-options="region:'north',border:false">
- <div class="clear"></div>
- <table id="tblQuery" style="width:100%;">
- <tr>
- <td align="right" style="width: 70px;">
- <span>租房人名称</span>
- </td>
- <td style="width: 120px;">
- <input id="securityPersonName" type="text" style="width: 100px;"/>
- </td>
-
- <td align="right" style="width: 70px;">
- <span>租房人身份证号码</span>
- </td>
- <td style="width: 120px;">
- <input id="securityPersonIdCard" type="text" style="width: 100px;"/>
- </td>
- </tr>
- <tr>
- <td align="right" style="width: 70px;">
- <span>租房地址</span>
- </td>
- <td style="width: 120px;">
- <input id="houseAddress" type="text" style="width: 100px;"/>
- </td>
- <td colspan = "2" >
- <a href="javascript:yaohaoItemSearchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
- <a href="javascript:yaohaoItemClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
- </td>
- </tr>
-
- </table>
- <div class="clear"></div>
- </div>
-
-
- <table id="yaohaoItemSelectDataGrid" >
- <thead frozen="true">
- <tr><th data-options="field:'id',checkbox:true,width:30">ID</th>
- </tr>
- </thead>
- <thead>
- <tr>
- <th data-options="field:'name',align:'center',sortable:true,width:80,formatter:yaohaoItem_nameFormatter">姓名</th>
- <th data-options="field:'idCard',align:'center',sortable:true,width:180,formatter:yaohaoItem_idCardFormatter">身份证<br/>号码</th>
- <th data-options="field:'communityName',width:100,formatter:yaohaoItem_communityNameFormatter">小区名称</th>
- <th data-options="field:'address',width:200,formatter:yaohaoItem_addressFormatter">居住地点</th>
- <th data-options="field:'houseNumber',width:40,formatter:yaohaoItem_houseNumberFormatter">房号</th>
- <th data-options="field:'area',width:60,formatter:yaohaoItem_areaFormatter">面积</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
|