| | |
| | | @{ |
| | | @using DTO; |
| | | @{ |
| | | ViewBag.Title = "AdmZhanghaomima"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | |
| | | List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | |
| | | { |
| | | label: '产品项目', name: 'Chanpinxiangmu', labtype: 'txt', hidden: false, width: 100 |
| | | }, |
| | | { label: '账号', name: 'Zhanghao', labtype: 'txt', hidden: true, width: 100 }, |
| | | { label: '账号', name: 'Zhanghao', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { label: '密码', name: 'Mima', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '密保', name: 'Mibao', labtype: 'txt', hidden: false, width: 100 }, |
| | |
| | | { |
| | | label: '操作', name: 'caozuo', labtype: 'txt', hidden: false, width: 50, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('修改','98%','100%', '/AdmZhanghaomima/Edit?id=" + rowObject.Id + "')\" >修改</a> <a onclick=\"_pagedel('" + rowObject.Id + "')\" >删除</a>"; |
| | | return "<a class='Update' style='display: none;' onclick=\"OpenWindow('修改','98%','100%', '/AdmZhanghaomima/Edit?id=" + rowObject.Id + "')\" >修改</a> <a class='Delete' style='display: none;' onclick=\"_pagedel('" + rowObject.Id + "')\" >删除</a>"; |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | |
| | | var _pageAdd = function () { |
| | | OpenWindow("新增物品", "98%", "90%", "/AdmZhanghaomima/Edit/"); |
| | | OpenWindow("新增账号密码", "98%", "90%", "/AdmZhanghaomima/Edit/"); |
| | | } |
| | | |
| | | var _pagedel = function (id) { |
| | |
| | | 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> |
| | | } |
| | | |