DataRange.cshtml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "DataRange";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/System/RoleDataRange.js" type="text/javascript"></script>
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @using (Html.BeginForm())
  11. {
  12. <div class="p_title">
  13. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  14. 数据范围设置</div>*@
  15. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("DataRange")</div>
  16. </div>
  17. <div class="search_list">
  18. @Html.DataGrid(new DataGridOptions
  19. {
  20. Columns = new List<DataGridColumn>()
  21. {
  22. new TreeColumn{ IDFieldName="MenuNo", TextFieldName="MenuName", ParentIDFieldName="ParentMenuNo", OrderByFieldName="OrderNo", HeaderText="菜单名称", Align=AlignStyle.Center, Width=0.1 },
  23. new DictionaryDropdownListColumn { DictionaryType=EMIS.ViewModel.DictionaryItem.SYS_DataRange, FieldName="DataRangeID", VisibleFieldName="IsLeaf", HeaderText="数据范围", Align=AlignStyle.Center, Width=0.1 },
  24. },
  25. PageSize = 20,
  26. MaxHeight = 400,
  27. IsPostBack = true,
  28. IsCheckOnSelect = true,
  29. DataSourceUrl = Url.Content("~/Role/DataRangeAll?RoleID=" + Request["RoleID"]),
  30. ID = "dgDataRangeList",
  31. IsPagination = true,
  32. IsShowRowNumbers = true,
  33. IsSingleSelect = false
  34. })
  35. </div>
  36. }
  37. </div>