123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <script><!--
- var select_load = function(){
- $('#area_select').combobox({
- url: whzl.basePath + '/houseRegisterAction_listChildrenCombobox',
- valueField:'value',
- textField:'text',
- onChange:function (newValue,oldValue) {
- $('#communityId_select').combobox("setValue","");
- $('#no_select').combobox("setValue","");
- $('#houseNumber_select').combobox("setValue","");
- $('#communityId_select').combobox('reload',whzl.basePath + '/communityAction_findAll?community.area='+newValue);
- }
- });
- $('#communityId_select').combobox({
- url: whzl.basePath + '/communityAction_findAll',
- valueField:'value',
- textField:'text',
- filter:function(q,row){
- var opts=$(this).combobox("options");
- //return row[opts.textField].indexOf(q)==0;//
- return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
- },
- onChange:function (newValue,oldValue) {
- $('#no_select').combobox("setValue","");
- $('#houseNumber_select').combobox("setValue","");
- $('#no_select').combobox('reload',whzl.basePath + '/houseAction_findAllNo?house.community.id='+$('#communityId_select').combobox("getValue"));
- }
- });
- $('#no_select').combobox({
- //editable:false,
- url: whzl.basePath + '/houseAction_findAllNo?house.community.id='+$('#communityId_select').combobox("getValue"),
- valueField:'value',
- textField:'text',
- filter:function(q,row){
- var opts=$(this).combobox("options");
- //return row[opts.textField].indexOf(q)==0;//
- return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
- },
- onChange:function (newValue,oldValue) {
- $('#houseNumber_select').combobox("setValue","");
- $('#houseNumber_select').combobox('reload',whzl.basePath + '/houseAction_findAllHouseNumber?house.community.id='+$('#communityId_select').combobox("getValue") + '&house.no='+newValue);
- }
- });
- $('#houseNumber_select').combobox({
- //editable:false,
- url: whzl.basePath + '/houseAction_findAllHouseNumber?house.community.id='+$('#communityId_select').combobox("getValue") + '&house.no='+$('#no_select').combobox("getValue"),
- valueField:'value',
- textField:'text',
- filter:function(q,row){
- var opts=$(this).combobox("options");
- //return row[opts.textField].indexOf(q)==0;//
- return row[opts.textField].indexOf(q)>-1;//将从头位置匹配改为任意匹配
- }
- });
-
- //户型
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"roomType" ,"aa10.name":"户型" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- roomTypeObj = msg.obj.rows;
- var select_arr = [];
- var data = roomTypeObj;
- for(var nItem = 0; nItem < data.length; nItem++ ){
- select_arr.push("<option value="+data[nItem].code+">"+data[nItem].value+"</option>");
- }
- roomType_array = select_arr.join("");
- $("#roomType_select").append(roomType_array);
- }
- }
- });
-
- //人员类别
- $.ajax({
- type: "post",//使用post方法访问后台
- dataType: "json",//返回json格式的数据
- url: "aa10Action_listAa10All",//要访问的后台地址
- data:{"aa10.letter":"personType" ,"aa10.name":"保障人员类别" },
- complete :function(){$("#load").hide();},//AJAX请求完成时隐藏loading提示
- success: function(msg){//msg为返回的数据,在这里做数据绑定
- if(msg.success){
- securityPersonHousepersonTypeObj = msg.obj.rows;
- }
- }
- });
-
-
-
- $('#securityPersonHouseSelectDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- toolbar:'#searchtoolHouse',
- url:whzl.basePath + '/rent10Action_houseList',
- pageSize:20,
- pageList : [ 10, 20, 30, 40, 50 ],
- pagination:true,
- checkOnSelect:true,
- selectOnCheck:true,
- singleSelect:true,
- nowrap:true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- return ;
- }
- }
- });
-
- }
-
-
- /**查询*/
- function securityPersonHouseSearchFun(){
- $("#securityPersonHouseSelectDataGrid").datagrid("load", {
- "house.community.id":trim($('#communityId_select').combobox("getValue")),
- "house.no":trim($('#no_select').combobox("getValue")),
- "house.houseNumber":trim($('#houseNumber_select').combobox("getValue"))
- });
- }
-
-
- /*清除查询条件**/
- function securityPersonHouseClearQuery() {
- $("#tblQuery1").find("input").val("");
- $("#tblQuery1").find("select").val("-1");
- }
-
-
- var select_submit = function(){
- var selectedItems = $('#securityPersonHouseSelectDataGrid').datagrid('getSelections');
- var ids = [];
- $.each(selectedItems,function(index,item){
- ids.push(item.id);
- })
- if(ids.length==0){
- $.messager.alert("警告","请选择至少一条记录!");
- return;
- }
- var idsStr = ids.join(",");
- return idsStr;
- }
- --></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="tblQuery1" style="width:100%;">
- <tr>
- <td align="right"><span>小区名称</span></td>
- <td colspan="3" style="font-size:12px;">
- <input id="communityId_select">
- <input id="no_select" style="width: 60px;">幢
- <input id="houseNumber_select" style="width: 80px;">室
- </td>
- <td>
- <a href="javascript:securityPersonHouseSearchFun();" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">查询</a>
- <a href="javascript:securityPersonHouseClearQuery();" class="easyui-linkbutton" data-options="iconCls:'icon-emptied',plain:true">清空</a>
- </td>
- </tr>
-
-
- </table>
- <div class="clear"></div>
- </div>
- <table id="securityPersonHouseSelectDataGrid" >
- <thead frozen="true">
- <tr><th data-options="field:'id',checkbox:true,width:30">ID</th>
- </tr>
- </thead>
- <thead>
- <tr>
- <th data-options="field:'communityName',sortable:true,width:100">小区名称</th>
- <th data-options="field:'no',width:80">楼号</th>
- <th data-options="field:'houseNumber',width:80">房号</th>
- <th data-options="field:'area',width:60">面积</th>
- <th data-options="field:'garageArea',width:60">车库面积</th>
- <th data-options="field:'lessee',width:60">承租人</th>
- <th data-options="field:'lesseeId',width:160">承租人身份证号</th>
- <th data-options="field:'endTime',width:80,formatter:endTimeFormatter">到期时间</th>
- <th data-options="field:'initialPlacementTime',width:80,formatter:initialPlacementTimeFormatter">初始安置时间</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
|