@model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorSpecialtyView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "reload", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopcollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
辅修专业信息
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@Html.HiddenFor(x => x.GrademinorID) @Html.Hidden("MinorSpecialtyCourse") @Html.HiddenFor(x=>x.YearID)
@Html.LabelFor(x => x.YearID): @Html.SchoolYearDropDownListFor(x => x.YearID, new DropdownListOptions { OnSelect = "reload", OnLoadSuccess = "reload"}) @Html.LabelFor(x => x.StandardName): @Html.ComboGridFor(x => x.StandardID, cgopStandard, new Dictionary { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
@Html.LabelFor(x => x.StudentLimit): @Html.TextBoxFor(x => x.StudentLimit) @Html.LabelFor(x => x.CollegeID): @Html.ComboGridFor(x => x.CollegeID, cgopcollege)
@Html.LabelFor(x => x.SchoolyearID): @Html.TextBoxFor(x=>x.SchoolyearCode) @Html.LabelFor(x => x.OpenStatusStr) @Html.TextBoxFor(x=>x.OpenStatusStr)
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorPlanID" }, new LinkButtonColumn { FieldName="SchoolcodeStr", HeaderText="学年学期", Align=AlignStyle.Center , Handle="edit", Width=0.08 }, new BoundFieldColumn { FieldName="YearID", HeaderText="年级", Align=AlignStyle.Center , Width=0.04}, new BoundFieldColumn { FieldName="SpecialtyCode", HeaderText="专业代码", Align=AlignStyle.Center , Width=0.05 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05}, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05}, new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03}, new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.05}, new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.05}, new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.05}, new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.04}, new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.05}, new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.05}, new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center}, new BoundFieldColumn { FieldName="CollegeName", HeaderText="开课"+@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center}, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/MinorSpecialtyPlan/GetListByMinorSpecialtyID?MinorSpecialtyID=") + @Model.GrademinorID, ID = "dgMinorSpecialtyPlanList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}