@model EMIS.ViewModel.ScoreManage.FinalExaminationView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; string type = ViewBag.type; ComboGridOptions cgop = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", EmptyText = "请选择", Name = "UserID", ID = "UserID", OnSelect = "SelectStarttermID", IsAutoComplete = true, MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.3 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 }, }, 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.Hidden("hid_ExamsCategory")
@*
添加学生
*@
@Html.ContextMenuBar("StudentEdit")
@Html.HiddenFor(x => x.ExamsCategoryID) @Html.HiddenFor(x => x.FinalExaminationID) @Html.HiddenFor(x=>x.isAutoAdd) @**@
@Html.LabelFor(x=>x.UserID): @Html.ComboGridFor(x => x.UserID, cgop) @Html.LabelFor(x=>x.UserName): @Html.TextBoxFor(x => x.UserName, new TextBoxOptions { IsEnabled = false })
@Html.LabelFor(x => x.SchoolyearID): @Html.TextBoxFor(x => x.SchoolyearCode, new TextBoxOptions { IsEnabled = false }) @*@Html.DropdownListFor(x=>x.SchoolyearID,new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })*@ @Html.LabelFor(x=> x.StarttermID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Startterm, (x => x.StarttermID))
@Html.LabelFor(x => x.ExamsCategoryID): @Html.TextBoxFor(x => x.ExamsCategoryName, new TextBoxOptions { IsEnabled = false }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID, new DropdownListOptions { OnSelect = "QueryExamsCategory" })*@ @Html.LabelFor(x => x.CourseTypeID): @Html.TextBoxFor(x => x.CourseTypeName, new TextBoxOptions { IsEnabled = false }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, x => x.CourseTypeID)*@
@Html.LabelFor(x => x.Credit): @Html.TextBoxFor(x => x.Credit, new TextBoxOptions { IsEnabled = false }) @Html.LabelFor(x => x.ExaminationModeID): @Html.TextBoxFor(x => x.ExaminationModeName, new TextBoxOptions { IsEnabled = false }) @*@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode, (x => x.ExaminationModeID))*@
@Html.LabelFor(x => x.ClassName): @Html.TextBoxFor(x => x.ClassName, new Dictionary { { "style", "width:85%;" } })
}