RoleSelector.cshtml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "RoleSelector";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/System/RoleSelector.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. function Role_Confirm() {
  10. top.$("#@(Request["WindowID"])").data("resultData", validChoose());
  11. top.$("#@(Request["WindowID"])").dialog("close");
  12. }
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  16. <div class="p_title">
  17. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  18. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  19. <div class="current_navbar toolbar">
  20. <div class="func_info">
  21. <a class="easyui-linkbutton" href="javascript:Role_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  22. onfocus="this.blur()">选中</a>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="search_list">
  28. @Html.DataGrid(new DataGridOptions
  29. {
  30. Columns = new List<DataGridColumn>()
  31. {
  32. new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
  33. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center },
  34. new LinkButtonColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center , Handle="edit" },
  35. new BoundFieldColumn { FieldName="DefaultDataRangeDesc", HeaderText="数据范围", Align=AlignStyle.Center },
  36. new BoundFieldColumn { FieldName="RecordStatusDesc", HeaderText="是否可用", Align=AlignStyle.Center },
  37. new BoundFieldColumn { FieldName="Description", HeaderText="备注", Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Role/ListAll"),
  41. ID = "dgRoleList",
  42. IsPagination = false,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. })
  46. </div>
  47. </div>