@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "TeacherEdit"; } @section scripts{ }
选择教师
@Html.ContextMenuBar("TeacherEdit")
教师列表
@Html.DataGrid(new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="UserID", IsHidden=true }, new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeachingMethodDesc", Align=AlignStyle.Center }, new LinkButtonColumn { Text="删除", Handle="delTeacher" } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/OptionalCourseSetting/TeacherList?optionalCourseID=" + Request["OptionalCourseID"]), ID = "dgTeacherList", IsAutoLoad = true, IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
添加教师
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary { { "data-condition", "dgStaffList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown" }, new Dictionary { { "data-condition", "dgStaffList" } })
  • 教职工号:
  • @Html.TextBox(new TextBoxOptions() { ID = "LoginID", Name = "LoginID" }, new Dictionary { { "data-condition", "dgStaffList" } })
  • 教师姓名:
  • @Html.TextBox(new TextBoxOptions() { ID = "Name", Name = "Name" }, new Dictionary { { "data-condition", "dgStaffList" } })
  • 查询
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" }, new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center, DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/ListForTeacherEdit"), ID = "dgStaffList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })