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/DailyManagement/MemoWorkAnPai.cshtml | 37 ++++++++++++++++++++++++++-----------
1 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml
index 03e2f1e..8bfb523 100644
--- a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml
@@ -1,6 +1,9 @@
-锘緻{
+锘緻using DTO;
+@{
ViewBag.Title = "MemoBook";
Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+ List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@{PltUser user = (PltUser)ViewData["curentuser"];}
@section headerStyle{
@@ -19,10 +22,7 @@
},
{ label: '宸ヤ綔鍐呭', name: 'Context', labtype: 'txt', width: 300, hidden: false },
{
- label: '瑕佹眰瀹屾垚鏃堕棿', name: 'Time', labtype: 'txt', width: 100, hidden: false,
- formatter: function (cellvalue, options, rowObject) {
- return new Date(cellvalue).Format("yyyy-MM-dd hh:mm");
- }
+ label: '瑕佹眰瀹屾垚鏃堕棿', name: 'TimeName', labtype: 'txt', width: 100, hidden: false
},
{ label: '鍔炵悊鎯呭喌', name: 'BanLi', labtype: 'txt', width: 300, hidden: false },
{ label: '瀹屾垚鏃堕棿', name: 'WanchengTimeName', labtype: 'txt', width: 100, hidden: false },
@@ -30,7 +30,7 @@
label: '宸ヤ綔鑰冩牳', name: 'KaoHe', labtype: 'txt', width: 100, hidden: false,
formatter: function (cellvalue, options, rowObject) {
if (cellvalue == null || cellvalue == "" ) {
- return '<a href="javascript: void (0)" onclick="kaohe(\'' + rowObject.Rtype + '\',\'' + rowObject.Id + '\');">鑰冩牳</a>';
+ return '<a href="javascript: void (0)" class="Kaohe" style="display:none;" onclick="kaohe(\'' + rowObject.Rtype + '\',\'' + rowObject.Id + '\');">鑰冩牳</a>';
} else {
return rowObject.KaoHeName;
}
@@ -60,8 +60,8 @@
{
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.Rtype + '\',\'' + 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.Rtype + '\',\'' + 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>'
}
},
@@ -109,7 +109,7 @@
}
OpenWindow(caption, "500px", "600px", "/DailyManagement/EditWorkKaoHe/?id=" + id);
- }
+ }
function del(id) {
$.ajax({
@@ -213,10 +213,10 @@
-
-
+
+
function sendZhiwustatus() {
@@ -235,5 +235,20 @@
sendZhiwustatus();
+
+ 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>
}
\ No newline at end of file
--
Gitblit v1.9.1