@model EMIS.ViewModel.GraduationManage.GraduationRequirement.GrademajorRequirementView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Add"; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", //OnSelect = "QueryGrademajorDropdownList", ID = "GrademajorDropdown", Name = "GrademajorDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new BoundFieldColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center }, new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Width=0.1, Align=AlignStyle.Center,IsHidden = true }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, }, new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Width=0.1, Align=AlignStyle.Center, IsHidden = true }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.1, Align=AlignStyle.Center, IsHidden = true }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Width=0.1, Align=AlignStyle.Center, IsHidden = true } }, 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.LabelFor(x => x.GrademajorName) @Html.ComboGridFor(x => x.GrademajorID, cgop) @Html.LabelFor(x => x.TotalCredit) @Html.TextBoxFor(x => x.TotalCredit)
@Html.LabelFor(x => x.RequiredCredit) @Html.TextBoxFor(x => x.RequiredCredit) @Html.LabelFor(x => x.OptionalCourseCredit) @Html.TextBoxFor(x => x.OptionalCourseCredit)
}