@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "UserID", Name = "StaffComboGrid", GridOptions = new DataGridOptions { Columns = new List() { // new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Staff/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopcollge = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeComboGrid", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopcollge, new Dictionary { { "data-condition", "dgTeacherScheduleSettingList" } })
  • 教职工:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgTeacherScheduleSettingList" } })
  • 教职工类别:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_TeacherType, new DropdownListOptions { Name = "DictionaryTeacherType", BindType = DropdownListBindType.SelectAll }, new Dictionary { { "data-condition", "dgTeacherScheduleSettingList" } })
  • 在职状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_IncumbencyState, new DropdownListOptions { Name = "DictionaryIncumbencyState", BindType = DropdownListBindType.SelectAll }, new Dictionary { { "data-condition", "dgTeacherScheduleSettingList" } })
  • 查询
  • 职称:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Title, new DropdownListOptions { Name = "DictionaryTitle", BindType = DropdownListBindType.SelectAll }, new Dictionary { { "data-condition", "dgTeacherScheduleSettingList" } })
教师可排时间设置列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" }, new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center , Handle="edit"}, new BoundFieldColumn { FieldName="StaffName", HeaderText="教职工名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="TeacherTypeName", HeaderText="教职工类型", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IncumbencyStateName", 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 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeacherScheduleSetting/List"), ID = "dgTeacherScheduleSettingList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })