From 04ecf2e53539e37930e8c6a128cd8a4f51a0963e Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 19 十二月 2022 14:59:57 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml |   41 ++++++++++++++++++++++++++++++++++++++---
 1 files changed, 38 insertions(+), 3 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml
index ce45768..b3bbb7e 100644
--- a/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml
@@ -1,6 +1,9 @@
-锘緻{
+锘緻using DTO;
+@{
     ViewBag.Title = "FiAccount";
     Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 }
 @section headerStyle{
     <script type="text/javascript">
@@ -21,7 +24,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 class=\"Liushuizhang\"  style=\"display: none;\" 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 },
@@ -42,7 +51,29 @@
         var _pageAdd = function () {
             OpenWindow("鏂板璐︽埛", "98%", "90%", "/FiAccount/Edit/");
         }
+         var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
 
+        var _afterLoadDataload = function (xhr) {
+
+            //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> </br>  <font color='darkgoldenrod'>--鍚堣--</font>", AllIncome: "<font color='darkgoldenrod'>" + xhr.DangyeHeji1 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji1 + "</font>", AllExpenses: "<font color='darkgoldenrod'>" + xhr.DangyeHeji2 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji2 + "</font>", Balance: "<font color='darkgoldenrod'>" + xhr.DangyeHeji3 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji3 + "</font>"  });
+
+            var data = JSON.parse(ActionInfo22);
+            for (var o in data) {
+                //alert(o);
+                //alert(data[o]);
+                /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/
+                $("." + data[o].PageShortcut).show();
+
+            }
+
+        };
 
 
         var _afterSave = function (result) {
@@ -61,7 +92,11 @@
                 toastr.error("鍒犻櫎鎴愬姛");
         /**/
     }
-}
+        }
+
+
+
+       
     </script>
 }
 

--
Gitblit v1.9.1