FinanceReport.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //function payTimeChanged() {
  2. // var payTimeStart = $("#txtPayTimeStart").val();
  3. // var payTimeEnd = $("#txtPayTimeEnd").val();
  4. // if (payTimeStart != "" && payTimeEnd != "") {
  5. // if (payTimeEnd.ymdToDate() < payTimeStart.ymdToDate()) {
  6. // $.messager.alert("系统提示", "缴费时间起必须小于或等于缴费时间止。");
  7. // return;
  8. // }
  9. // }
  10. // reload();
  11. //}
  12. function startDateChanged(dp) {
  13. $("#txtPayTimeStart").val($dp.cal.getNewDateStr());
  14. reload();
  15. }
  16. function endDateChanged(dp) {
  17. $("#txtPayTimeEnd").val($dp.cal.getNewDateStr());
  18. reload();
  19. }
  20. function reload() {
  21. $("#dgFinanceReportList").cmsXDataTable("load", $.getDataGridParams("dgFinanceReportList"));
  22. }
  23. function gridLoaded(data) {
  24. if (data && data.total) {
  25. var rows = $("#dgFinanceReportList").cmsXDataTable("getRows");
  26. if ($.grep(rows, function (x) { return x.ExaminationProjectID == null; }).length == 0) {
  27. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/StudentFee/FinanceReportTotal', $.getDataGridParams("dgFinanceReportList"),
  28. function (res) {
  29. if (res) {
  30. rows.push({
  31. ReceiptNo: null,
  32. PayTime: null,
  33. ClassmajorID: null,
  34. ClassmajorName: null,
  35. ExaminationRegistrationConfirmNo: null,
  36. ExaminationProjectID: null,
  37. ExaminationProjectName: null,
  38. FeeTypeID: null,
  39. Fee: null,
  40. FeeTypeName: null,
  41. StudentCount: res.TotalCount,
  42. Amount: res.TotalAmount,
  43. AmountString: res.TotalAmountString,
  44. Receiver: null,
  45. ReceiverName: null
  46. });
  47. $("#dgFinanceReportList").cmsXDataTable("loadCurPageData", { rows: rows, total: data.total });
  48. }
  49. });
  50. }
  51. }
  52. }
  53. function FinanceReport_Export() {
  54. $("#formQuery").submit();
  55. }