From 1243f9cdb1ce367af05caabbb71ce81e38d5a1af Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 16 四月 2025 16:16:43 +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