@model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorPlanApplyView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var DataRange = ViewBag.DataRange; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "reload", Name = "StandardDictionaryDropDown", ID = "StandardDictionaryDropDown", IsEnabled=false, 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 } }; if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All) { cgopcollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", IsEnabled = false, 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.GradeMinorApplicationID) @Html.Hidden("MinorSpecialtyCourse") @Html.HiddenFor(x=>x.YearID) @if (DataRange != (int)EMIS.ViewModel.SYS_DataRange.All) { @Html.HiddenFor(x => x.CollegeID) }
@Html.LabelFor(x => x.YearID): @Html.SchoolYearDropDownListFor(x => x.YearID, new DropdownListOptions { OnSelect = "reload", OnLoadSuccess = "reload", IsEnabled = false }) @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.Remarks): @Html.TextAreaFor(x => x.Remarks, new Dictionary { { "style", "width: 98%;" } })
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorCourseID" }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }, new DictionaryDropdownListColumn { FieldName="StarttermID", HeaderText="开课学期",DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Startterm, Align=AlignStyle.Center }, new TextBoxColumn { FieldName="Credit", HeaderText="学分",IsRequired=true, Align=AlignStyle.Center }, new TextBoxColumn { FieldName="TheoryCourse", HeaderText="理论学时",IsRequired=true, Align=AlignStyle.Center }, new TextBoxColumn { FieldName="Practicehours", HeaderText="实践学时",IsRequired=true, Align=AlignStyle.Center }, new TextBoxColumn { FieldName="TheoryWeeklyNum", HeaderText="理论周次", Width=60 }, new TextBoxColumn { FieldName="PracticeWeeklyNum", HeaderText="实践周次", Width=60 }, new TextBoxColumn { FieldName="TrialWeeklyNum", HeaderText="实验周次", Width=60 }, new TextBoxColumn { FieldName="StartWeeklyNum", HeaderText="开始周次", IsRequired=true, Width=60 }, new TextBoxColumn { FieldName="EndWeeklyNum", HeaderText="结束周次", IsRequired=true, Width=60 }, new TextBoxColumn { FieldName="WeeklyHours", HeaderText="周学时", Width=60 }, new TextBoxColumn { FieldName="WeeklyNum", HeaderText="每周次数", Width=60 }, new BoundFieldColumn { FieldName="ResultTypeID", HeaderText="成绩类型", Align=AlignStyle.Center, Width=0.1, IsHidden=true }, new DictionaryDropdownListColumn { FieldName="HandleModeID", HeaderText="处理方式", DictionaryType=EMIS.ViewModel.DictionaryItem.CF_HandleMode, Align=AlignStyle.Center }, new CheckButtonColumn { FieldName="IsNeedMaterial", HeaderText="是否需要教材", Align=AlignStyle.Center } }, IsAutoLoad = true, IsCheckOnSelect = true, IsPostBack = true, DataSourceUrl = Url.Content("~/MinorPlanApply/existStandardAndMinorSpecialtyCourseViewList?GradeMinorApplicationID=" + Model.GradeMinorApplicationID), ID = "dgStandardAndMinorSpecialtyCourseViewList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}