RingStatistics.cshtml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 
  2. @{
  3. ViewBag.Title = "RingStatistics";
  4. Layout = "~/Views/Shared/_MainLayoutPage.cshtml";
  5. }
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <meta name="viewport" content="width=device-width" />
  10. <title>RingStatistics</title>
  11. </head>
  12. <body>
  13. <table id="Table"> </table>
  14. </body>
  15. </html>
  16. <script type="text/javascript">
  17. $(function () {
  18. var Report = $('#Table');
  19. Report.datagrid({
  20. fit: true,
  21. showFooter:true,
  22. width: '100%',
  23. toolbar: '#toolbar',
  24. pageSize: 10,
  25. rownumbers: true,
  26. pagination: true,
  27. border: false,
  28. remoteSort: true,
  29. singleSelect: true, //单行选择
  30. loadMsg: "正在查询数据,请稍候...",
  31. url: '/Report/GetRingStatistics',
  32. method: 'post',
  33. columns:[[
  34. { field: '环节', title: '环节', width: 100, halign: 'center' },
  35. { field: '总数量', title: '总数量', width: 100, halign: 'center' },
  36. { field: '按时处理数量', title: '按时处理数量', width: 100, halign: 'center' },
  37. { field: '超时数量', title: '超时数量', width: 100, halign: 'center' },
  38. { field: '平均超时(小时)', title: '平均超时(小时)', width: 150, halign: 'center' },
  39. { field: '最长超时(小时)', title: '最长超时(小时)', width: 150, halign: 'center' },
  40. ]]
  41. })
  42. })
  43. </script>