123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- @model EMIS.ViewModel.ExaminationApply.StudentListView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- List<ListControlItem> lct = ViewData["lct"] as List<ListControlItem>;
- ComboGridOptions cgopExaminationBatch = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationBatchID",
- ID = "cgExaminationBatch",
- Name = "cgExaminationBatch",
- OnSelect = "queryBatch",
- //IsEnabled = false,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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<DataGridColumn>()
- {
- 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{
- <script src="~/Scripts/Business/ExaminationApply/Add.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("Edit", "ExaminationApplayStudentList", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 新增报名名单
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Add")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.ExaminationRegistrationID)
- <table cellpadding="0" cellspacing="0" id="educationMissionClasstable">
- <tr>
- <td>
- @Html.LabelFor(x => x.SchoolyearCode):
- </td>
- <td>
- @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"
- })
- @*<span style="color:red">*</span>*@
- </td>
- <td>
- @Html.LabelFor(x => x.ExaminationBatchName):
- </td>
- <td>
- @*@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)
- @*<span style="color:red">*</span>*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationTypeName):
- </td>
- <td>
- @*@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)
- @*<span style="color:red">*</span>*@
- </td>
- <td>
- @Html.LabelFor(x => x.ExaminationProjectName):
- </td>
- <td>
- @*@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)
- @*<span style="color:red">*</span>*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.ExaminationProjectFeeName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ExaminationProjectFeeID, cgopExaminationProjectFee)
- @*<span style="color:red">*</span>*@
- </td>
- <td>
- @Html.LabelFor(x => x.FeeTypeName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.FeeTypeID, cgopFeeType)
- @*<span style="color:red">*</span>*@
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @Html.TextAreaFor(x => x.Remark, new { style = "width: 98%;" })
- @*<span style="color:red">*</span>*@
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 学生信息:
- </label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar("Edit-StudentGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|