@model string
<div class="main">
    <table border=0 cellpadding=0 cellspacing=0 class="tb-head form-inline form-group-sm">
        <tr>
            <td>
                <div class="btn-group">
                    <button type="button" class="btn btn-default btn-sm ui-selectInvert">反选</button>
                    <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown" aria-expanded="false">
                        菜单
                        <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.Action("Add")?table=@Request.QueryString["table"]',width:'600px',height:'250px'">添加</a></li>
                        <li class="divider"></li>
                        <li><a href="javascript:void(0)" class="ui-updateMultiple" data-custom-params="url:'@Url.Action("UpdateList")'">更新</a></li>
                        <li class="divider"></li>
                        <li><a href="javascript:void(0)" class="ui-deleteMultiple" data-custom-params="url:'@Url.Action("Delete")'">删除</a></li>
                    </ul>
                </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 width="45px">选择</td>
            <td align="center">名称</td>
            <td align="center">序号</td>
            <td align="center">操作</td>
        </tr>
        <tr class="item" id='item_{id}'>
            <td align="center"  style="width:40px"><input type="checkbox" id="id" name="id" value="{id}" class="id_{id}"></td>
            <td align="center">{name}</td>
            <td align="center"><input type="text" name="xuhao" id="xuhao" class="form-control ui-listXuhao" value='{xuhao}' style="width:50px" maxlength="3" /></td>
            <td align="center">
                <div class="btn-group btn-group-sm">
                    <button type="button" data-custom-params="title:'{name}-编辑',url:'@Url.Action("Edit")?id={id}',width:'600px',height:'250px'" class="btn btn-default btn-sm ui-dialog">修改</button>
                    <button type="button" data-custom-params="url:'@Url.Action("Delete")',id:'{id}'" class="btn btn-default btn-sm ui-deleteSingle">删除</button>
                </div>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    var table = Request("table");
    function LoadData()
    {
        var url = "@Url.Action("ListData")?table=" + table;
        $("#tb_list").ListBind(url, {callBack: "LoadedInit" });
    }
    LoadData();
</script>
