12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //刷新
- 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 " <span style=\"color: red;\">" + value + "</span>";
- }
- //联动查询
- function queryCollege(data) {
- reload();
- }
- function queryGrade(data) {
- reload();
- }
- function queryStandard(data) {
- reload();
- }
|