@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgopSchoolYear = new ComboGridOptions { TextField = "Code", ValueField = "SchoolYearID", ID = "SchoolYearCode", Name = "SchoolYearCode", 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 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 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("~/ExamProjectControl/GetControlExamTypeListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }, OnSelect = "cgopExamTypeSelect" }; 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("~/ExamProjectControl/GetControlProjectListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } , OnSelect = "reload" }; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "CollegeID", ID = "CollegeID", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, //OnLoadSuccessFun = "queryClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, }, OnSelect = "reload" }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", //OnSelect = "queryStandard", Name = "StandardID", ID = "StandardID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"), 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.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearID", Name = "SchoolyearID", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • 专业:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgList" } }) @*@Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "StandardID", Name = "StandardID", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })*@
  • 能否线上缴费:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemList = new List() { new DropdownListItem { Text = "是", Value = "true" }, new DropdownListItem { Text = "否", Value = "false" } }, ID = "IsOnlinePay", Name = "IsOnlinePay", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
批次报名控制列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationBatchProjectControlID"}, new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center }, new LinkButtonColumn { FieldName="ExaminationBatchProject", HeaderText="考试批次", Align=AlignStyle.Center , Handle="edit" }, new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ProjectName", HeaderText="项目名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationProjectFee", HeaderText="收费标准名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IsOnlinePayName", HeaderText="能否线上缴费", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExamProjectControl/List"), ID = "dgList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })