@model EMIS.ViewModel.ScoreManage.ScoreFormulaView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@Html.HiddenFor(x => x.ScoreFormulaID)
@Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name)
@Html.ContextMenuBar("Settings")
@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 })
}