@using EMIS.Web.Controls;
@using Bowin.Web.Controls.Mvc;
@{
ViewBag.Title = "DataRange";
}
@section scripts{
}
@using (Html.BeginForm())
{
@*
数据范围设置
*@
@Html.ContextMenuBar("DataRange")
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new TreeColumn{ IDFieldName="MenuNo", TextFieldName="MenuName", ParentIDFieldName="ParentMenuNo", OrderByFieldName="OrderNo", HeaderText="菜单名称", Align=AlignStyle.Center, Width=0.1 },
new DictionaryDropdownListColumn { DictionaryType=EMIS.ViewModel.DictionaryItem.SYS_DataRange, FieldName="DataRangeID", VisibleFieldName="IsLeaf", HeaderText="数据范围", Align=AlignStyle.Center, Width=0.1 },
},
PageSize = 20,
MaxHeight = 400,
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/Role/DataRangeAll?RoleID=" + Request["RoleID"]),
ID = "dgDataRangeList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})
}