@model EMIS.ViewModel.SelectCourse.OptionalCourseSettingView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", OnSelect = "QueryGrademajorGridOptions", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/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.OptionalCourseID) @Html.HiddenFor(x => x.SpecialtyCourseID)
@Html.LabelFor(x => x.GrademajorID): @Html.ComboGridFor(x => x.GrademajorID, cgop, new Dictionary { { "data-condition", "dgGrademajorAndSpecialtyCourseList" } }) @Html.LabelFor(x => x.HandleModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID))
@Html.LabelFor(x => x.PeopleNumlimit): @Html.TextBoxFor(x => x.PeopleNumlimit) @Html.LabelFor(x => x.PeopleNumlower) @Html.TextBoxFor(x => x.PeopleNumlower)
@Html.LabelFor(x => x.IsNeedMaterial): @Html.CheckBoxFor(x => x.IsNeedMaterial) @Html.LabelFor(x => x.IsOpened): @Html.CheckBoxFor(x => x.IsOpened)
@Html.LabelFor(x => x.SpecialtyCourseID): @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyCourseID" }, new BoundFieldColumn { FieldName="StandardCode", HeaderText="标准专业代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardName", HeaderText="标准专业名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center } }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/OptionalCoursePlan/GrademajorAndSpecialtyCourseViewList"), ID = "dgGrademajorAndSpecialtyCourseList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.LabelFor(x => x.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width:500px;" } })
}