@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "总分公式"; var gridOptions = new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ScoreFormulaID" }, new LinkButtonColumn { FieldName="Name", HeaderText="公式名称", Align=AlignStyle.Center,Handle="edit" }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Action("List"), ID = "dgScoreFormulaList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }; var scoreDynamicTypes = (IEnumerable)ViewBag.ScoreDynamicTypes; foreach (var item in scoreDynamicTypes) { gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "ScoreType" + item.Value.ToString(), HeaderText = item.Name, Align = AlignStyle.Center }); } } @section scripts{ }
@Html.Position()
查询条件
  • 公式名称:
  • @Html.TextBox(new TextBoxOptions { Name = "textName" }, new Dictionary { { "data-condition", "dgScoreFormulaList" } })
  • 查询
总分公式列表
@Html.ContextMenuBar("List")
@Html.DataGrid(gridOptions)