Realtime.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/EducationMissionClassScheduleAdult/Edit";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. function reload() {
  8. $("#dgEducationMissionClassSchedule").cmsXDataTable("load", $.getDataGridParams("dgEducationMissionClassSchedule"));
  9. }
  10. //获取选中的数据
  11. function validChoose() {
  12. var d = [];
  13. $.each($("#dgEducationMissionClassSchedule").cmsXDataTable("getSelections"), function (index) {
  14. d.push(this.EducationMissionClassID);
  15. });
  16. return d;
  17. }
  18. //学生总数
  19. function SchedulingClassStudentEdit(rowindex, rowdata) {
  20. var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/EducationMissionClass/EducationSchedulingClassCountStudentList?educationMissionClassID=" + rowdata.EducationMissionClassID + "&MNU=" + mnu;
  21. $.popupTopWindow('学生信息', redirectTo, 800, 350, null, null);
  22. }
  23. //获取选中的数据
  24. function OrderNovalidChoose() {
  25. var d = [];
  26. $.each($("#dgEducationMissionClassSchedule").cmsXDataTable("getSelections"), function (index) {
  27. d.push(this.OrderNo);
  28. });
  29. return d;
  30. }
  31. //获取选中的状态
  32. function ApprovalStatusvalidChoose() {
  33. var d = [];
  34. $.each($("#dgEducationMissionClassSchedule").cmsXDataTable("getSelections"), function (index) {
  35. d.push(this.ApprovalStatus);
  36. });
  37. return d;
  38. }
  39. //获取选中的教室类型
  40. function ClassroomTypeNamevalidChoose() {
  41. var d = [];
  42. $.each($("#dgEducationMissionClassSchedule").cmsXDataTable("getSelections"), function (index) {
  43. d.push(this.ClassroomTypeName);
  44. });
  45. return d;
  46. }
  47. //导出Excel
  48. function realtime_Export() {
  49. // var d = validChoose().join(',')
  50. // if (d != "") {
  51. // document.getElementById("EducationMissionClassID").value = d;
  52. // }
  53. // else {
  54. // document.getElementById("EducationMissionClassID").value = "";
  55. // }
  56. $("#formQuery").submit();
  57. }
  58. function realtimeGT_Export() {
  59. $("#formQuery").attr("action", "ExcelGT");
  60. $("#formQuery").submit();
  61. }
  62. function queryCollege(data) {
  63. reload();
  64. }
  65. function QuerySchoolyearDropdownList(data) {
  66. if (data != null || data.Value != "") {
  67. var jsonString = "({'QueryParamsDatas':'schoolYearID|*|" + data.Value + "|@|'})";
  68. $("#ddlWeekNum").combobox("reload", eval(jsonString));
  69. }
  70. reload();
  71. }