123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- @model EMIS.ViewModel.RetakeManage.RetakePlanTaskView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "StudentSelect";
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "";
- function reload() {
- $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.UserID);
- });
- return d;
- }
- //确定报名
- function Student_Confirm() {
- var listData = validChoose();
- if (listData.length < 1) {
- $.messager.alert("系统提示", "请选择要报名的名单。");
- return;
- }
- $("#UserIDs").val(listData.join(","));
- $("#RetakePlanID").val('@ViewBag.RetakePlanID');
- $.messager.confirm("系统提示", "您确定要对选择的名单进行报名?", function (r) {
- if (r) {
- $(document.forms[0]).submit();
- }
- });
- }
- //确定报名成功后不关闭弹出页面
- function formSuccessReloadNoClose(data) {
- if (data.IsSuccess == true) {
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }
- function queryStandard() {
- if ($.data($("#ddlYear")[0], "combobox")) {
- var parameterString = "";
- var collegeID = $("#cbgCollege").combogridX("getValue");
- var year = $("#ddlYear").combobox("getValue");
- if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@@|";
- if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#cbgStandard").combogridX("reload", eval(jsonString));
- } else {
- $("#cbgStandard").combogridX("reload");
- }
- }
- }
- function queryClassmajor() {
- var parameterString = "";
- var collegeID = $("#cbgCollege").combogridX("getValue");
- var year = $("#ddlYear").combobox("getValue");
- var standard = $("#cbgStandard").combogridX("getValue");
- if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@@|";
- if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@@|";
- if (standard != nonSelect && standard != "") parameterString += "DictionaryStandard|*|" + standard + "|@@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#cbgClassmajor").combogridX("reload", eval(jsonString));
- } else {
- $("#cbgClassmajor").combogridX("reload");
- }
- reload();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <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;">
- <div class="current_navbar toolbar">
- <div class="func_info">
- <a class="easyui-linkbutton" href="javascript:Student_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
- onfocus="this.blur()">确定</a>
- </div>
- </div>
- </div>
- </div>
- @using (Ajax.BeginForm(new AjaxOptions
- {
- //报名成功不关闭窗口(并且刷新列表信息)
- OnSuccess = "formSuccessReloadNoClose",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- @Html.HiddenFor(x => x.RetakePlanID)
- @Html.HiddenFor(x => x.UserIDs)
- }
- @Html.PositionCondition("StudentSelect", null)
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">年级:</li>
- <li class="sv">
- @Html.SchoolYearDropDownList(new DropdownListOptions
- {
- ID = "ddlYear",
- Name = "ddlYear",
- BindType = DropdownListBindType.SelectAll,
- OnSelect = "queryStandard"
- },
- new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">专业名称:</li>
- <li class="sv">
- @Html.ComboGrid(new ComboGridOptions
- {
- ID = "cbgStandard",
- Name = "cbgStandard",
- TextField = "StandardName",
- ValueField = "StandardID",
- OnSelect = "queryClassmajor",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
- },
- //IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">班级名称:</li>
- <li class="sv">
- @Html.ComboGrid(new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- Name = "cbgClassmajor",
- ID = "cbgClassmajor",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.25 }
- },
- //IsAutoLoad = false,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- <li class="sn" style="padding-left: 5px; color: red;">在校状态:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
- {
- ID = "DictionaryInschoolStatus",
- Name = "DictionaryInschoolStatus",
- BindType = DropdownListBindType.SelectAll,
- SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes,
- OnSelect = "reload"
- },
- new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
- </li>
- </ul>
- </div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
- new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
- //new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CourseTypeDesc", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="CourseCredit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="SchoolyearNumDesc", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="StarttermDesc", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.08 },
- //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="ApplyStatusName", HeaderText="报名状态", Align=AlignStyle.Center, Width=0.04 }
- },
- PageSize = 20,
- IsAutoLoad = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/RetakePlanResultTask/BaseStudentViewList?RetakePlanID=" + ViewBag.RetakePlanID),
- ID = "dgStudentList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoHeight = false,
- })
- </div>
- </div>
|