TeacherEvaluationCount.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. function reloadClassmajor() {
  2. if ($("#cgClassmajor").length > 0 && $.data($("#cgClassmajor")[0], "combogridX")) {
  3. var collegeID = null;
  4. var yearID = null;
  5. var standardID = null;
  6. if ($("#cgCollege").length > 0 && $.data($("#cgCollege")[0], "combogridX")) {
  7. collegeID = $("#cgCollege").combogridX("getValue");
  8. }
  9. if ($("#ddlYear").length > 0 && $.data($("#ddlYear")[0], "combobox")) {
  10. yearID = $("#ddlYear").combobox("getValue");
  11. }
  12. if ($("#ddlStandard").length > 0 && $.data($("#ddlStandard")[0], "combogridX")) {
  13. standardID = $("#ddlStandard").combogridX("getValue");
  14. }
  15. if (collegeID == nonSelect) {
  16. collegeID = null;
  17. }
  18. if (yearID == nonSelect) {
  19. yearID = null;
  20. }
  21. if (standardID == nonSelect) {
  22. standardID = null;
  23. }
  24. var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID
  25. + "|@|DictionaryGrade|*|" + yearID + "|@|DictionaryStandard|*|" + standardID + "|@|'})";
  26. $("#cgClassmajor").combogridX("reload", eval(jsonString));
  27. }
  28. }
  29. function reloadStandard() {
  30. var url = "/Facultymajor/BindStandardDropDownList?bindType=0";
  31. var collegeID = $("#cgCollege").combogridX("getValue");
  32. if (collegeID != nonSelect) {
  33. var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
  34. $("#DepartmentDropdown").combogridX("reload", eval(jsonString));
  35. }
  36. //if (collegeID != nonSelect) url += "&collegeID=" + collegeID;
  37. $("#ddlStandard").combobox("reload", url);
  38. reload();
  39. }
  40. function QueryDepartmentComboGridList() {
  41. reload();
  42. }
  43. function QueryEvaluationTypeDropdownList() {
  44. reload();
  45. }
  46. function reload() {
  47. $("#dgTeacherEvaluationCountList").cmsXDataTable("load", $.getDataGridParams("dgTeacherEvaluationCountList"));
  48. }
  49. function TeacherEvaluationCount_Export() {
  50. $("#formQuery").submit();
  51. }
  52. function validChoose() {
  53. var d = [];
  54. $.each($("#dgTeacherEvaluationCountList").cmsXDataTable("getSelections"), function (index) {
  55. d.push(this);
  56. });
  57. return d;
  58. }
  59. function SelectExaminationSubjectDropdown(data) {
  60. var jsonString = "({'QueryParamsDatas':'ExaminationTypeDropdown|*|" + data.ExaminationTypeID + "|@|'})";
  61. $("#ddlExaminationSubject").combogridX("reload", eval(jsonString));
  62. reload();
  63. }