@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgopSchoolYear = new ComboGridOptions { TextField = "Code", ValueField = "SchoolYearID", ID = "SchoolYearID", Name = "SchoolYearID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2}, new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2}, new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2}, }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SchoolYear/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } , SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnChange = "cgopSchoolYearSelect", OnSelect = "cgopSchoolYearSelect" }; ComboGridOptions cgopExamType = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationTypeID", ID = "ExaminationTypeID", Name = "ExaminationTypeID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4}, }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchExamTypeListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }, OnSelect = "cgopExamTypeSelect" }; ComboGridOptions cgopBatch = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationBatchID", ID = "ExaminationBatchID", Name = "ExaminationBatchID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center ,Width=0.3} }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationBatch/GetProjectListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }, OnSelect = "cgopBatchSelect" }; ComboGridOptions cgopBatchProject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationBatchProjectID", ID = "ExaminationBatchProjectID", Name = "ExaminationBatchProjectID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3} }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchProjectListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } , OnSelect = "reload" }; } @section scripts{ }
@Html.Position()
查询条件
@Html.Hidden("SelectedID") @Html.PositionCondition()
  • 学年学期:
  • @Html.ComboGrid(cgopSchoolYear, new Dictionary { { "data-condition", "dgList" } })
  • 考试批次:
  • @Html.ComboGrid(cgopBatch, new Dictionary { { "data-condition", "dgList" } })
  • 考试类型:
  • @Html.ComboGrid(cgopExamType, new Dictionary { { "data-condition", "dgList" } })
  • 项目名称:
  • @Html.ComboGrid(cgopBatchProject, new Dictionary { { "data-condition", "dgList" } })
  • 报名起始时间:
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "StartDate", ID = "StartDate", OnChange = "startDateChanged" }, new Dictionary { { "data-condition", "dgList" } })
  • 报名结束时间:
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "EndDate", ID = "EndDate", OnChange = "endDateChanged" }, new Dictionary { { "data-condition", "dgList" } })
考试批次设置信息列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationBatchProjectID"}, new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1, }, new LinkButtonColumn { FieldName="BatchName", HeaderText="考试批次", Align=AlignStyle.Center, Width=0.1, Handle="edit" }, new BoundFieldColumn { FieldName="StartDate", HeaderText="报名起始时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay }, new BoundFieldColumn { FieldName="EndDate", HeaderText="报名结束时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay }, new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width=0.06,}, new BoundFieldColumn { FieldName="SimulateTime", HeaderText="预考试时间", Align=AlignStyle.Center, Width=0.1}, new BoundFieldColumn { FieldName="Training", HeaderText="培训情况", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay }, new BoundFieldColumn { FieldName="TakeCourseTime", HeaderText="预开课时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay }, new BoundFieldColumn { FieldName="MaxRegistCount", HeaderText="最大报名人数", Align=AlignStyle.Center, Width=0.1 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchProjectListViewGrid"), ID = "dgList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsPostBack = true })