From 827b416782eda317a6b24e0afb88c788e483b86d Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 22 八月 2022 15:58:31 +0800 Subject: [PATCH] 财务修改单页统计,摘要订单号 --- zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml index a720375..7db0138 100644 --- a/zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml @@ -6,6 +6,7 @@ <script type="text/javascript"> var accounttype = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.accounttype))'; var FiSubject = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.FiSubject))'; + loseherght = 60; dataCol = [ { label: 'id', name: 'Id', labtype: 'txt', hidden: true, width: 60}, { label: '璐︽埛绫诲瀷', name: 'AccounttypeName', labtype: 'txt', hidden: false, width: 60 }, @@ -16,7 +17,9 @@ { label: '鏀跺叆閲戦', name: 'Money', labtype: 'txt', hidden: false, width: 60}, { label: '璐︽埛浣欓', name: 'AccountMoney', labtype: 'txt', hidden: false, width: 60}, { label: '浜ゆ浜�(鍗曚綅)', name: 'PaymentUnit', labtype: 'txt', hidden: false, width: 100 }, - { label: '鎽樿', name: 'OperationalMatters', labtype: 'txt', hidden: false, width: 200}, + { label: '鎿嶄綔浜�', name: 'CreaterName', labtype: 'txt', hidden: false, width: 60 }, + { label: '鎽樿', name: 'OperationalMatters', labtype: 'txt', hidden: false, width: 200 }, + { label: '璁㈠崟鍙�', name: 'Remark', labtype: 'txt', hidden: false, width: 60 }, { label: '鎿嶄綔鏃堕棿', name: 'CreatetimeName', labtype: 'txt', hidden: false, width: 100}, { label: '鎿嶄綔', name: 'RecStatus', labtype: 'txt', hidden: false , @@ -32,11 +35,11 @@ { label: '璐︽埛鍚嶇О', name: 'AccountId', labtype: 'combox', hidden: false, data: JSON.parse('[]'),}, { label: '绉戠洰鍚嶇О', name: 'SubjectId', labtype: 'combox', hidden: false, data: JSON.parse(FiSubject) }, { label: '鎽樿', name: 'OperationalMatters', labtype: 'txt', hidden: false }, - + { label: '璁㈠崟鍙�', name: 'Remark', labtype: 'txt', hidden: false }, { label: '浠樻浜�(鍗曚綅)', name: 'PaymentUnit', labtype: 'txt', hidden: false }, { label: '鎿嶄綔浜�', name: 'CreaterName', labtype: 'txt', hidden: false }, - - + + ]; @@ -64,7 +67,20 @@ toastr.error("鍒犻櫎鎴愬姛"); /**/ } -} + } + var _afterLoadDataload = function (xhr) { + //console.info(xhr); + //var rows = jQuery("#jqGrid").jqGrid("getRowData"), total_Xuefei = 0, total_Baomingrenshu = 0; + //for (var i = 0, l = rows.length; i < l; i++) { + // total_Xuefei += (rows[i].Xuefei - 0); + // total_Baomingrenshu += (rows[i].Baomingrenshu - 0); + //} + + jQuery("#jqGrid").jqGrid("footerData", "set", { SubjectName: "<font color='darkgoldenrod'>--褰撻〉鍚堣--</font> </br> <font color='darkgoldenrod'>--鍚堣--</font>", Money: "<font color='darkgoldenrod'>" + xhr.DangyeHeji1 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji1 + "</font>" }); + + + + }; </script> } -- Gitblit v1.9.1