@model EMIS.ViewModel.ScoreManage.ExaminationSuspensionView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; bool isAddNew = true; if (Request["type"] == "edit") { isAddNew = false; } ComboGridOptions cgop = new ComboGridOptions { TextField = "LoginID", ValueField = "UserID", EmptyText = "请选择", Name = "UserID", ID = "UserID", OnSelect = "queryClass", IsAutoComplete = true, MinReloadCharactor = EMIS.Utility.Const.LOCAL_SETTING_LoginIDLength, IsEnabled = isAddNew, 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 } }; ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", IsEnabled = isAddNew, GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSuspension/GetCoursematerialForTeacher"), 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.ExaminationSuspensionID) @if(Request["type"]=="edit") { @Html.HiddenFor(x=>x.UserID) @Html.HiddenFor(x=>x.CoursematerialID) }
@Html.LabelFor(x => x.UserID): @Html.ComboGridFor(x => x.UserID, cgop) @Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
@Html.LabelFor(x => x.ExamsCategoryID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID, new DropdownListOptions { IsEnabled = false })
@Html.LabelFor(x => x.Reason): @Html.TextAreaFor(x => x.Reason, new Dictionary { { "style", "width: 98%;" } })
}