StudentBatchSelect.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //获取选中的数据
  2. function validChoose() {
  3. var d = [];
  4. $.each($("#dgList").cmsXDataTable("getSelections"), function (index) {
  5. d.push(this);
  6. });
  7. return d;
  8. }
  9. //联动查询
  10. function queryStandard(data) {
  11. reload();
  12. }
  13. function queryCollege(data) {
  14. var campusID = $("#cbgCampus").combogridX("getValue");
  15. var collegeID = $("#cbgCollege").combogridX("getValue");
  16. var jsonString = "({'QueryParamsDatas':'cbgCampus|*|" + campusID + "|@|";
  17. jsonString += "cbgCollege|*|" + collegeID + "|@|'})";
  18. $("#cbgCollege").combogridX("reload", eval(jsonString));
  19. $("#cbgStandard").combogridX("reload", eval(jsonString));
  20. reload();
  21. }
  22. function reload() {
  23. $("#dgList").cmsXDataTable("load", $.getDataGridParams("dgList"));
  24. }
  25. function BatchSelect_Confirm() {
  26. var d = validChoose();
  27. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  28. if (d.length == 0) {
  29. $.messager.alert("系统提示", "请选择要批量处理的学生。");
  30. return;
  31. }
  32. top.$("#" + windowID).data("resultData", d);
  33. top.$("#" + windowID).dialog("close");
  34. }