From 69e9ce6ae24fce670fb8d7af0e1f132e2e009dbc Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 12 七月 2023 13:44:21 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiAccount/Index.cshtml
index c792538..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">
@@ -24,7 +27,7 @@
             {
                 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>";
+                    return "<a class=\"Liushuizhang\"  style=\"display: none;\" onclick=\"OpenWindow('" + rowObject.Accountname + "','98%','100%', '/FiAccount/Liushuizhang?id=" + rowObject.Id + "')\"  >娴佹按璐�</a>";
                 }
             },
 
@@ -48,7 +51,7 @@
         var _pageAdd = function () {
             OpenWindow("鏂板璐︽埛", "98%", "90%", "/FiAccount/Edit/");
         }
-
+         var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
 
         var _afterLoadDataload = function (xhr) {
 
@@ -61,7 +64,14 @@
 
             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();
+
+            }
 
         };
 
@@ -82,7 +92,11 @@
                 toastr.error("鍒犻櫎鎴愬姛");
         /**/
     }
-}
+        }
+
+
+
+       
     </script>
 }
 

--
Gitblit v1.9.1