ExportPictures.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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]).submit();
  23. }
  24. }
  25. else {
  26. $.messager.alert("系统提示", "请选择您要导出相片的命名方式。");
  27. }
  28. }
  29. function GetRequest() {
  30. var url = location.search; //获取url中"?"符后的字串
  31. var theRequest = new Object();
  32. if (url.indexOf("?") != -1) {
  33. var str = url.substr(1);
  34. strs = str.split("&");
  35. for (var i = 0; i < strs.length; i++) {
  36. theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
  37. }
  38. }
  39. return theRequest;
  40. }