@model EMIS.ViewModel.EvaluationManage.EvaluationManage.EvaluationCollegeScoreView @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 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(cgopCourse)
  • 任课教师:
  • @Html.ComboGrid(cgopStaff)
  • 学年学期:
  • @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { TextField = "Text", ValueField = "Value", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownBeforeCurrent"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })
}