UserRole.cshtml 1.3 KB

1234567891011121314151617181920212223242526272829
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "UserRole";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/System/Role.js" type="text/javascript"></script>
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. <div class="search_list">
  11. @Html.DataGrid(new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
  16. new LinkButtonColumn { FieldName="RoleName", HeaderText="类型名称", Align=AlignStyle.Center , Handle="edit" },
  17. new BoundFieldColumn { FieldName="DefaultDataRangeDesc", HeaderText="数据范围", Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="是否可用", Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="Description", HeaderText="备注", Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/User/GetUserRoleList?userID=" + new Guid(Request["UserID"])),
  23. ID = "dgRoleList",
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false
  27. })
  28. </div>
  29. </div>