From 558dae4a18d393ac38daa43a354e8bc9a22e4e26 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 02 十一月 2023 16:52:59 +0800
Subject: [PATCH] 班次安排座位

---
 zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml |   43 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 35 insertions(+), 8 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml b/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml
index f2cab0f..8673c1f 100644
--- a/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/OrderBanci/Index.cshtml
@@ -1,10 +1,13 @@
-锘緻{
+锘緻using DTO;
+@{
     ViewBag.Title = "OrderBanci";
     Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 }
 @section headerStyle{
     <script type="text/javascript">
-       
+
         dataCol = [
             { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
 
@@ -19,13 +22,23 @@
             { label: '缁撴潫鏃堕棿', name: 'ShijianendName', labtype: 'txt', hidden: false, width: 200 },
             { label: '鍦扮偣', name: 'Didian', labtype: 'txt', hidden: false, width: 400 },
             { label: '浜烘暟', name: 'Renshu', labtype: 'txt', hidden: false, width: 200 },
+            { label: '搴т綅琛屾暟', name: 'Hang', labtype: 'txt', hidden: false, width: 200 },
+            { label: '搴т綅鍒楁暟', name: 'Lie', labtype: 'txt', hidden: false, width: 200 },
             {
-                label: '鍩硅鏃堕棿', name: 'Creater', labtype: 'txt', hidden: false, width: 100,
+                label: '璇剧▼浠锋牸', name: 'Creater', labtype: 'txt', hidden: false, width: 100,
                 formatter: function (cellvalue, options, rowObject) {
-                    return "<a onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\"  >鍩硅鏃堕棿</a>";
+                    return "<a  class='Jiage'  style='display: none;' onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\"  >璇剧▼浠锋牸</a>";
                 }
             },
-          
+
+            {
+                label: '鐣欏骇', name: 'Liuzuo', labtype: 'txt', hidden: false, width: 100,
+                formatter: function (cellvalue, options, rowObject) {
+                    return "<a onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/Liuzuo?id=" + rowObject.Id + "')\"  >鐣欏骇</a>";
+                   // return "<a  class='Jiage'  style='display: none;' onclick=\"OpenWindow('" + rowObject.Banci.replace(/'/g, '') + "','98%','100%', '/OrderBanci/IndexDtl?OrderBanciId=" + rowObject.Id + "')\"  >鐣欏骇</a>";
+                }
+            },
+
 
         ];
         dataUrl = "/OrderBanci/GetList";
@@ -62,9 +75,23 @@
             } else {
                 /**/
                 toastr.error("鍒犻櫎鎴愬姛");
-        /**/
-    }
-}
+                /**/
+            }
+        }
+        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