WebUI/AchieveManageWeb/Views/Table/Index.cshtml

(开头部分) 17KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>数据表管理</title>
    <link href="~/Scripts/jquery-easyui-1.4.4/themes/bootstrap/easyui.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-easyui-1.4.4/jquery.min.js"></script>
    <script src="~/Scripts/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
    <script src="~/Scripts/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
    <link href="~/Content/themes/icon.css" rel="stylesheet" />
    <script src="~/Content/js/common.js"></script>
    <link href="~/Content/themes/table.css" rel="stylesheet" />
    <script type="text/javascript">
        $(function () {
            $.ajax({     //请求当前用户可以操作的按钮
                url: "/Button/GetUserAuthorizeButton?r=" + Math.random(),
                type: "post",
                data: { "KeyCode": "Table", "KeyName": "Table" },
                dataType: "json",
                timeout: 5000,
                success: function (data) {
                    if (data.success) {
                        var toolbar = getToolBar(data);      //common.js
                        if (data.search) {     //判断是否有浏览权限
                            var oldSelectTabId;   //上次点选的RoleId
                            $("#ui_Table_dg").datagrid({       //初始化datagrid
                                url: "/Table/GetAllTableInfo",
                                striped: true, rownumbers: true, pagination: true, pageSize: 20, singleSelect: true, multiSort: false,
                                idField: 'Id',
                                sortName: 'UpdateTime',
                                sortOrder: 'desc',
                                pageList: [20, 40, 60, 80, 100],
                                frozenColumns: [[
                                                //{ field: 'ck', checkbox: true },
                                                //{ field: 'Id', title: 'ID', width: 60 },
                                                { field: 'TabName', title: '物理表名', width: 100 },
                                                { field: 'TabViewName', title: '表显示名', width: 100 }]],
                                columns: [[
                                            {
                                                field: 'IsActive', title: '启用', width: 40, align: 'center',
                                                formatter: function (value, row, index) {
                                                    return value ? '<img src="../../Content/themes/icon/chk_checked.gif" alt="已启用" title="已启用" />' : '<img src="../../Content/themes/icon/chk_unchecked.gif" alt="未启用" title="未启用" />';
                                                }
                                            },
                                           { field: 'CreateBy', title: '创建人', width: 80 },
                                           { field: 'CreateTime', title: '创建时间', width: 120 },
                                           { field: 'UpdateBy', title: '最后更新人', width: 130 },
                                           { field: 'UpdateTime', title: '最后更新时间', sortable: true, width: 150 }
                                ]],
                                toolbar: toolbar.length == 0 ? null : toolbar,
                                onSelect: function (rowIndex, rowData) {
                                    if (oldSelectTabId == rowData.Id) {
                                        return;
                                    }
                                    oldSelectTabId = rowData.Id;
后面还有 290 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。