@model EMIS.ViewModel.MinorManage.MinorPlanManage.MinorPlanApplyView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var DataRange = ViewBag.DataRange; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeDropdown", ID = "CollegeDropdown", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), 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", Name = "CollegeDropdown", ID = "CollegeDropdown", IsEnabled=false, GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } 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, } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "formSuccessReloadNoClose", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
辅修申请信息
@Html.ContextMenuBar("Apply")
@Html.HiddenFor(x => x.GradeMinorApplicationID) @Html.Hidden("MinorSpecialtyCourse") @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" }, new Dictionary { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } }) @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, new Dictionary { { "data-condition", "dgStandardAndMinorSpecialtyCourseViewList" } })
@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 = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/MinorPlanApply/StandardAndMinorSpecialtyCourseViewList"), ID = "dgStandardAndMinorSpecialtyCourseViewList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}