Refund.js 1.2 KB

123456789101112131415161718192021222324252627282930
  1. function StudentFee_Refund() {
  2. if ($("[name='RecordStatus']").val() != $("[name='PayStatusID']").val()) {
  3. $.messager.alert("系统提示", "只能对已缴费的记录进行退费。");
  4. return;
  5. }
  6. $(document.forms[0]).submit();
  7. }
  8. function StudentFee_Print() {
  9. $("#lblBankName").text($("[name='BankName']").val());
  10. $("#lblCardNo").text($("[name='CardNo']").val());
  11. $("#lblRefundReason").text($("[name='RefundReason']").val());
  12. if (!!window.ActiveXObject || "ActiveXObject" in window) {
  13. PrintArea.Remove_IE_Header_And_Footer();
  14. }
  15. $("input").css("display", "none");
  16. $("textarea").css("display", "none");
  17. $(".ValidateEntityrequired").css("display", "none");
  18. $("#lblBankName").css("display", "inline-block");
  19. $("#lblCardNo").css("display", "inline-block");
  20. $("#lblRefundReason").css("display", "inline-block");
  21. $("#content").printArea({ mode: "iframe" });
  22. $("input").css("display", "inline-block");
  23. $("textarea").css("display", "inline-block");
  24. $(".ValidateEntityrequired").css("display", "inline-block");
  25. $("#lblBankName").css("display", "none");
  26. $("#lblCardNo").css("display", "none");
  27. $("#lblRefundReason").css("display", "none");
  28. }