123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- //刷新
- 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 " <span style=\"color: red;\">" + value + "</span>";
- }
- //设置相应的行字体颜色为红色
- 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();
- }
|