@model EMIS.ViewModel.ScoreManage.ResultTypeDetailView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Add"; var item = ViewBag.ListItem; ComboGridOptions cgopResultType = new ComboGridOptions { TextField = "ResultsName", ValueField = "ResultsTypeID", Name = "ResultTypeDropdown", ID = "ResultTypeDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ResultsName", HeaderText="成绩类型", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ResultsType/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //DropdownListOptions cgopOperator = new DropdownListOptions //{ // TextField = "key", // ValueField = "value", // Name = "OperatorDropdown", // ID = "OperatorDropdown", // GridOptions = new DropdownListOptions // { // Columns = new List() // { // //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="value", HeaderText="", Align=AlignStyle.Center } // }, // IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/ResultTypeDetail/GetOperator"), // IsPagination = true, // IsShowRowNumbers = true, // IsSingleSelect = false, // } //}; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.ResultTypeDetailID)
@Html.LabelFor(x => x.ResultTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID)) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name)
@Html.Label("分数段"): @Html.TextBoxFor(x => x.MinScore, new { style = "width:70px;" }) @Html.MinOrEqualDropDownListFor(x => x.MinScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 }) 总成绩 @Html.MinOrEqualDropDownListFor(x => x.MaxScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 }) @Html.TextBoxFor(x => x.MaxScore, new { style = "width:70px;" })
@Html.LabelFor(x => x.Score): @Html.TextBoxFor(x => x.Score)
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark)
}