//刷新 function reload() { $("#dgNewStudentEnterDoubtList").cmsXDataTable("load", $.getDataGridParams("dgNewStudentEnterDoubtList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgNewStudentEnterDoubtList").cmsXDataTable("getSelections"), function (index) { d.push(this.NewStudentID); }); return d; } //确定生成成功后不关闭弹出页面 function formSuccessReloadNoClose(data) { if (data.IsSuccess == true) { reload(); } $.messager.alert("系统提示", data.Message); } //审核(确定) function DoubtApproveConfirm() { var d = validChoose().join(','); if (d == "") { $.messager.alert("系统提示", "请选择您要审核的信息。"); return; } $.messager.confirm("系统提示", "您确定要对选择的已标记名单进行审核通过?", function (r) { if (r) { $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/NewStudentEnter/DoubtList', { newStudentIDs: d }, function (data) { if (data.IsSuccess = true) { $.messager.alert("系统提示", data.Message); $("#dgNewStudentEnterDoubtList").cmsXDataTable('load'); } else { $.messager.alert("系统提示", data.Message); } }); } }); } //设置列颜色为红色 function SetRedColumn(index, row, value) { return " " + value + ""; } //设置相应的行字体颜色为红色 function SetRowGrid(rowIndex, rowData) { if (rowData.IsDoubt == true) { return "color: red;"; } else { return ""; } } //设置相应的行背景颜色 function SetRowBackgroundGrid(rowIndex, rowData) { if (rowData.IsDoubt == true) { return "background-color: yellow;"; } else { return ""; } } //Excel导出 function NewStudentEnter_DoubtExport() { //$(document.forms[0]).attr("action", CMS_SystemConfig.VirtualDirectoryPath + "/NewStudentEnter/Excel_NewStudentEnterDoubt"); $("#formQuery").submit(); } //联动查询 function queryCampus(data) { var campusID = $("#CampusDropdown").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})"; $("#CollegeDropdown").combogridX("reload", eval(jsonString)); reload(); } function queryCollege(data) { var campusID = $("#CampusDropdown").combogridX("getValue"); var collegeID = $("#CollegeDropdown").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|"; jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})"; $("#CollegeDropdown").combogridX("reload", eval(jsonString)); reload(); } function queryGrade(data) { reload(); } function queryStandard(data) { reload(); }