Review.cshtml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "queryCollege" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  20. </li>
  21. <li class="sn" style="padding-left: 5px;">院系所:</li>
  22. <li class="sv">
  23. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  24. </li>
  25. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  26. <li class="sv">
  27. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Classmajor/BindDropdownList"), ID = "ClassmajorDropdown", Name = "ClassmajorDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  28. </li>
  29. <li>
  30. @Html.Button(new ButtonOptions() { ID = "btnSearch", Text = "查 询" })
  31. @Html.Button(new ButtonOptions() { ID = "btnAdd", Text = "发布作业" })
  32. </li>
  33. </ul>
  34. </div>
  35. </div>
  36. </form>
  37. <div class="p_title">
  38. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  39. 作业完成信息</div>
  40. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  41. </div>
  42. </div>
  43. <div class="search_list">
  44. @Html.DataGrid(new DataGridOptions
  45. {
  46. Columns = new List<DataGridColumn>()
  47. {
  48. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  49. new LinkButtonColumn { FieldName="WorkName", HeaderText="作业名称", Align=AlignStyle.Center },
  50. new BoundFieldColumn { FieldName="username", HeaderText="学生名字", Align=AlignStyle.Center },
  51. new BoundFieldColumn { FieldName="test_end_date", HeaderText="完成时间", Align=AlignStyle.Center , Formatter= Formatter.OnlyYearMonthDay },
  52. new BoundFieldColumn { FieldName="score", HeaderText="分数", Align=AlignStyle.Center },
  53. new LinkButtonColumn { HeaderText="操作", Align=AlignStyle.Center, Text="查看作业", Handle="edit"},
  54. },
  55. IsCheckOnSelect = true,
  56. DataSourceUrl = Url.Content("~/Coursework/ReviewList?workid=" + ViewBag.workid),
  57. ID = "dgList",
  58. IsPagination = true,
  59. IsShowRowNumbers = true,
  60. IsSingleSelect = false,
  61. IsVerticalExpand = true,
  62. IsAutoHeight = false,
  63. })
  64. </div>
  65. </div>
  66. @section scripts{
  67. <script type="text/javascript">
  68. $(function () {
  69. $('#btnAdd').click(function () {
  70. window.location.href = "@Url.Content("~/Coursework/CourseworkAdd")";
  71. })
  72. })
  73. function edit(index, row) {
  74. window.location.href = ("@Url.Content("~/Coursework/ShowPaper")?ResultID=" + row.ResultID);
  75. }
  76. </script>
  77. }