StudentExportPictures.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. var mnu = "";
  2. var windowID;
  3. //加载
  4. $(function () {
  5. windowID = $.SystemGeneral.getUrlParam("WindowID");
  6. mnu = $.SystemGeneral.getUrlParam("MNU");
  7. });
  8. function Student_ExportPictures() {
  9. var Request = new Object();
  10. Request = GetRequest();
  11. var Studentselect = top.$("#" + windowID).data("inputData");
  12. $("[name='QueryParamsDatas']").val(Studentselect.QueryParamsDatas);
  13. Studentselect.selectedIDs = Request["selectedIDs"];
  14. $("[name='selectedIDs']").val(Studentselect.selectedIDs);
  15. radio = $("input[name='type']:checked").val();
  16. if (radio != undefined) {
  17. var len = radio.length;
  18. if (len > 0) {
  19. Studentselect.ExportPictureType = radio;
  20. $("[name='ExportPictureType']").val(Studentselect.ExportPictureType);
  21. Studentselect.windowsssss = Request["WindowID"].toString();
  22. $(document.forms[0]).submitWithLoading();
  23. }
  24. }
  25. else
  26. {
  27. $.messager.alert("系统提示", "请选择您要导出相片的命名方式。");
  28. }
  29. }
  30. function GetRequest() {
  31. var url = location.search; //获取url中"?"符后的字串
  32. var theRequest = new Object();
  33. if (url.indexOf("?") != -1) {
  34. var str = url.substr(1);
  35. strs = str.split("&");
  36. for (var i = 0; i < strs.length; i++) {
  37. theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
  38. }
  39. }
  40. return theRequest;
  41. }