fundreportlist.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <!--[if lt IE 9]>
  10. <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
  11. <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
  12. <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
  13. <![endif]-->
  14. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
  15. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
  16. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
  17. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  20. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  21. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  22. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  24. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  26. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  27. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  29. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  30. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  31. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  32. <!--[if IE 6]>
  33. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  34. <script>DD_belatedPNG.fix('*');</script>
  35. <![endif]-->
  36. <script type="text/javascript">
  37. $(function() {
  38. $(window).resize(function(){
  39. $("#jqGrid").setGridWidth($(window).width()-41);
  40. });
  41. $("#jqGrid").jqGrid({
  42. url : '${ctx}/myconsole/complaint/fund/getFundReportPage',
  43. postData :{"BeginAppealDate":"${BeginAppealDate}","EndAppealDate":"${EndAppealDate}"},
  44. editurl:"",
  45. mtype : "POST",
  46. datatype : "json",
  47. multiselect: false,
  48. caption1:'信息管理',
  49. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  50. id: "appealid",
  51. oper:"oper",
  52. addoper:"add",
  53. editoper:"edit",
  54. deloper:"del"
  55. },
  56. colModel : [ {
  57. label : '数据编号',
  58. name : 'yearfund',
  59. key : true,
  60. editable: false,
  61. hidden:true
  62. },{
  63. label : '年度总预算(元)',
  64. name : 'yearfund',
  65. width : 60
  66. },{
  67. label : '已用预算(元)',
  68. name : 'usedfund',
  69. width : 60
  70. },{
  71. label : '剩余预算(元)',
  72. name : 'surplusfund',
  73. width : 60
  74. },{
  75. label : '本月申请预算(元)',
  76. name : 'usedmonthfund',
  77. width : 60
  78. }],
  79. rownumbers : true,//添加左侧行号
  80. viewrecords : true,//是否在浏览导航栏显示记录总数
  81. rowNum : 10,//每页显示记录数
  82. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  83. autowidth : true,
  84. sortname : 'a.RecordTime',
  85. sortorder : 'desc',
  86. height : 'auto',
  87. pager : "#jqGridPager",
  88. })
  89. $('#jqGrid').navGrid('#jqGridPager',{edit:false,add:false,del:false,search:false})
  90. .navButtonAdd("#jqGridPager", { caption:"返回", buttonicon:"ui-icon-excel", onClickButton: function(){ history.go(-1); }, position:"last" });
  91. //添加自定义按钮
  92. $("#jqGrid").navButtonAdd('#jqGridPager',{
  93. caption:"导出到excel",
  94. buttonicon:"ui-icon-document",
  95. onClickButton: function(){
  96. exportExcel();
  97. },
  98. position:"first"
  99. });
  100. });
  101. <!--这里不能用ajax请求,ajax请求无法弹出下载保存对话框-->
  102. function exportExcel(){
  103. //window.location.href="${ctx}/myconsole/complaint/fund/exportExcel";
  104. $('#form1').attr('action','${ctx}/myconsole/complaint/fund/exportExcel');
  105. $('#form1').submit();
  106. }
  107. </script>
  108. <title>我的桌面</title>
  109. </head>
  110. <form id="form1" method="post" class="form-horizontal" role="form">
  111. <input type="hidden" name="BeginAppealDate" value="${BeginAppealDate}">
  112. <input type="hidden" name="EndAppealDate" value="${EndAppealDate}">
  113. </form>
  114. <body>
  115. <div>
  116. <div class="page-container">
  117. <table id="jqGrid"></table>
  118. <div id="jqGridPager"></div>
  119. </div>
  120. </div>
  121. </body>
  122. </html>