@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn { FieldName="ScoreFormulaDetailID" },
new DictionaryDropdownListColumn { FieldName="ScoreType", HeaderText="分数类型", Align=AlignStyle.Center, DictionaryType = EMIS.ViewModel.DictionaryItem.CF_ScoreType },
new CheckButtonColumn { FieldName="IsRequirePass", HeaderText="是否必须通过", Align=AlignStyle.Center },
new TextBoxColumn { FieldName="PassScoreStr", HeaderText="必须通过成绩", Align=AlignStyle.Center },
new TextBoxColumn { FieldName="Percentage", HeaderText="百分比", Align=AlignStyle.Center, IsRequired = true, Validator = new OnlyNumberValidator() }
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/ScoreFormula/ScoreFormulaDetailList?scoreFormulaID=" + Model.ScoreFormulaID),
IsPostBack = true,
ID = "dgScoreFormulaDetailList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})
|