| | |
| | | } |
| | | |
| | | |
| | | var _afterLoadData = function () { |
| | | |
| | | var rows = jQuery("#jqGrid").jqGrid("getRowData"), total_shouru = 0, total_zhuchu = 0, total_yue = 0; |
| | | for (var i = 0, l = rows.length; i < l; i++) { |
| | | total_shouru += (rows[i].AllIncome - 0); |
| | | total_zhuchu += (rows[i].AllExpenses - 0); |
| | | total_yue += (rows[i].Balance - 0); |
| | | } |
| | | |
| | | jQuery("#jqGrid").jqGrid("footerData", "set", { QiyongStatusName: "<font color='darkgoldenrod'>--合计--</font>", AllIncome: "<font color='darkgoldenrod'>" + total_shouru + "</font>", AllExpenses: "<font color='darkgoldenrod'>" + total_zhuchu + "</font>", Balance: "<font color='darkgoldenrod'>" + total_yue + "</font>" }); |
| | | |
| | | |
| | | }; |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |