$(function(){
$("#RepaymentInfoTab").datagrid({
view: detailview,
detailFormatter:function(index,row){
return '<div style="padding:2px"><table id="ddv-' + index + '"></table></div>';
},
onExpandRow:function(index,row){
var repaymentNum = row.repaymentNum;
$('#ddv-'+index).datagrid({
url:'getSaleInfoData?repaymentNum=' + repaymentNum,
fitColumns:true,
singleSelect:true,
height:'auto',
columns:[[ {field:'salesNum1',title:'计划消费流水',width:20},
{field:'salesMoney1',title:'计划消费金额',width:20},
{field:'difference1',title:'差额(消费-还款)',width:20},
{field:'status1',title:'计划消费状态',width:20,formatter:function(value){
if (value == 1) {return '<span style=\"color:red\">初始化</span>'; }
if (value == 2) {return '<span style=\"color:blue\">消费完成</span>'; }
if (value == 3) {return '<span style=\"color:blue\">遗弃</span>'; }
}},
{field:'transNo1',title:'交易流水号',width:20},
{field:'sendDate1',title:'交易时间',width:20},
{field:'creaetetime1',title:'添加时间',width:20},
]],
onResize:function(){
$('#RepaymentInfoTab').datagrid('fixDetailRowHeight',index);
},
onLoadSuccess:function(){
setTimeout(function(){
$('#RepaymentInfoTab').datagrid('fixDetailRowHeight',index);
},0);
}
});
$('#RepaymentInfoTab').datagrid('fixDetailRowHeight',index);
}
})
})

最新文章

  1. python %s深入解析
  2. Python开发程序:学员管理系统(mysql)
  3. PHP 计算每个月的最后一天
  4. centos7下更改java环境
  5. echarts实现条形图表
  6. PHP memcached 扩展的安装
  7. winform版简易http服务器
  8. T-SQL语言基础
  9. Aix5~6小机运维
  10. 老李推荐: 第14章2节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-HierarchyViewer架构概述
  11. 为Markdown文件生成目录
  12. Java-ServletContextAttributeListener
  13. Activi相关表归纳
  14. Vmworkstation启用错误
  15. JS-正则表达式 限制输入整数、小数
  16. MySQL:Your password has expired. To log in you must change it using a client that supports expired passwords
  17. PHP实现IP访问限制及提交次数的方法详解
  18. TableView中Label自适应高度
  19. 菜品识别 API调用
  20. [phy]在uboot阶段失能phy芯片

热门文章

  1. 【转】Spring MVC 3.x 基本配置
  2. Net应用架构设计
  3. jquery ajax 传数据到后台乱码的处理方法
  4. 数据库系统概述(Data Model、DBMS、DBS、RDBS、Structured Query Language)
  5. Pipeline inbound
  6. 洛谷 P4451 [国家集训队]整数的lqp拆分
  7. java中集合的扩容
  8. Bootstrap 简介二
  9. React:快速上手(2)——组件通信
  10. 保护你的代码,生成.a文件以及.framework文件需要注意的地方