StudentViewSelect.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. function reload() {
  2. $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
  3. }
  4. //获取选中的数据
  5. function validChoose() {
  6. var d = [];
  7. $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
  8. d.push(this);
  9. });
  10. return d;
  11. }
  12. function queryGrade(data) {
  13. if (data && $("#GrademajorComboGrid").length > 0 && $.data($("#GrademajorComboGrid")[0], "combogridX")) {
  14. var collegeID = $("#CollegeComboGrid").combogridX("getValue");
  15. if (collegeID != nonSelect) {
  16. var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
  17. $("#GrademajorComboGrid").combogridX("reload", eval(jsonString));
  18. }
  19. }
  20. }
  21. function queryClass(data) {
  22. if (data && $("#ClassmajorComboGrid").length > 0 && $.data($("#ClassmajorComboGrid")[0], "combogridX")) {
  23. var grademajorID = $("#GrademajorComboGrid").combogridX("getValue");
  24. if (grademajorID != nonSelect) {
  25. var jsonString = "({'QueryParamsDatas':'GrademajorComboGrid|*|" + grademajorID + "|@|'})";
  26. $("#ClassmajorComboGrid").combogridX("reload", eval(jsonString));
  27. }
  28. }
  29. }
  30. function queryStudent(data) {
  31. if (data && $("#dgStudentList").length > 0 && $.data($("#dgStudentList")[0], "cmsXDataTable")) {
  32. var classmajorID = $("#ClassmajorComboGrid").combogridX("getValue");
  33. if (classmajorID != nonSelect) {
  34. reload();
  35. }
  36. }
  37. }
  38. //院系所
  39. function SelectCollegeComboGrid() {
  40. var collegeID = $("#CollegeComboGrid").combogridX("getValue");
  41. if (collegeID != nonSelect) {
  42. var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
  43. $("#GrademajorComboGrid").combogridX("reload", eval(jsonString));
  44. }
  45. }
  46. function SelectGrademajorComboGrid() {
  47. var grademajorID = $("#GrademajorComboGrid").combogridX("getValue");
  48. if (grademajorID != nonSelect) {
  49. var jsonString = "({'QueryParamsDatas':'GrademajorComboGrid|*|" + grademajorID + "|@|'})";
  50. $("#ClassmajorComboGrid").combogridX("reload", eval(jsonString));
  51. }
  52. //reload();
  53. }
  54. //学生姓名查询
  55. function SelectStudentComboGrid() {
  56. reload();
  57. }