From 3ea38ff2083d7153c16005b0866fb5892e71f70d Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 22 十一月 2021 15:55:14 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml
index cc3efc0..11cd171 100644
--- a/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml
@@ -50,6 +50,20 @@
         }
 
 
+        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) {

--
Gitblit v1.9.1