From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 28 二月 2023 13:25:09 +0800 Subject: [PATCH] 工资绩效改版 --- zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml | 34 ++++++++++++++++++++++++++-------- 1 files changed, 26 insertions(+), 8 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml b/zhengcaioa/zhengcaioa/Views/DailyManagement/MemoWorkAnPai.cshtml index 0dbb192..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,7 +22,7 @@ }, { label: '宸ヤ綔鍐呭', name: 'Context', labtype: 'txt', width: 300, hidden: false }, { - label: '瑕佹眰瀹屾垚鏃堕棿', name: 'TimeName', labtype: 'txt', width: 100, hidden: false + 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 }, @@ -27,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; } @@ -57,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>' } }, @@ -106,7 +109,7 @@ } OpenWindow(caption, "500px", "600px", "/DailyManagement/EditWorkKaoHe/?id=" + id); - } + } function del(id) { $.ajax({ @@ -210,10 +213,10 @@ - - + + function sendZhiwustatus() { @@ -232,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