CollegeTeacherReport.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. function queryTeacher(data) {
  2. if (((data.length && data.length > 0) || data)
  3. && $("#cgbTeacher").length > 0 && $.data($("#cgbTeacher")[0], "combogridX")) {
  4. var jsonString = "({'QueryParamsDatas':'";
  5. var collegeID = $("#ddlCollege").combobox("getValue");
  6. if (collegeID != nonSelect) {
  7. jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
  8. }
  9. jsonString += "'})";
  10. $("#cgbTeacher").combogridX("reload", eval(jsonString));
  11. }
  12. }
  13. function queryStandard() {
  14. try {
  15. var jsonString = "({'QueryParamsDatas':'";
  16. var yearID = $("#ddlYear").combobox("getValue");
  17. if (yearID != nonSelect) {
  18. jsonString += "DictionaryGrade|*|" + yearID + "|@|";
  19. }
  20. jsonString += "'})";
  21. $("#cgbStandard").combogridX("reload", eval(jsonString));
  22. queryClass();
  23. } catch (e) {
  24. }
  25. }
  26. function queryClass() {
  27. try {
  28. var jsonString = "({'QueryParamsDatas':'";
  29. var yearID = $("#ddlYear").combobox("getValue");
  30. var standardID = $("#cgbStandard").combogridX("getValue");
  31. if (yearID != nonSelect) {
  32. jsonString += "DictionaryGrade|*|" + yearID + "|@|";
  33. }
  34. if (standardID != nonSelect) {
  35. jsonString += "DictionaryStandard|*|" + standardID + "|@|";
  36. }
  37. jsonString += "'})";
  38. $("#cgbClassmajor").combogridX("reload", eval(jsonString));
  39. } catch (e) {
  40. }
  41. }
  42. function reload() {
  43. var schoolYearID = $("#ddlSchoolyear").combobox("getValue");
  44. var collegeID = $("#ddlCollege").combobox("getValue");
  45. var userID = $("#cgbTeacher").combogridX("getValue");
  46. var yearID = $("#ddlYear").combobox("getValue");
  47. var standardID = $("#cgbStandard").combogridX("getValue");
  48. var classmajorID = $("#cgbClassmajor").combogridX("getValue");
  49. var coursematerialID = $("#cgbCourse").combogridX("getValue");
  50. if (collegeID == nonSelect) collegeID = null;
  51. if (userID == nonSelect) userID = null;
  52. if (yearID == nonSelect) yearID = null;
  53. if (standardID == nonSelect) standardID = null;
  54. if (classmajorID == nonSelect) classmajorID = null;
  55. if (coursematerialID == nonSelect) coursematerialID = null;
  56. top.ReportParameter = {
  57. SchoolyearID: schoolYearID,
  58. CollegeID: collegeID,
  59. TeacherUserID: userID,
  60. GradeyearID: yearID,
  61. StandardID: standardID,
  62. ClassmajorID: classmajorID,
  63. CoursematerialID: coursematerialID
  64. };
  65. if (schoolYearID == nonSelect || !schoolYearID)
  66. $.messager.alert("系统信息", "请选择学年学期。");
  67. else
  68. $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fPaymentManage%2fCollegeTeacherReport");
  69. }