CourseProcessSummary.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. var isFirstLoadCollege = true;
  2. function QueryCollegeDropdownList(data) {
  3. if (((data.length && data.length > 0) || data)) {
  4. if (isFirstLoadCollege) {
  5. isFirstLoadCollege = false;
  6. } else {
  7. if (data.length > 0) {
  8. $("#CollegeDropdown").combobox("setValue", data[0].Value);
  9. } else {
  10. $("#CollegeDropdown").combobox("clear");
  11. }
  12. }
  13. }
  14. reload();
  15. }
  16. function reload() {
  17. if ($.data($("#DictionarySchoolyear")[0], "combobox") && $.data($("#DictionaryStandard")[0], "combogridX")) {
  18. var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
  19. var collegeID = $("#CollegeDropdown").combobox("getValue");
  20. var year = $("#DictionarySchoolyear").combobox("getValue");
  21. var yearString = "";
  22. var standardID = $("#DictionaryStandard").combogridX("getValue");
  23. var standardString = "";
  24. if (year == nonSelect) {
  25. yearString = "Year_RAP=";
  26. } else {
  27. yearString = "Year_RAP=" + year;
  28. }
  29. if (standardID == nonSelect || standardID == "") {
  30. standardString = "StandardID_RAP=";
  31. } else {
  32. standardString = "StandardID_RAP=" + standardID;
  33. }
  34. //教学任务状态
  35. var statusIDs = document.getElementsByName("StatusID");
  36. var statusList = "";
  37. for (i = 0; i < statusIDs.length; i++) {
  38. if (statusIDs[i].checked) {
  39. statusList = statusList + statusIDs[i].value + ',';
  40. }
  41. }
  42. statusList = statusList.substring(0, statusList.length - 1);
  43. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationManage%2fCourseProcessSumary&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID + "&" + yearString + "&" + standardString + "&StatusID_RAP=" + statusList + "&ClassScheduleWeekTimeCount_RAP=" + Count);
  44. }
  45. }
  46. function SelectCollegeDropdownList(data) {
  47. $("#DictionaryStandard").combogridX("setValue", "-1");
  48. var collegeID = $("#CollegeDropdown").combobox("getValue");
  49. if (collegeID != nonSelect) {
  50. var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
  51. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  52. }
  53. reload();
  54. }
  55. //联动查询
  56. function queryStandard(data) {
  57. queryClass();
  58. reload();
  59. }
  60. function queryCollege(data) {
  61. var campusID = $("#CampusDropdown").combogridX("getValue");
  62. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  63. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
  64. jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
  65. $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  66. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  67. // if (campusID != nonSelect) {
  68. // var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
  69. // $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  70. // }
  71. queryClass();
  72. reload();
  73. }
  74. function queryClass() {
  75. var jsonString = "";
  76. var parameterString = "";
  77. //var campusID = $("#CampusDropdown").combogridX("getValue");
  78. var collegeID = $("#CollegeDropdown").combobox("getValue");
  79. //var educationID = $("#Education").combobox("getValue");
  80. var schoolYearID = $("#DictionarySchoolyear").combobox("getValue");
  81. var standardID = $("#DictionaryStandard").combogridX("getValue");
  82. //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
  83. //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  84. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  85. //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  86. if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  87. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  88. //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  89. if (parameterString != "") {
  90. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  91. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  92. } else {
  93. $("#DictionaryStandard").combogridX("reload");
  94. }
  95. reload();
  96. }