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/DailyManagement/HoldPhone.cshtml |   47 +++++++++++++++++++++++++++++++++--------------
 1 files changed, 33 insertions(+), 14 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/HoldPhone.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/HoldPhone.cshtml
index 10d3b40..7bcc177 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/HoldPhone.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/HoldPhone.cshtml
@@ -1,22 +1,30 @@
-锘緻{
+锘緻using DTO;
+@{
     ViewBag.Title = "HoldPhone";
     Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
+
+    string Creater =  ViewData["Creater"] as string;
+
 }
 @section headerStyle{
     <script type="text/javascript">
 
         var LineType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.LineType))';
         var Intention = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Intention))';
+        var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
         dataCol = [
             { label: 'id', name: 'Id', labtype: 'txt', hidden: true  },
             {
-                label: '鏉ョ數鏃堕棿', name: 'InTime', labtype: 'txt', width: 100, hidden: false,
-                formatter: function (cellvalue, options, rowObject) {
-                    return '<a href="javascript: void (0)" onclick="edit(\'' + rowObject.Id + '\');">' + new Date(cellvalue).Format("yyyy-MM-dd hh:mm") + '</a>';
-                }
+                label: '鏉ョ數鏃堕棿', name: 'InTime', labtype: 'txt', width: 80, hidden: false
+                //,
+                //formatter: function (cellvalue, options, rowObject) {
+                //    return '<a href="javascript: void (0)" onclick="edit(\'' + rowObject.Id + '\');">' + new Date(cellvalue).Format("yyyy-MM-dd hh:mm") + '</a>';
+                //}
             },
             {
-                label: '鐢佃瘽绫诲瀷', name: 'LineType', labtype: 'txt', width: 100, hidden: false,
+                label: '鐢佃瘽绫诲瀷', name: 'LineType', labtype: 'txt', width: 50, hidden: false,
                 formatter: function (cellvalue, options, rowObject) {
                     let LType = JSON.parse(LineType);
                     let value = '';
@@ -30,10 +38,10 @@
                 }
             },
             { label: '鏉ョ數鍗曚綅', name: 'OrderId', labtype: 'txt', hidden: false, width: 200 },
-            { label: '鐢佃瘽鍙风爜', name: 'Phone', labtype: 'txt', hidden: false, width: 100},
+            { label: '鐢佃瘽鍙风爜', name: 'Phone', labtype: 'txt', hidden: false, width: 50},
             { label: '鐢佃瘽鍐呭', name: 'Context', labtype: 'txt', hidden: false, width: 200},
             {
-                label: '鍚堜綔鎰忓悜', name: 'Intention', labtype: 'txt', width: 100, hidden: false,
+                label: '鍚堜綔鎰忓悜', name: 'Intention', labtype: 'txt', width: 50, hidden: false,
                 formatter: function (cellvalue, options, rowObject) {
                     let it = JSON.parse(Intention);
                     let value = '';
@@ -46,15 +54,15 @@
                     return value;
                 }
             },
-            { label: '鎺ョ數璇濅汉', name: 'UserId', labtype: 'txt', hidden: false, width: 100 },
+            { label: '鎺ョ數璇濅汉', name: 'UserId', labtype: 'txt', hidden: false, width: 50 },
 
              {
                  label: '鎿嶄綔', name: 'RecStatus', align: "center", align: "center", sortable: false, width: 100, labtype: 'txt',
              formatter: function (cellvalue, options, rowObject) {
-                 return '<a href="javascript:void(0)" onclick="edit(\'' + rowObject.Id + '\');"> <span style="background: #ECF3FF;">  淇敼 </span> </a > '
-                     + ' <a href="javascript:void(0)" onclick="del(\'' + rowObject.Id + '\');">  <span style="background: #ECF3FF;"> 鍒犻櫎 </span></a>'
+                 return '<a href="javascript:void(0)" class="Update" style="display:none;" onclick="edit(\'' + rowObject.Id + '\');"> <span style="background: #ECF3FF;">  淇敼 </span> </a > '
+                     + ' <a href="javascript:void(0)" class="Delete"  style="display:none;" onclick="del(\'' + rowObject.Id + '\');">  <span style="background: #ECF3FF;"> 鍒犻櫎 </span></a>'
              }
-            },          
+            },
 
             { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true },
             { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true },
@@ -63,7 +71,7 @@
             { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true }
 
         ];
-        dataUrl = "/DailyManagement/GetList";
+        dataUrl = "/DailyManagement/GetList"+"@(string.IsNullOrEmpty(Creater)?"":"?Creater="+ Creater)";
         searchCol = [
             { label: '鏉ョ數鏃堕棿', name: 'Createtime', labtype: 'datearea', hidden: false },
             { label: '鐢佃瘽绫诲瀷', name: 'LineType', labtype: 'combox', hidden: false, data: JSON.parse(LineType)  },
@@ -94,7 +102,7 @@
                     async: false,
                     data: $('form').serializeArray(),
                     success: function (data) {
-                      
+
 
                         if (data.Result) {
                             parent.layer.msg('鍒犻櫎鎴愬姛', { icon: 6 });
@@ -131,7 +139,18 @@
             }
         }
 
+        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