@model EMIS.ViewModel.ScoreManage.LevelScoreView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions ExaminationSubject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", GridOptions = new DataGridOptions { Columns = new List() { //new BoundFieldColumn { 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 } }; ComboGridOptions Student = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Students/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.LevelScoreID)
@Html.LabelFor(x => x.ExaminationSubjectID): @Html.ComboGridFor(x => x.ExaminationSubjectID, ExaminationSubject) @Html.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", ID = "SchoolyearDropdown", OnSelect = "", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "" }, new Dictionary { })
@Html.LabelFor(x => x.LoginID): @Html.ComboGridFor(x => x.UserID, Student) @*@Html.TextBoxFor(x => x.StudentCardNo, new Dictionary { })*@ @Html.LabelFor(x => x.ScoreNo): @Html.TextBoxFor(x => x.ScoreNo, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
@Html.LabelFor(x => x.TotalScore): @Html.TextBoxFor(x => x.TotalScore, new TextBoxOptions { TextBoxType = TextBoxType.Normal }) @Html.Label("") @Html.Label("")
@Html.LabelFor(x => x.ExaminationDate): @Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.ValidDate): @Html.TextBoxFor(x => x.ValidDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width:460px;" } })
}