@using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgop = new ComboGridOptions { TextField = "ClassName", ValueField = "EducationMissionID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClass/EducationMissionClassConjunctionList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCoursematerial = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", Name = "ComboGridCoursematerial", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "ComboGridCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), 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" })) {
教学任务列表
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdownList" }, new Dictionary { { "data-condition", "dgEducationMissionConjunctionList" } })
  • 任务班名称:
  • @Html.TextBox(new TextBoxOptions { Name = "TextClassName" }, new Dictionary { { "data-condition", "dgEducationMissionConjunctionList" } })
  • 课程名称:
  • @Html.ComboGrid(cgopCoursematerial, new Dictionary { { "data-condition", "dgEducationMissionConjunctionList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgEducationMissionConjunctionList" } })
  • 查询
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationMissionID" }, new BoundFieldColumn { FieldName="SchoolYearCode", HeaderText="学年学期", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, OverflowLength = 30 }, new BoundFieldColumn { FieldName="CoursematerialID", HeaderText="课程ID",IsHidden=true, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Population", HeaderText="班级人数", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachingModeNames", HeaderText="授课方式", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionClass/EducationMissionConjunctionList"), ID = "dgEducationMissionConjunctionList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}