StudentList.cshtml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "StudentList";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/System/StudentRole.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <form id="formQuery" method="post" action="@Url.Content("~/Role/StudentExcel")">
  13. <div class="p_title">
  14. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  15. 学生角色列表</div>
  16. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  17. </div>
  18. </form>
  19. <div class="search_list">
  20. @Html.DataGrid(new DataGridOptions
  21. {
  22. Columns = new List<DataGridColumn>()
  23. {
  24. new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
  25. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.06 },
  26. new LinkButtonColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center , Handle="edit", Width=0.1 },
  27. new BoundFieldColumn { FieldName="StudentTypeDesc", HeaderText="学生类别", Align=AlignStyle.Center, Width=0.1 },
  28. new BoundFieldColumn { FieldName="Description", HeaderText="备注", Align=AlignStyle.Center, Width=0.1 }
  29. },
  30. IsCheckOnSelect = true,
  31. DataSourceUrl = Url.Content("~/Role/StudentList"),
  32. ID = "dgRoleList",
  33. IsPagination = true,
  34. IsShowRowNumbers = true,
  35. IsSingleSelect = false
  36. })
  37. </div>
  38. </div>