From b3b54f994b5f17b850413c6398e63e25744635e9 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 26 十一月 2021 08:51:37 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml index ce45768..11cd171 100644 --- a/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml @@ -21,7 +21,13 @@ { label: '鎬绘敹鍏�', name: 'AllIncome', labtype: 'txt', hidden: false }, { label: '鎬绘敮鍑�', name: 'AllExpenses', labtype: 'txt', hidden: false }, { label: '浣欓', name: 'Balance', labtype: 'txt', hidden: false }, - { label: '澶囨敞', name: 'Remark', labtype: 'txt', hidden: false }, + { + label: '娴佹按璐�', name: 'Remark', labtype: 'txt', hidden: false, + formatter: function (cellvalue, options, rowObject) { + return "<a onclick=\"OpenWindow('" + rowObject.Accountname + "','98%','100%', '/FiAccount/Liushuizhang?id=" + rowObject.Id + "')\" >娴佹按璐�</a>"; + } + }, + { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true }, { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true }, { label: '鍒涘缓鏃堕棿', name: 'Createtimetxt', labtype: 'txt', hidden: true }, @@ -44,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