ScoreEditImport.js 958 B

1234567891011121314151617181920212223242526
  1. var finalExaminationID;
  2. var mnu;
  3. var windowID;
  4. $(function () {
  5. finalExaminationID = $.SystemGeneral.getUrlParam("finalExaminationID");
  6. mnu = $.SystemGeneral.getUrlParam("MNU");
  7. windowID = $.SystemGeneral.getUrlParam("WindowID");
  8. });
  9. function Score_ExcelImport() {
  10. var obj = $("#file").val();
  11. if (obj == "") {
  12. $.messager.alert("系统提示", "请选择您要导入的文件。");
  13. return;
  14. }
  15. var url = CMS_SystemConfig.VirtualDirectoryPath + '/Score/Import?finalExaminationID=' + finalExaminationID;
  16. url += "&MNU=" + mnu + "&WindowID=" + windowID;
  17. $(document.forms[0]).attr('action', url);
  18. $(document.forms[0]).submit();
  19. }
  20. function Score_ExcelExport() {
  21. var url = CMS_SystemConfig.VirtualDirectoryPath + '/Score/Export?finalExaminationID=' + finalExaminationID;
  22. url += "&MNU=" + mnu + "&WindowID=" + windowID;
  23. $(document.forms[0]).attr('action', url);
  24. $(document.forms[0]).submit();
  25. }