PrintGDCX.js 872 B

123456789101112131415161718192021222324252627
  1. $(function () {
  2. mnu = $.SystemGeneral.getUrlParam("MNU");
  3. $("#txtConfirmNo").keyup(function (ev) {
  4. if (ev.keyCode == 13) {
  5. reload();
  6. }
  7. });
  8. })
  9. function reload() {
  10. $("#dgStudentFeeDetailList").cmsXDataTable("load", $.getDataGridParams("dgStudentFeeDetailList"));
  11. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/StudentFee/StudentFeeTotal', { examinationRegistConfirmNo: $("#txtConfirmNo").val() }, function (data) {
  12. $("#txtTotal").text("");
  13. if (data) {
  14. $("#txtTotal").text(parseFloat(data).toFixed(2));
  15. }
  16. });
  17. }
  18. function StudentFee_Print() {
  19. var total = $("#txtTotal").text();
  20. if (total != "") {
  21. $("#frmPrintDetail").attr("src", CMS_SystemConfig.VirtualDirectoryPath + '/StudentFee/PrintDetailGDCX?examinationRegistConfirmNo=' + $("#txtConfirmNo").val());
  22. }
  23. }