@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(), OnSelect = "cgopSchoolYearSelect", OnChange = "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("~/ExamPersonControl/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("~/ExamPersonControl/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 = "reloadClass", }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorID", ID = "ClassmajorID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), 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 = "Years", Name = "Years", OnSelect = "reloadClass" }, new Dictionary { { "data-condition", "dgList" } })
  • 专业:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "StandardID", Name = "StandardID", OnSelect = "reloadClass" }, new Dictionary { { "data-condition", "dgList" } })
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgList" } })
批次报名控制列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectCountLimitID"}, new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1 }, new LinkButtonColumn { FieldName="ExaminationBatchProject", HeaderText="考试批次项目", Align=AlignStyle.Center , Handle="edit",Width=0.1 }, new BoundFieldColumn { FieldName="ExaminationType", HeaderText="项目类型", Align=AlignStyle.Center,Width=0.1 }, new BoundFieldColumn { FieldName="ProjectName", HeaderText="项目名称", Align=AlignStyle.Center,Width=0.1 }, new BoundFieldColumn { FieldName="IsOnlinePayName", HeaderText="是否在线缴费", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center,Width=0.1 }, new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center,Width=0.1 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center,Width=0.1 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center,Width=0.14 }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.04 }, new BoundFieldColumn { FieldName="EndDate", HeaderText="报名截止时间", Align=AlignStyle.Center , Formatter= Formatter.OnlyYearMonthDay,Width=0.1 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExamPersonControl/List"), ID = "dgList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })