ExamList.cshtml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMISOnline.Entities;
  3. @using EMISOnline.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @Html.Position()
  9. <div class="p_SearchTitle">
  10. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  11. 查询条件</div>
  12. </div>
  13. <form id="formQuery" method="post" action="@Url.Content("~/Students/Excel")">
  14. <div class="search_keyword">
  15. <div class="search_input">
  16. <ul>
  17. <li class="sn" style="padding-left: 5px;">考试名称:</li>
  18. <li class="sv">
  19. @Html.TextBox("testName")
  20. </li>
  21. <li class="sn" style="padding-left: 5px;">考试时间:</li>
  22. <li class="sv">
  23. @Html.TextBox(new TextBoxOptions() { TextBoxType = TextBoxType.DateTime, Name = "beginTime" })
  24. </li>
  25. <li class="sn" style="padding-left: 5px;">至</li>
  26. <li class="sv">
  27. @Html.TextBox(new TextBoxOptions() { TextBoxType = TextBoxType.DateTime, Name = "endTime" })
  28. </li>
  29. <li>
  30. @Html.Button(new ButtonOptions() { ID = "btnSearch", Text = "查 询" })
  31. </li>
  32. </ul>
  33. </div>
  34. </div>
  35. </form>
  36. <div class="p_title">
  37. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  38. 考试信息</div>
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  40. </div>
  41. </div>
  42. <div class="search_list">
  43. @Html.DataGrid(new DataGridOptions
  44. {
  45. Columns = new List<DataGridColumn>()
  46. {
  47. new BoundFieldColumn { FieldName="test_name", HeaderText="试卷名称", },
  48. new BoundFieldColumn { FieldName="test_method_set", HeaderText="试卷类型", Align=AlignStyle.Center },
  49. new BoundFieldColumn { FieldName="test_begin_date", HeaderText="进入考试时间", Align=AlignStyle.Center, Formatter= Formatter.OnlyYearMonthDay},
  50. new BoundFieldColumn { FieldName="limited_minutes", HeaderText="考试时长(分钟)", Align=AlignStyle.Center , },
  51. new BoundFieldColumn { FieldName="status", HeaderText="考试状态", Align=AlignStyle.Center },
  52. new LinkButtonColumn { HeaderText="操作", Align=AlignStyle.Center, Text="进入考试", Handle="edit"},
  53. },
  54. IsCheckOnSelect = true,
  55. DataSourceUrl = Url.Content("~/OnlineTest/List"),
  56. ID = "dgList",
  57. IsPagination = true,
  58. IsShowRowNumbers = true,
  59. IsSingleSelect = false,
  60. IsVerticalExpand = true,
  61. IsAutoHeight = false,
  62. })
  63. </div>
  64. </div>
  65. @section scripts{
  66. <script type="text/javascript">
  67. $(function () {
  68. $('#btnSearch').click(function () {
  69. $('#dgList').cmsXDataTable('reload');
  70. });
  71. })
  72. function edit(index,row) {
  73. window.open("@Url.Content("~/OnlineTest/WaittingPage")?test_id=" + row.onlinetest_id);
  74. }
  75. </script>
  76. }