LevelScoreRate.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. function Report_Search() {
  2. //var schoolYearID = $("#SchoolyearDropdown").combobox("getValue");
  3. //if (schoolYearID == -1 || schoolYearID == "") {
  4. // schoolYearID = "";
  5. //}
  6. var collegeID = $("#CollegeComboGrid").combogridX("getValue");
  7. if (collegeID == -1 || collegeID == "") {
  8. collegeID = "";
  9. }
  10. var year = $("#DictionarySchoolyear").combobox("getValue");
  11. if (year == -1 || year == "") {
  12. year = "";
  13. }
  14. var standardID = $("#DictionaryStandard").combogridX("getValue");
  15. if (standardID == -1 || standardID == "") {
  16. standardID = "";
  17. }
  18. var examinationBatchID = $("#ddlExaminationBatch").combobox('getValue');
  19. var examinationProjectID = $("#ddlExaminationProject").combobox('getValue');
  20. if (examinationBatchID == -1 || examinationBatchID == "") {
  21. $.messager.alert("系统信息", "请选择批次");
  22. }else
  23. if (examinationProjectID == -1 || examinationProjectID == "")
  24. {
  25. $.messager.alert("系统信息", "请选择考试项目");
  26. }
  27. else {
  28. top.ReportParameter = {
  29. ExaminationBatchID: examinationBatchID,
  30. ExaminationProjectID: examinationProjectID,
  31. CollegeID: collegeID,
  32. Year: year,
  33. StandardID: standardID
  34. }
  35. $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fEducationResult%2fLIOTLevelScoreRateView");
  36. }
  37. }
  38. function queryCollege(data) {
  39. queryClass();
  40. }
  41. function queryStandard(data) {
  42. queryClass();
  43. }
  44. function queryClass() {
  45. var jsonString = "";
  46. var parameterString = "";
  47. //var campusID = $("#CampusDropdown").combogridX("getValue");
  48. var collegeID = $("#CollegeComboGrid").combogridX("getValue");
  49. var schoolYearID = $("#DictionarySchoolyear").combobox("getValue");
  50. var standardID = $("#DictionaryStandard").combogridX("getValue");
  51. //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  52. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  53. if (schoolYearID != nonSelect) parameterString += "DictionarySchoolyear|*|" + schoolYearID + "|@|";
  54. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  55. if (parameterString != "") {
  56. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  57. //$("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
  58. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  59. } else {
  60. //$("#ClassmajorDropdown").combogridX("reload");
  61. $("#DictionaryStandard").combogridX("reload");
  62. }
  63. }
  64. function schoolyearChange() {
  65. try {
  66. var examinationBatchUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationBatch/DropDownList?bindType=0';
  67. var schoolyearID = $("#ddlSchoolyear").combobox('getValue');
  68. if (schoolyearID != nonSelect) {
  69. examinationBatchUrl += "&schoolyearID=" + schoolyearID;
  70. }
  71. $("#ddlExaminationBatch").combobox('reload', examinationBatchUrl);
  72. } catch (e) {
  73. }
  74. }
  75. function examinationBatchChange() {
  76. try {
  77. var examinationTypeUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/TypeDropDownList?bindType=0';
  78. var examinationBatchID = $("#ddlExaminationBatch").combobox('getValue');
  79. if (examinationBatchID != nonSelect) {
  80. examinationTypeUrl += "&examinationBatchID=" + examinationBatchID;
  81. }
  82. $("#ddlExaminationType").combobox('reload', examinationTypeUrl);
  83. } catch (e) {
  84. }
  85. }
  86. function examinationTypeChange() {
  87. try {
  88. var examinationProjectUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/DropDownList?bindType=0';
  89. var examinationBatchID = $("#ddlExaminationBatch").combobox('getValue');
  90. var examinationTypeID = $("#ddlExaminationType").combobox('getValue');
  91. if (examinationBatchID != nonSelect) {
  92. examinationProjectUrl += "&examinationBatchID=" + examinationBatchID;
  93. }
  94. if (examinationTypeID != nonSelect) {
  95. examinationProjectUrl += "&examinationTypeID=" + examinationTypeID;
  96. }
  97. $("#ddlExaminationProject").combobox('reload', examinationProjectUrl);
  98. } catch (e) {
  99. }
  100. }