@model EMIS.ViewModel.EvaluationManage.StudentEvaluation.EvaluationStudentSettingView @using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "Create"; //校区 ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "queryCampus", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "queryCollege", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //教研室 ComboGridOptions cgopDepartment = new ComboGridOptions { TextField = "Name", ValueField = "DepartmentID", ID = "DepartmentDropdown", Name = "DepartmentDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="开课教研室代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Department/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //年级 ComboGridOptions cgopGrade = new ComboGridOptions { TextField = "GradeID", ValueField = "GradeID", ID = "DictionaryGrade", Name = "DictionaryGrade", OnSelect = "queryGrade", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/GradeBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //专业名称 ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", ID = "DictionaryStandard", Name = "DictionaryStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //课程信息 ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", ID = "CourseComboGrid", Name = "CourseComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //教师信息 ComboGridOptions cgopStaff = new ComboGridOptions { TextField = "Name", ValueField = "UserID", ID = "StaffComboGrid", Name = "StaffComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StaffCode", HeaderText="教师工号", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { //生成成功后不关闭弹出页面 OnSuccess = "EMISFunction.FormSuccessNoClose", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Create")
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus)
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege)
  • 开课教研室:
  • @Html.ComboGrid(cgopDepartment)
  • 年级:
  • @*@Html.ComboGrid(cgopGrade)*@ @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "DictionaryGrade", Name = "DictionaryGrade", OnSelect = "queryGrade" })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard)
  • 课程名称:
  • @Html.ComboGrid(cgopCourse)
  • 课程类型:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseType, DropdownListBindType.SelectAll, new ComboGridOptions() { ID = "DictionaryCourseType", Name = "DictionaryCourseType" })
  • 处理方式:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_HandleMode, DropdownListBindType.SelectAll, new ComboGridOptions() { ID = "DictionaryHandleMode", Name = "DictionaryHandleMode" })
  • 授课方式:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, DropdownListBindType.SelectAll, new ComboGridOptions() { ID = "DictionaryTeachingMode", Name = "DictionaryTeachingMode" })
  • 任课教师:
  • @Html.ComboGrid(cgopStaff)
  • 任课方式:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, DropdownListBindType.SelectAll, new ComboGridOptions() { ID = "DictionaryTeachingMethod", Name = "DictionaryTeachingMethod" })
  • 学年学期:
  • @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { TextField = "Text", ValueField = "Value", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })
}