List.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. var mnu = "";
  2. //加载
  3. $(function () {
  4. mnu = $.SystemGeneral.getUrlParam("MNU");
  5. })
  6. function reload() {
  7. $("#dgRetakePlanStudentList").cmsXDataTable("load", $.getDataGridParams("dgRetakePlanStudentList"));
  8. }
  9. function RetakePlan_Excel() {
  10. var d = validChoose().join(',');
  11. $("[name='SelectedID']").val(d);
  12. $(document.forms[0]).submit();
  13. }
  14. //获取选中的数据
  15. function validChoose() {
  16. var d = [];
  17. $.each($("#dgRetakePlanStudentList").cmsXDataTable("getSelections"), function (index) {
  18. d.push(this.RetakePlanStudentID);
  19. });
  20. return d;
  21. }
  22. function queryStandard() {
  23. if ($.data($("#cbgCollege")[0], "combogridX") && $.data($("#ddlYear")[0], "combobox")) {
  24. var parameterString = "";
  25. var collegeID = $("#cbgCollege").combogridX("getValue");
  26. var year = $("#ddlYear").combobox("getValue");
  27. if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  28. if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@|";
  29. if (parameterString != "") {
  30. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  31. $("#cbgStandard").combogridX("reload", eval(jsonString));
  32. } else {
  33. $("#cbgStandard").combogridX("reload");
  34. }
  35. }
  36. }
  37. function queryClassmajor() {
  38. if ($.data($("#cbgCollege")[0], "combogridX") && $.data($("#ddlYear")[0], "combobox") && $.data($("#cbgStandard")[0], "combogridX")) {
  39. var parameterString = "";
  40. var collegeID = $("#cbgCollege").combogridX("getValue");
  41. var year = $("#ddlYear").combobox("getValue");
  42. var standard = $("#cbgStandard").combogridX("getValue");
  43. if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  44. if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@|";
  45. if (standard != nonSelect && standard != "") parameterString += "DictionaryStandard|*|" + standard + "|@|";
  46. if (parameterString != "") {
  47. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  48. $("#cbgClassmajor").combogridX("reload", eval(jsonString));
  49. } else {
  50. $("#cbgClassmajor").combogridX("reload");
  51. }
  52. }
  53. }