From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 28 二月 2023 13:25:09 +0800 Subject: [PATCH] 工资绩效改版 --- zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiAccountIncome/Index.cshtml index 60588fd..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 }, @@ -14,9 +15,11 @@ }, { label: '绉戠洰鍚嶇О', name: 'SubjectName', labtype: 'txt', hidden: false, width: 60 }, { label: '鏀跺叆閲戦', name: 'Money', labtype: 'txt', hidden: false, width: 60}, - { label: '璐︽埛浣欓', name: 'Balance', 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