List.cshtml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/System/Role.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <div class="p_SearchTitle">
  13. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  14. 查询条件</div>
  15. </div>
  16. <form id="formQuery" method="post" action="@Url.Content("~/Role/Excel")">
  17. @Html.PositionCondition()
  18. <div class="p_title">
  19. <div style="padding-left: 5px;">
  20. 数据范围:@Html.DictionaryDropDownListForSearch(EMIS.ViewModel.DictionaryItem.SYS_DataRange, "dgRoleList", new DropdownListOptions { ID = "DataRange", Name = "DataRange", OnSelect = "reload" })</div>
  21. </div>
  22. <div class="p_title">
  23. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  24. 教师角色列表</div>
  25. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  26. </div>
  27. </form>
  28. @Html.PositionBatchModify()
  29. <div class="search_list">
  30. @Html.DataGrid(new DataGridOptions
  31. {
  32. Columns = new List<DataGridColumn>()
  33. {
  34. new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
  35. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.06 },
  36. new LinkButtonColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center , Handle="edit", Width=0.1 },
  37. new BoundFieldColumn { FieldName="DefaultDataRangeDesc", HeaderText="数据范围", Align=AlignStyle.Center, Width=0.06 },
  38. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="是否可用", Align=AlignStyle.Center, Width=0.06 },
  39. new BoundFieldColumn { FieldName="Description", HeaderText="备注", Align=AlignStyle.Center, Width=0.1 }
  40. },
  41. PageSize = 30,
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/Role/List"),
  44. ID = "dgRoleList",
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false
  48. })
  49. </div>
  50. </div>