ClassStudentStatisticsList.js 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. function queryStandard(data) {
  2. queryClass();
  3. reload();
  4. }
  5. function queryCollege(data) {
  6. var campusID = $("#CampusDropdown").combogridX("getValue");
  7. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  8. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
  9. jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
  10. // if (campusID != nonSelect) {
  11. // var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
  12. // $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  13. // }
  14. queryClass();
  15. reload();
  16. }
  17. function queryClass() {
  18. var jsonString = "";
  19. var parameterString = "";
  20. var campusID = $("#CampusDropdown").combogridX("getValue");
  21. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  22. //var educationID = $("#Education").combobox("getValue");
  23. var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
  24. var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
  25. //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
  26. if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  27. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  28. //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  29. if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  30. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  31. //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  32. if (parameterString != "") {
  33. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  34. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  35. $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
  36. } else {
  37. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  38. $("#ClassmajorDropdown").combogridX("reload");
  39. }
  40. reload();
  41. }
  42. function reload() {
  43. $("#dgList").cmsXDataTable("load", $.getDataGridParams("dgList"));
  44. $("#dgClassStudentStatisticsList").cmsXDataTable("load", $.getDataGridParams("dgClassStudentStatisticsList"));
  45. }
  46. function ClassStudentStatisticsList_Export() {
  47. $(document.forms[0]).submit();
  48. }
  49. function ClassStudentStatisticsList_Report() {
  50. $.popupTopWindow('考试报名班级学生统计', CMS_SystemConfig.VirtualDirectoryPath + "/ExaminationApplayStudentList/ClassStudentStatisticsReport?"
  51. + "&ExaminationSubjectID=" + $("#ddlExaminationSubject").combogridX("getValue") + "&SchoolYearID=" + $("#SchoolYearDropdown").combobox("getValue"), 800, 550, null, null);
  52. }
  53. function SelectExaminationSubjectDropdown(data) {
  54. var jsonString = "({'QueryParamsDatas':'SchoolYearDropdown|*|" + $("#SchoolYearDropdown").combobox("getValue") + "|@|'})";
  55. $("#ddlExaminationSubject").combogridX("reload", eval(jsonString));
  56. reload();
  57. }
  58. function QueryExaminationSubjectDropdown(data) {
  59. var jsonString = "({'QueryParamsDatas':'SchoolYearDropdown|*|" + $("#SchoolYearDropdown").combobox("getValue") + "|@|'})";
  60. $("#ddlExaminationSubject").combogridX("reload", eval(jsonString));
  61. reload();
  62. }