@model EMIS.ViewModel.ExamPersonControlView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopSchoolYear = new ComboGridOptions { TextField = "Code", ValueField = "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, }, //OnSelect = "cgopSchoolYearSelect", OnChange = "cgopSchoolYearSelect" }; ComboGridOptions cgopBatch = new ComboGridOptions { TextField = "Name", ValueField = "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" OnChange = "cgopBatchSelect" }; ComboGridOptions cgopBatchProject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationProjectID", 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 = "cgopBatchProjectSelect" OnChange = "cgopBatchProjectSelect" }; ComboGridOptions cgopExamType = new ComboGridOptions { TextField = "ExaminationType", ValueField = "ExaminationTypeID", ID = "ExaminationTypeID", Name = "ExaminationTypeID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4}, }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamTypeListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }, //OnSelect = "cgopExamTypeSelect" OnChange = "cgopExamTypeSelect" }; ComboGridOptions cgopProjectFee = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationProjectFeeID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="收费标准名称", Align=AlignStyle.Center ,Width=0.3} }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationProjectFeeViewByBaseGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false }, }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.HiddenFor(x => x.ExaminationBatchProjectPersonControlID)
批次报名控制信息
@if (Request.QueryString["Type"] != "1") {
@Html.ContextMenuBar("Edit")
}
@* *@
@Html.LabelFor(x => x.SchoolYearCode): @Html.ComboGridFor(x => x.SchoolYearCode, cgopSchoolYear) @Html.LabelFor(x => x.ExaminationBatchID): @Html.ComboGridFor(x => x.ExaminationBatchID, cgopBatch)
@Html.LabelFor(x => x.ExaminationTypeID): @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExamType) @Html.LabelFor(x => x.ProjectName): @Html.ComboGridFor(x => x.ExaminationProjectID, cgopBatchProject)
@Html.LabelFor(x => x.ExaminationProjectFeeID): @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopProjectFee) @Html.LabelFor(x => x.StartDate): @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.EndDate): @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.IsOnlinePay): @Html.CheckBox("IsOnlinePay", Model.IsOnlinePay == true)
@Html.LabelFor(x => x.ExaminationProjectFeeID): @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopProjectFee)
学生信息信息列表
@if (Request.QueryString["Type"] != "1") {
@Html.ContextMenuBar("EditList")
}
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName="UserID" }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExamPersonControl/List?ExaminationBatchProjectID=" + Model.ExaminationBatchProjectID + "&UserID=" + Model.UserID), IsPostBack = true, ID = "dgStudentList", IsPagination = true, // QueryParams = new { ExaminationBatchProjectID = Model.ExaminationBatchProjectID, UserID = Model.UserID }, IsShowRowNumbers = true, IsSingleSelect = false })
}