StudentExport.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. function queryCollege(data) {
  2. //var campusID = $("#CampusDropdown").combogridX("getValue");
  3. var collegeID = $("#cgCollege").combogridX("getValue");
  4. var jsonString = "({'QueryParamsDatas':";
  5. jsonString += "'CollegeDropdown|*|" + collegeID + "|@|'})";
  6. $("#cgCollege").combogridX("reload", eval(jsonString));
  7. $("#ddlStandard").combogridX("reload", eval(jsonString));
  8. // if (campusID != nonSelect) {
  9. // var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
  10. // $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  11. // }
  12. queryClass();
  13. reload();
  14. }
  15. function queryGrademajor() {
  16. queryClass();
  17. }
  18. function queryClass() {
  19. var jsonString = "";
  20. var parameterString = "";
  21. //var campusID = $("#CampusDropdown").combogridX("getValue");
  22. var collegeID = $("#cgCollege").combogridX("getValue");
  23. //var educationID = $("#Education").combobox("getValue");
  24. var schoolYearID = $("#ddlYear").combobox("getValue");
  25. var standardID = $("#ddlStandard").combogridX("getValue");
  26. //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
  27. //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  28. if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  29. //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  30. if (schoolYearID != nonSelect && schoolYearID != "") parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  31. if (standardID != nonSelect && standardID != "") parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  32. //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  33. if (parameterString != "") {
  34. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  35. $("#ddlStandard").combogridX("reload", eval(jsonString));
  36. $("#cgClassmajor").combogridX("reload", eval(jsonString));
  37. } else {
  38. $("#ddlStandard").combogridX("reload");
  39. $("#cgClassmajor").combogridX("reload");
  40. }
  41. reload();
  42. }
  43. function reload() {
  44. $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
  45. }
  46. function ExaminationApplayStudent_ExportData() {
  47. $("#formQuery").attr("action", "ExportStudentData");
  48. $("#formQuery").submit();
  49. }
  50. function ExaminationApplayStudent_ExportPicture() {
  51. $("#formQuery").attr("action", "ExportStudentPic");
  52. $("#formQuery").submit();
  53. }
  54. /*科目类型-联动科目名称*/
  55. function SelectExaminationSubjectDropdown(data) {
  56. var jsonString = "({'QueryParamsDatas':'ExaminationTypeDropdown|*|" + data.ExaminationTypeID + "|@|'})";
  57. $("#ddlExaminationSubject").combogridX("reload", eval(jsonString));
  58. reload();
  59. }