StudentEvaluationCount.js 3.2 KB

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