querybjhtsdatalist.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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/query/querybjhtsPage?BeginDate=${BeginDate}&EndDate=${EndDate}',
  43. editurl:"",
  44. mtype : "POST",
  45. datatype : "json",
  46. multiselect: false,
  47. caption1:'数据查询',
  48. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  49. id: "keyid",
  50. oper:"oper",
  51. addoper:"add",
  52. editoper:"edit",
  53. deloper:"del"
  54. },
  55. colModel : [ {
  56. label : '流水号',
  57. name : 'LSH',
  58. key : true,
  59. editable: false,
  60. hidden:true
  61. },{
  62. label : '投诉人员姓名',
  63. name : 'tsrxm',
  64. width : 80,
  65. }, {
  66. label : '投诉类型',
  67. name : 'tslx',
  68. width : 50,
  69. },{
  70. label : '投诉原因',
  71. hidden:false,
  72. name : 'tsyy',
  73. width : 50,
  74. },{
  75. label : '团体保单号',
  76. hidden:false,
  77. name : 'ttbdh',
  78. width : 50,
  79. },{
  80. label : '个人保单号',
  81. hidden:false,
  82. name : 'grbdh',
  83. width : 50,
  84. }, {
  85. label : '投诉日期',
  86. name : 'tsrq',
  87. width : 50,
  88. }, {
  89. label : '投诉有效标志',
  90. name : 'tsyxbz',
  91. width : 50,
  92. }, {
  93. label : '投诉无效原因',
  94. name : 'tswxyy',
  95. width : 50,
  96. }, {
  97. label : '投诉处理结果',
  98. name : 'tscljg',
  99. width : 50,
  100. }, {
  101. label : '投诉处理开始时间',
  102. name : 'tsclksrq',
  103. width : 50,
  104. }, {
  105. label : '投诉处理结束时间',
  106. name : 'tscljsrq',
  107. width : 50,
  108. }],
  109. rownumbers : true,//添加左侧行号
  110. viewrecords : true,//是否在浏览导航栏显示记录总数
  111. rowNum : 10,//每页显示记录数
  112. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  113. autowidth : true,
  114. sortname : 'tsrq',
  115. sortorder : 'asc',
  116. height : 'auto',
  117. pager : "#jqGridPager",
  118. //屏蔽点击任意单元格选中checkbox的问题
  119. beforeSelectRow: function (rowid, e) {
  120. var $myGrid = $(this),
  121. i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
  122. cm = $myGrid.jqGrid('getGridParam', 'colModel');
  123. return (cm[i].name === 'cb');
  124. }
  125. });
  126. $('#jqGrid')
  127. .navGrid('#jqGridPager',{edit:false,add:false,del:false,search:false})
  128. .navButtonAdd("#jqGridPager", { caption:"返回", buttonicon:"ui-icon-excel",
  129. onClickButton: function(){
  130. history.go(-1);
  131. },
  132. position:"last"
  133. });
  134. });
  135. </script>
  136. <title>我的桌面</title>
  137. </head>
  138. <body>
  139. <div>
  140. <div class="page-container">
  141. <table id="jqGrid"></table>
  142. <div id="jqGridPager"></div>
  143. </div>
  144. </div>
  145. </body>
  146. </html>