username@email.com
2023-02-28 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c
zhengcaioa/zhengcaioa/Views/AdmTongxunlu/Index.cshtml
@@ -1,13 +1,16 @@
@{
@using DTO;
@{
    ViewBag.Title = "AdmTongxunlu";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@section headerStyle{
    <script type="text/javascript">
        var TypeId = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.TypeId))';
        dataCol = [
@@ -24,21 +27,21 @@
            { label: '联系电话', name: 'Lianxidianhua', labtype: 'txt', hidden: false, width: 100 },
            { label: '备注', name: 'Beuzhu', 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%', '/AdmTongxunlu/Edit?id=" + rowObject.Id + "')\"  >修改</a>&nbsp;&nbsp;&nbsp;<a onclick=\"_pagedel('" + rowObject.Id + "')\"  >删除</a>";
                    return "<a   class='Update' style='display: none;'  onclick=\"OpenWindow('修改','98%','100%', '/AdmTongxunlu/Edit?id=" + rowObject.Id + "')\"  >修改</a>&nbsp;&nbsp;&nbsp;<a  class='Delete' style='display: none;' onclick=\"_pagedel('" + rowObject.Id + "')\"  >删除</a>";
                }
            },
        ];
        dataUrl = "/AdmTongxunlu/GetList";
        searchCol = [
            { label: '类别', name: 'TypeId', labtype: 'combox', hidden: false, data: JSON.parse(TypeId), cwidth: '5%', cccwidth: '15%' },
            { label: '单位名称', name: 'DanweiName', labtype: 'txt', hidden: false },
@@ -50,7 +53,7 @@
        var _pageAdd = function () {
            OpenWindow("新增物品", "98%", "90%", "/AdmTongxunlu/Edit/");
            OpenWindow("新增通讯录", "98%", "90%", "/AdmTongxunlu/Edit/");
        }
        var _pagedel = function (id) {
@@ -65,7 +68,7 @@
                        if (data.Result) {
                            layer.msg('删除成功', { icon: 6 });
                            window._reloadPageData();
                        }
@@ -86,10 +89,10 @@
                });
            }
        }
        var _afterSave = function (result) {
@@ -108,7 +111,20 @@
                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>
}
@@ -117,7 +133,7 @@
    </script>
}