//刷新 function reload() { $("#dgUnAssignNewStudentList").cmsXDataTable("load", $.getDataGridParams("dgUnAssignNewStudentList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgUnAssignNewStudentList").cmsXDataTable("getSelections"), function (index) { d.push(this.NewStudentID); }); return d; } //确定生成成功后不关闭弹出页面 function formSuccessReloadNoClose(data) { if (data.IsSuccess == true) { reload(); } $.messager.alert("系统提示", data.Message); } //确定 function AssignCollegeConfirm() { var collegeID = $("#CollegeID").combogridX("getValue"); if (collegeID == "" || collegeID == -1 || collegeID == null) { $.messager.alert("系统提示", "请选择要分配的" + college + "。"); return; } var d = validChoose(); if (d == "") { $.messager.alert("系统提示", "请选择您要分配的信息。"); return; } $("#newStudentIDs").val(JSON.stringify(d)); $(document.forms[0]).submit(); } //设置列颜色为红色 function SetRedColumn(index, row, value) { return " " + value + ""; } //联动查询 function queryCollege(data) { reload(); } function queryGrade(data) { reload(); } function queryStandard(data) { reload(); }