123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
- <script type="text/javascript"><!--
- /**用户显示区*/
- var rent_detail_load = function (idCard){
- $('#rentDataGrid').datagrid({
- rownumbers:true,
- fit:true,
- pageSize:20,
- pageList : [ 10, 20, 30, 40, 50 ],
- fitColumns:false,
- border:false,
- sortOrder:'desc',
- pagination:true,
- idField:'id',
- url:whzl.basePath + '/rentAction_listRent?rent.securityPerson.idCard=' + idCard,
- checkOnSelect:true,
- selectOnCheck:false,
- nowrap:true,
- loadFilter:function(result){
- if(result.success){
- return result.obj;
- }else{
- $.messager.alert("提示",result.message);
- return ;
- }
- }
- });
- };
-
-
- var dateFormatter = function(value,row,index){
- if(value != null){
- return value.substring(0,10);
- }else{
- return "";
- }
- }
-
- var contractNameFormatter = function(value,row,index){
- return row.leaseContract.contractName;
- }
-
- var contractNoFormatter = function(value,row,index){
- return row.leaseContract.contractNo;
- }
-
- var securityPersonNameFormatter = function(value,row,index){
- return row.securityPerson.name;
- }
-
- var securityPersonIdCardFormatter = function(value,row,index){
- return row.securityPerson.idCard;
- }
-
- var houseAddressFormatter = function(value,row,index){
- return row.house.address;
- }
-
-
- /**详细*/
- var detailsFormatter = function(value , row , index){
- return "<img src='"+ whzl.basePath + "/images/details.png' title='查看详情' onclick=rentDetails(" + row.id + ") style='cursor:pointer' />";
- };
-
- /**详细页面对话框*/
- var rentDetails = function(id){
- $("#detailRentDialog").dialog(
- {
- buttons : [
- {
- text : '确定',
- iconCls : 'icon-ok',
- handler : function(){
- $("#detailRentDialog").dialog("close");
- }
- }
- ],
- onLoad : function(){
- detail_load(id);
- }
- }
- );
- };
-
- --></script>
- <div class="easyui-layout" data-options="fit:true,border:false">
- <div data-options="region:'center',border:false">
-
- <table id="rentDataGrid" >
- <thead>
- <tr>
- <th data-options="field:'contractName',sortable:true,width:155,formatter:contractNameFormatter">租赁合同名称</th>
- <th data-options="field:'contractNo',sortable:true,width:90,formatter:contractNoFormatter">租赁合同编号</th>
- <th data-options="field:'securityPersonName',sortable:true,width:80,formatter:securityPersonNameFormatter">租赁人</th>
- <th data-options="field:'securityPersonIdCard',sortable:true,width:160,formatter:securityPersonIdCardFormatter">租赁人身份证号码</th>
- <th data-options="field:'houseAddress',sortable:true,width:120,formatter:houseAddressFormatter">租赁房屋</th>
- <th data-options="field:'rentMonthMoney',sortable:true,width:75">月租金</th>
- <th data-options="field:'rentMonth',sortable:true,width:50">收取月数</th>
- <th data-options="field:'rentMoney',sortable:true,width:75">收取总金额</th>
- <th data-options="field:'startDate',sortable:true,width:75,formatter:dateFormatter">租金开始日期</th>
- <th data-options="field:'endDate',sortable:true,width:75,formatter:dateFormatter">租金结束日期</th>
- <th data-options="field:'details',align:'center',width:60,formatter:detailsFormatter">查看详情</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
|