EducationMissionClassStudent.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/EducationMissionClassStudent/Edit";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. //刷新
  8. function reload() {
  9. $("#dgEducationMissionClassStudentList").cmsXDataTable("load", $.getDataGridParams("dgEducationMissionClassStudentList"));
  10. }
  11. //获取选中的数据
  12. function validChoose() {
  13. var d = [];
  14. $.each($("#dgEducationMissionClassStudentList").cmsXDataTable("getSelections"), function (index) {
  15. d.push(this.EducationSchedulingClassID);
  16. });
  17. return d;
  18. }
  19. //获取选中的数据UserID
  20. function validChooseUserID() {
  21. var d = [];
  22. $.each($("#dgEducationMissionClassStudentList").cmsXDataTable("getSelections"), function (index) {
  23. d.push(this.UserID);
  24. });
  25. return d;
  26. }
  27. //设置列颜色为红色
  28. function SetRedColumn(index, row, value) {
  29. return " <span style=\"color: red;\">" + value + "</span>";
  30. }
  31. //Excel导出
  32. function EducationMissionClassStudent_Excel() {
  33. $("#formQuery").submit();
  34. }
  35. //联动查询
  36. function queryCampus(data) {
  37. var campusID = $("#CampusDropdown").combogridX("getValue");
  38. if (campusID != nonSelect) {
  39. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
  40. $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  41. }
  42. else {
  43. $("#CollegeDropdown").combogridX("reload");
  44. }
  45. queryClass();
  46. }
  47. function queryCollege(data) {
  48. var campusID = $("#CampusDropdown").combogridX("getValue");
  49. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  50. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
  51. jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
  52. $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  53. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  54. queryClass();
  55. }
  56. function queryGrade(data) {
  57. queryClass();
  58. }
  59. function queryStandard(data) {
  60. queryClass();
  61. }
  62. function queryClassmajor(data) {
  63. queryClass();
  64. }
  65. function queryClass() {
  66. var jsonString = "";
  67. var parameterString = "";
  68. var campusID = $("#CampusDropdown").combogridX("getValue");
  69. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  70. var gradeID = $("#DictionaryGrade").combogridX("getValue"); //combobox
  71. var standardID = $("#DictionaryStandard").combogridX("getValue");
  72. var educationID = $("#DictionaryEducation").combogridX("getValue");
  73. var learningFormID = $("#DictionaryLearningform").combogridX("getValue");
  74. if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  75. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  76. if (gradeID != nonSelect) parameterString += "DictionaryGrade|*|" + gradeID + "|@|";
  77. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  78. if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  79. if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  80. if (parameterString != "") {
  81. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  82. $("#DictionaryStandard").combogridX("reload", eval(jsonString));
  83. $("#ClassmajorComboGrid").combogridX("reload", eval(jsonString));
  84. }
  85. else {
  86. $("#DictionaryStandard").combogridX("reload");
  87. $("#ClassmajorComboGrid").combogridX("reload");
  88. }
  89. reload();
  90. }