@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 可否编辑:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { ID = "DictionaryIsEditable", Name = "DictionaryIsEditable", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgDictionaryList" } })
字典类型列表
@Html.ContextMenuBar("List")
@*@Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="DictionaryCode" }, new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="DictionaryCode", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.04, OverflowLength=25 }, new BoundFieldColumn { FieldName="DictionaryName", HeaderText="类型名称", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="IsEditableName", HeaderText="可否编辑", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" } }, PageSize = 50, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Dictionary/List"), ID = "dgDictionaryList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })