@model EMIS.ViewModel.ExaminationApply.StudentListView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; List lct = ViewData["lct"] as List; ComboGridOptions cgopExaminationBatch = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationBatchID", ID = "cgExaminationBatch", Name = "cgExaminationBatch", OnSelect = "queryBatch", //IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "queryBatch", } }; ComboGridOptions cgopExaminationType = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationTypeID", Name = "cgExaminationType", ID = "cgExaminationType", OnSelect = "queryType", //IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationTypeViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "queryType", } }; ComboGridOptions cgopExaminationProject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationProjectID", Name = "cgExaminationProject", ID = "cgExaminationProject", OnSelect = "queryProject", //IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "queryProject", } }; ComboGridOptions cgopExaminationProjectFee = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationProjectFeeID", Name = "cgExaminationProjectFee", ID = "cgExaminationProjectFee", OnSelect = "queryProjectFee", //OnChange = "queryFeeType", //IsEnabled = false, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="收费标准", Align=AlignStyle.Center, Width = 0.4 } }, //OnLoadSuccessFun = "queryFeeType", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationProjectFeeViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "queryProjectFee", } }; ComboGridOptions cgopFeeType = new ComboGridOptions { TextField = "Name", ValueField = "Value", Name = "cgFeeType", ID = "cgFeeType", //OnSelect = "reload", SelectedValue = Model.FeeTypeID, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="收费项", Align=AlignStyle.Center, Width = 0.2 } }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetFeeTypeViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@using (Html.BeginForm("Edit", "ExaminationApplayStudentList", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" })) {
新增报名名单
@Html.ContextMenuBar("Add")
@Html.HiddenFor(x => x.ExaminationRegistrationID)
@Html.LabelFor(x => x.SchoolyearCode): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "querySchoolYear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "querySchoolYear" }) @***@ @Html.LabelFor(x => x.ExaminationBatchName): @*@Html.DropdownListFor(x => x.ExaminationBatchID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationBatch/DropDownList?bindType=0"), ID = "ddlExaminationBatch", Name = "ddlExaminationBatch", OnSelect = "examinationBatchChange", //OnLoadSuccess = "examinationBatchChange" })*@ @Html.ComboGridFor(x => x.ExaminationBatchID, cgopExaminationBatch) @***@
@Html.LabelFor(x => x.ExaminationTypeName): @*@Html.DropdownListFor(x => x.ExaminationTypeID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExamBatchProject/TypeDropDownList?bindType=0"), ID = "ddlExaminationType", Name = "ddlExaminationType", OnSelect = "examinationTypeChange", //OnLoadSuccess = "examinationTypeChange" })*@ @Html.ComboGridFor(x => x.ExaminationTypeID, cgopExaminationType) @***@ @Html.LabelFor(x => x.ExaminationProjectName): @*@Html.DropdownListFor(x => x.ExaminationProjectID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExamBatchProject/DropDownList?bindType=0"), ID = "ddlExaminationProject", Name = "ddlExaminationProject", OnSelect = "queryProjectFee", //OnLoadSuccess = "queryProjectFee" })*@ @Html.ComboGridFor(x => x.ExaminationProjectID, cgopExaminationProject) @***@
@Html.LabelFor(x => x.ExaminationProjectFeeName): @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopExaminationProjectFee) @***@ @Html.LabelFor(x => x.FeeTypeName): @Html.ComboGridFor(x => x.FeeTypeID, cgopFeeType) @***@
@Html.LabelFor(x => x.Remark): @Html.TextAreaFor(x => x.Remark, new { style = "width: 98%;" }) @***@
@Html.ContextMenuBar("Edit-StudentGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName="UserID" }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center, Width=0.12 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/StudentList?examinationRegistrationID=" + Model.ExaminationRegistrationID), IsPostBack = true, ID = "dgStudentList", IsPagination = false, IsShowRowNumbers = false, IsSingleSelect = false })
}