1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //function payTimeChanged() {
- // var payTimeStart = $("#txtPayTimeStart").val();
- // var payTimeEnd = $("#txtPayTimeEnd").val();
- // if (payTimeStart != "" && payTimeEnd != "") {
- // if (payTimeEnd.ymdToDate() < payTimeStart.ymdToDate()) {
- // $.messager.alert("系统提示", "缴费时间起必须小于或等于缴费时间止。");
- // return;
- // }
- // }
- // reload();
- //}
- function startDateChanged(dp) {
- $("#txtPayTimeStart").val($dp.cal.getNewDateStr());
- reload();
- }
- function endDateChanged(dp) {
- $("#txtPayTimeEnd").val($dp.cal.getNewDateStr());
- reload();
- }
- function reload() {
- $("#dgFinanceReportList").cmsXDataTable("load", $.getDataGridParams("dgFinanceReportList"));
- }
- function gridLoaded(data) {
- if (data && data.total) {
- var rows = $("#dgFinanceReportList").cmsXDataTable("getRows");
- if ($.grep(rows, function (x) { return x.ExaminationProjectID == null; }).length == 0) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/StudentFee/FinanceReportTotal', $.getDataGridParams("dgFinanceReportList"),
- function (res) {
- if (res) {
- rows.push({
- ReceiptNo: null,
- PayTime: null,
- ClassmajorID: null,
- ClassmajorName: null,
- ExaminationRegistrationConfirmNo: null,
- ExaminationProjectID: null,
- ExaminationProjectName: null,
- FeeTypeID: null,
- Fee: null,
- FeeTypeName: null,
- StudentCount: res.TotalCount,
- Amount: res.TotalAmount,
- AmountString: res.TotalAmountString,
- Receiver: null,
- ReceiverName: null
- });
- $("#dgFinanceReportList").cmsXDataTable("loadCurPageData", { rows: rows, total: data.total });
- }
- });
- }
- }
- }
- function FinanceReport_Export() {
- $("#formQuery").submit();
- }
|