StudentListSelectMission.js 843 B

1234567891011121314151617181920212223242526272829
  1. $(function () {
  2. windowID = $.SystemGeneral.getUrlParam("WindowID");
  3. retakePlanStudentID = top.$("#" + windowID).data("inputData");
  4. });
  5. //获取选中的数据
  6. function validChoose() {
  7. var d = [];
  8. $.each($("#dgEducationMissionList").cmsXDataTable("getSelections"), function (index) {
  9. d.push(this);
  10. });
  11. return d;
  12. }
  13. function SelectMission_Confirm() {
  14. var d = validChoose();
  15. if (d.length == 0) {
  16. $.messager.alert("系统提示", "请选择您要重修的任务班信息。");
  17. return;
  18. }
  19. if (d.length > 1) {
  20. $.messager.alert("系统提示", "只能选择一个任务班进行重修。");
  21. return;
  22. }
  23. top.$("#" + windowID).data("resultData", { retakePlanStudentID: retakePlanStudentID, educationMission: d[0] });
  24. top.$("#" + windowID).dialog("close");
  25. }