@model EMIS.ViewModel.GraduationManage.GraduationRequirement.GrademajorRequirementView @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 } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@*专业学分信息*@
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.GraduationRequirementID)
@Html.LabelFor(x => x.GrademajorName): @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor, new Dictionary { { "style", "width:85%;" } }) @*@Html.TextBoxFor(x => x.GrademajorName, new TextBoxOptions() { IsEnabled = false }, new Dictionary { { "style", "width:85%;" } })*@ @Html.LabelFor(x => x.OptionalCourseCredit): @Html.TextBoxFor(x => x.OptionalCourseCredit)
@Html.LabelFor(x => x.RequiredCredit): @Html.TextBoxFor(x => x.RequiredCredit) @Html.LabelFor(x => x.TotalCredit): @Html.TextBoxFor(x => x.TotalCredit)
}