StudentSelect.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. function reload() {
  2. $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
  3. }
  4. //获取选中的数据
  5. function validChoose() {
  6. var d = [];
  7. $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
  8. d.push(this);
  9. });
  10. return d;
  11. }
  12. function QueryCampusDropdownList(data) {
  13. $("#CollegeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/College/CollegeDropdownListBanid?campusID=" + data.Value + "");
  14. reload();
  15. }
  16. function QueryCollegeDropdownList(data) {
  17. $("#DepartmentDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/Department/DepartmentDropdownListBanid?collegeID=" + data.Value + "");
  18. reload();
  19. }
  20. function QueryDepartmentDropdownList(data) {
  21. reload();
  22. }
  23. function QueryPhotoUrltmentDropdownList(data) {
  24. reload();
  25. }
  26. function QueryPhotoUrltmentDropdownList(data) {
  27. reload();
  28. }
  29. function QuerygraduationtmentDropdownList(date) {
  30. reload();
  31. }
  32. function queryCollege(data) {
  33. $("#CollegeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/College/CollegeDropdownListBanid?campusID=" + data.Value + "");
  34. reload();
  35. }
  36. function queryClass(data) {
  37. if (((data.length && data.length > 0) || data)
  38. && $("#CampusDropdown").length > 0 && $.data($("#CampusDropdown")[0], "combobox")
  39. && $("#CollegeDropdown").length > 0 && $.data($("#CollegeDropdown")[0], "combobox")
  40. && $("#Education").length > 0 && $.data($("#Education")[0], "combobox")
  41. && $("#SchoolYear").length > 0 && $.data($("#SchoolYear")[0], "combobox")
  42. && $("#Standard").length > 0 && $.data($("#Standard")[0], "combobox")
  43. && $("#Learningform").length > 0 && $.data($("#Learningform")[0], "combobox")) {
  44. var url = CMS_SystemConfig.VirtualDirectoryPath + "/Classmajor/BindDropdownList?bindType=1";
  45. var campusID = $("#CampusDropdown").combobox("getValue");
  46. var collegeID = $("#CollegeDropdown").combobox("getValue");
  47. var educationID = $("#Education").combobox("getValue");
  48. var schoolYearID = $("#SchoolYear").combobox("getValue");
  49. var standardID = $("#Standard").combobox("getValue");
  50. var learningFormID = $("#Learningform").combobox("getValue");
  51. if (campusID != nonSelect) url += "&campusID=" + campusID;
  52. if (collegeID != nonSelect) url += "&collegeID=" + collegeID;
  53. if (educationID != nonSelect) url += "&educationID=" + educationID;
  54. if (schoolYearID != nonSelect) url += "&schoolYear=" + schoolYearID;
  55. if (standardID != nonSelect) url += "&standardID=" + standardID;
  56. if (learningFormID != nonSelect) url += "&learningFormID=" + learningFormID;
  57. $("#ClassmajorDropdown").combobox("reload", url);
  58. reload();
  59. }
  60. }