StudentPictureExport.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. var windowID = "";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. windowID = $.SystemGeneral.getUrlParam("WindowID");
  6. mnu = $.SystemGeneral.getUrlParam("MNU");
  7. })
  8. //查询Request
  9. function GetRequest() {
  10. var url = location.search;
  11. var thisRequest = new Object();
  12. if (url.indexOf("?") != -1) {
  13. var str = url.substr(1);
  14. strs = str.split("&");
  15. for (var i = 0; i < strs.length; i++) {
  16. thisRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
  17. }
  18. }
  19. return thisRequest;
  20. }
  21. //导出确定
  22. function Student_PicExportConfirm() {
  23. var Request = new Object();
  24. Request = GetRequest();
  25. $("#userIDs").val(Request["userIDs"]);
  26. var dgStudentList = top.$("#" + windowID).data("inputData");
  27. $("#queryParamsDatas").val(dgStudentList.QueryParamsDatas);
  28. var pictureTypeValue = $("input[name='PictureType']:checked").val();
  29. if (pictureTypeValue != null && pictureTypeValue != "" && pictureTypeValue != undefined) {
  30. $("#exportPicType").val(pictureTypeValue);
  31. //$(document.forms[0]).submit();
  32. $(document.forms[0]).submitWithLoading();
  33. } else {
  34. $.messager.alert("系统提示", "请选择导出照片的命名方式。");
  35. }
  36. }