ClassmajorViewSelecte.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. function reload() {
  2. $("#dgClassmajorList").cmsXDataTable("load", $.getDataGridParams("dgClassmajorList"));
  3. }
  4. //获取选中的数据
  5. function validChoose() {
  6. var d = [];
  7. $.each($("#dgClassmajorList").cmsXDataTable("getSelections"), function (index) {
  8. d.push(this);
  9. });
  10. return d;
  11. }
  12. function QueryCollegeComboGridList(data) {
  13. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  14. var yearID = document.getElementsByName("DictionarySchoolyear")[0].value;
  15. var parameterString = "";
  16. $("#DictionaryStandard").combogridX("setValue", "-1");
  17. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  18. if (collegeID != nonSelect) {
  19. parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  20. }
  21. var schoolyearID = $("#DictionarySchoolyear").combobox("getValue");
  22. if (schoolyearID != nonSelect) {
  23. parameterString += "DictionaryGrade|*|" + schoolyearID + "|@|";
  24. }
  25. if (parameterString != "") {
  26. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  27. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  28. } else {
  29. $("#DictionaryStandard").combogridX("reload");
  30. }
  31. queryClass();
  32. }
  33. function QueryStandardDropdownList(data) {
  34. queryClass();
  35. }
  36. function QueryEducationDropdownList(data) {
  37. reload();
  38. }
  39. function QueryLearningformDropdownList(data) {
  40. QueryCollegeComboGridList(data);
  41. }
  42. function queryStandard(data) {
  43. queryClass();
  44. reload();
  45. }
  46. function queryClass() {
  47. var jsonString = "";
  48. var parameterString = "";
  49. var campusID = $("#CampusDropdown").combogridX("getValue");
  50. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  51. var standardID = $("#DictionaryStandard").combogridX("getValue");
  52. var schoolyearID = $("#DictionarySchoolyear").combobox("getValue");
  53. if (schoolyearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolyearID + "|@|";
  54. if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  55. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  56. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  57. if (parameterString != "") {
  58. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  59. $("#GrademajorComboGrid").combogridX("reload", eval(jsonString));
  60. } else {
  61. $("#GrademajorComboGrid").combogridX("reload");
  62. }
  63. reload();
  64. }