@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
@Html.PositionCondition() @Html.Hidden("selectedIDs")
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "schoolyearChange", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "schoolyearChange" }, new Dictionary { { "data-condition", "dgTrainingClassList" } })
  • 考试批次:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationBatch", Name = "ddlExaminationBatch", OnSelect = "examinationBatchChange", OnLoadSuccess = "examinationBatchChange" }, new Dictionary { { "data-condition", "dgTrainingClassList" } })
  • 考试类型:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationType", Name = "ddlExaminationType", OnSelect = "examinationTypeChange", OnLoadSuccess = "examinationTypeChange" }, new Dictionary { { "data-condition", "dgTrainingClassList" } })
  • 项目名称:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationProject", Name = "ddlExaminationProject", OnSelect = "reload", OnLoadSuccess = "reload" }, new Dictionary { { "data-condition", "dgTrainingClassList" } })
  • 校区:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgTrainingClassList" } })
培训班级列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="TrainingClassID"}, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="考试批次", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="项目名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="培训班名", Align=AlignStyle.Center }, new LinkButtonColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Handle="studentList" } }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TrainingClass/List"), ID = "dgTrainingClassList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })