@model EMIS.ViewModel.ScoreManage.LevelSettingView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var url = ViewBag.Url; ComboGridOptions ExaminationSubject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubject/List"), 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.LevelSettingID) @**@ @**@ @**@
@Html.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", ID = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "reload" }, new Dictionary { }) @Html.LabelFor(x => x.ExaminationSubjectID): @*@Html.DropdownListFor((x => x.ExaminationSubjectID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList") })*@ @Html.ComboGridFor(x => x.ExaminationSubjectID, ExaminationSubject)
@Html.LabelFor(x => x.MinScore): @Html.TextBoxFor(x => x.MinScore, new Dictionary { { "onPropertyChange", "onchangeRange()" } }) @Html.LabelFor(x => x.MaxScore): @Html.TextBoxFor(x => x.MaxScore, new Dictionary { { "onPropertyChange", "onchangeRange()" } })
@Html.LabelFor(x => x.LevelName): @Html.TextBoxFor(x => x.LevelName, new Dictionary { }) @Html.LabelFor(x => x.LevelNo): @Html.TextBoxFor(x => x.LevelNo, new Dictionary { })
@Html.LabelFor(x => x.ScoreRange): @Html.TextBoxFor(x => x.ScoreRange, new Dictionary { { "disabled", "true" } })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width:460px;" } })
}