StudentExportPictures.js 1.4 KB

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