<div class="main">
    <table border=0 cellpadding=0 cellspacing=0 class="tb-head form-inline form-group-sm">
        <tr>
            <td>
                <div class="btn-group btn-group-sm">
                    <button type="button" class="btn btn-default ui-selectInvert">反选</button>
                    <div class="btn-group btn-group-sm">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            菜单<span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="javascript:void(0)" class="ui-dialog" data-custom-params="title:'添加控制器/方法',url:'@Url.ActionUrl("Add")?menuId=@Request.QueryString["menuId"]',width:'800px',height:'520px'">添加</a></li>
                            <li class="divider"></li>
                            <li><a href="javascript:void(0)" class="ui-deleteMultiple" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData'">删除</a></li>
                        </ul>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <table border=0 cellpadding=0 cellspacing=0 class="table table-bordered form-inline form-group-sm" id="tb_list">
        <thead>
            <tr>
                <td align="center" style="width:40px"><input type="checkbox" title="选择" class="ui-selectInvert" data-custom-params="isReverse:false"></td>
                <td align="center">名称</td>
                <td align="center">命名空间</td>
                <td align="center">控制器</td>
                <td align="center">方法</td>
                <td align="center">请求类型</td>
                <td align="center">默认项</td>
                <td align="center">操作</td>
            </tr>
        </thead>
        <tr class="item" id="item_{id}">
            <td align="center">
                <input type="checkbox" class="checked-item" value="{id}">
            </td>
            <td align="center">{name}</td>
            <td align="center">{nameSpace}</td>
            <td align="center">{controller}</td>
            <td align="center">{action}</td>
            <td align="center">{method}</td>
            <td align="center"><span class="is-{isDefault}"></span></td>
            <td align="center">
                <input type="hidden" name="id" value="{id}" />
                <div class="btn-group btn-group-sm">
                    <button type="button" data-custom-params="title:'{Name}-编辑',url:'@Url.ActionUrl("Edit")?id={id}',width:'800px',height:'520px'" class="btn btn-default btn-sm ui-dialog">修改</button>
                    <button type="button" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData'" class="btn btn-default btn-sm ui-deleteSingle btn-default-{isDefault}">删除</button>
                </div>
            </td>
        </tr>
</table>
</div>
<div class="zhushi">
    注：如果需要对主菜单下所有功能进行精细的权限控制，可在这里填写，然后在角色管理>权限设置中重新进行设置。
</div>
<script type="text/javascript">
    function LoadData() {
        var jsonUrl = "@Url.ActionUrl("ListData")?menuId=@Request.QueryString["menuId"]";
        $("#tb_list").ListBind({url:jsonUrl, callBack: "LoadedInit" });
    }
    function LoadedInit() {
        $(".btn-default-1").attr("disabled", "disabled");
    }
    LoadData();
</script>