PrintDetail.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $(function () {
  2. var examinationRegistConfirmNo = $.SystemGeneral.getUrlParam("examinationRegistConfirmNo");
  3. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/StudentFee/PrintSave', { examinationRegistConfirmNo: examinationRegistConfirmNo }, function (ret) {
  4. if (ret.IsSuccess && ret.Data != null) {
  5. top.$.messager.alert("提示", "缴费成功。");
  6. beginprint(ret.Data);
  7. } else {
  8. top.$.messager.alert("错误", ret.Message);
  9. }
  10. });
  11. })
  12. function beginprint(data) {
  13. $("#lblReceiptNo").html(data.ReceiptNo);
  14. $("#lblClassmajor").html(data.Classmajor);
  15. $("#lblTotal").html(data.TotalStr);
  16. $("#lblTenThousand").html(data.TenThousand);
  17. $("#lblThousand").html(data.Thousand);
  18. $("#lblHundred").html(data.Hundred);
  19. $("#lblTen").html(data.Ten);
  20. $("#lblYuan").html(data.Yuan);
  21. $("#lblJiao").html(data.Jiao);
  22. $("#lblFen").html(data.Fen);
  23. $("#lblTotal1").html(data.Total);
  24. $("#lblOperator").html(data.Operator);
  25. $("#lblYear").html(data.Year);
  26. $("#lblMonth").html(data.Month);
  27. $("#lblDay").html(data.Day);
  28. if (!!window.ActiveXObject || "ActiveXObject" in window) {
  29. PrintArea.Remove_IE_Header_And_Footer();
  30. }
  31. $("#content").printArea({ mode: "iframe" });
  32. return false;
  33. }