From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml |   29 +++++++++++++++++++++++------
 1 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml
index 086a35a..bd53497 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml
@@ -1,13 +1,17 @@
-锘緻{
+锘緻using DTO;
+@{
     ViewBag.Title = "CooperOrder";
     Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
+
 }
 @section headerStyle{
     <script type="text/javascript">
         var Wenshuleixing = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Wenshuleixing))';
 
         var status = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.status))';
-        
+
         gridConfig = { multiselect: true, selectcol: "Id" };
         loseherght = 40;
         dataCol = [
@@ -24,17 +28,17 @@
             { label: '閲囪喘浜�', name: 'PurchaserName', labtype: 'txt', hidden: false, width: 100 },
             { label: '閲囪喘浠g悊鏈烘瀯', name: 'Agency', labtype: 'txt', hidden: false, width: 100 },
             { label: '瀹㈡埛鍗曚綅', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 },
-            { label: '鐘舵��', name: 'StatusName', labtype: 'txt', hidden: false, width: 100 }, 
+            { label: '鐘舵��', name: 'StatusName', labtype: 'txt', hidden: false, width: 100 },
             {
                 label: '鏌ョ湅鏂囦功', name: 'Status', labtype: 'txt', hidden: false, width: 100
                 ,
                 formatter: function (cellvalue, options, rowObject) {
 
                     if (rowObject.OrderType1 == "浠f嫙鎶曡瘔涔�") {
-                        return "<a onclick=\"OpenWindow('鎵撳嵃瀵煎嚭鎶曡瘔涔�','98%','100%', '/CooperOrder/Printtousushu?id=" + rowObject.Id + "')\"  >鎵撳嵃瀵煎嚭鎶曡瘔涔�</a>";
+                        return "<a class=\"Dayin\" style=\"display: none;\" onclick=\"OpenWindow('鎵撳嵃瀵煎嚭鎶曡瘔涔�','98%','100%', '/CooperOrder/Printtousushu?id=" + rowObject.Id + "')\"  >鎵撳嵃瀵煎嚭鎶曡瘔涔�</a>";
                     }
                     else if (rowObject.OrderType1 == "浠f嫙璐ㄧ枒鍑�") {
-                        return "<a onclick=\"OpenWindow('鎵撳嵃瀵煎嚭璐ㄧ枒鍑�','98%','100%', '/CooperOrder/PrintZhiyihan?id=" + rowObject.Id + "')\"  >鎵撳嵃瀵煎嚭璐ㄧ枒鍑�</a>";
+                        return "<a class=\"Dayin\" style=\"display: none;\" onclick=\"OpenWindow('鎵撳嵃瀵煎嚭璐ㄧ枒鍑�','98%','100%', '/CooperOrder/PrintZhiyihan?id=" + rowObject.Id + "')\"  >鎵撳嵃瀵煎嚭璐ㄧ枒鍑�</a>";
                     }
                 }
             },
@@ -52,7 +56,7 @@
             { label: '閲囪喘浠g悊鏈烘瀯', name: 'Agency', labtype: 'txt', hidden: false },
             { label: '瀹㈡埛鍚嶇О', name: 'KhdwName', labtype: 'txt', hidden: false },
             { label: '鐢熸垚鐘舵��', name: 'status', labtype: 'combox', hidden: false, data: JSON.parse(status) },
-            
+
 
 
 
@@ -128,6 +132,19 @@
 
         }
 
+           var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
+        var _afterLoadDataload = function (xhr) {
+            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();
+
+            }
+
+
+        };
     </script>
 }
 

--
Gitblit v1.9.1