@model EMIS.ViewModel.GraduationManage.GraduationRequirement.GraduationCourseView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; //年级专业 ComboGridOptions cgopGrademajor = new ComboGridOptions { ID = "GrademajorComboGrid", Name = "GrademajorComboGrid", TextField = "Name", ValueField = "GrademajorID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.35 } //new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.1 } }, PageSize = 3, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 120 } }; //课程信息 ComboGridOptions cgopCourse = new ComboGridOptions { ID = "CoursematerialComboGrid", Name = "CoursematerialComboGrid", TextField = "CourseName", ValueField = "CoursematerialID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 } }, PageSize =3, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight =120 } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@*毕业课程信息*@
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.GraduationCourseID)
@Html.LabelFor(x => x.GrademajorName) @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor) @Html.LabelFor(x => x.CourseName) @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
@Html.LabelFor(x => x.CourseTypeName) @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, (x => x.CourseTypeID), DropdownListBindType.PleaseSelect) @Html.LabelFor(x => x.CourseCredit) @Html.TextBoxFor(x => x.CourseCredit)
}