@model string
<div class="main">
    <table border=0 cellpadding=0 cellspacing=0 class="table table-bordered form-inline form-group-sm" id="tb_list" data-custom-params="formBind:true">
        <thead>
            <tr>
                <td align="center" rowspan="2">字段</td>
                <!--<td align="center">标识</td>-->
                <td align="center" rowspan="2">值类型</td>
                <td align="center" rowspan="2">长度</td>
                @*<td align="center" rowspan="2">默认值</td>*@
                <td align="center" colspan="2">权限</td>
                @*<td align="center" colspan="2">会员</td>
                <td align="center" colspan="2">匿名</td>*@
                @*<td align="center" rowspan="2">添加数据<br />类型不匹配</td>
                <td align="center" rowspan="2">修改数据<br />类型不匹配</td>*@
                @*<td align="center" rowspan="2">更新数据<br />类型不匹配</td>*@
                <td align="center" rowspan="2">搜索</td>
                <td align="center" rowspan="2">
                    列表页显示
                    <br />
                    <input type="checkbox" class="checkbox ui-selectInvert" data-custom-params="obj:'listItem',isReverse:false" />
                </td>
                @*<td align="center" rowspan="2">排序字段</td>*@
            </tr>

            <tr>
                <td align="center">可增<br /><input type="checkbox" class="checkbox ui-selectInvert" data-custom-params="obj:'canAdd',isReverse:false" /></td>
                <td align="center">可改<br /><input type="checkbox" class="checkbox ui-selectInvert" data-custom-params="obj:'canEdit',isReverse:false" /></td>
                @*<td align="center">可更新<br /><input type="checkbox" class="checkbox ui-selectInvert"  data-custom-params="obj:'admin_can_update_list',isReverse:false" /></td>
                <td align="center">可增<br /><input type="checkbox" class="checkbox ui-selectInvert" data-custom-params="obj:'member_can_add',isReverse:false" /></td>
                <td align="center">可改<br /><input type="checkbox" class="checkbox ui-selectInvert" data-custom-params="obj:'member_can_edit',isReverse:false" /></td>
                <td align="center">可更新<br /><input type="checkbox" class="checkbox ui-selectInvert"  data-custom-params="obj:'member_can_update_list',isReverse:false" /></td>
                <td align="center">可增<br /><input type="checkbox" class="checkbox ui-selectInvert" data-custom-params="obj:'anonymous_can_add',isReverse:false" /></td>
                <td align="center">可改<br /><input type="checkbox" class="checkbox ui-selectInvert" data-custom-params="obj:'anonymous_can_edit',isReverse:false" /></td>*@
            </tr>
        </thead>
        <tr class="item list-template-item" id="item_{name}">
            <td align="center">
                <input type="hidden" id="valueType" name="valueType" value="{valueType}" />
                <input type="checkbox" name="name" class="checked-item" value="{name}" checked style="display:none">
                {name}
            </td>
            <!--<td align="center"><input type="text" class="form-control" id="remark" name="remark" value="{remark}" style="width:100px" /></td>-->
            <td align="center">{valueType}</td>
            <td align="center">{valueLength} <input type="hidden" class="form-control" id="valueLength" name="valueLength" value="" style="width:80px" /></td>
            @*<td align="center"><input type="text" class="form-control" id="default_value" name="default_value" value="{default_value}" style="width:80px" /></td>*@
            <td align="center"><input type="checkbox" class="checkbox" id="canAdd" name="canAdd" value="1" /></td>
            <td align="center"><input type="checkbox" class="checkbox" id="canEdit" name="canEdit" value="1" /></td>
            @*<td align="center"><input type="checkbox" class="checkbox" id="admin_can_update_list" name="admin_can_update_list" value="1" /></td>*@
            
            @*<td align="center"><input type="checkbox" class="checkbox" id="membeCanAdd" name="memberCanAdd" value="1" /></td>
            <td align="center"><input type="checkbox" class="checkbox" id="memberCanEdit" name="memberCanEdit" value="1" /></td>*@
            @*<td align="center"><input type="checkbox" class="checkbox" id="member_can_update_list" name="member_can_update_list" value="1" /></td>*@
           

             @*<td align="center">
                <select class="form-control" name="add_null" id="add_null">
                    <option value="auto">自动</option>
                    <option value="default">默认值</option>
                    <option value="skip">跳过</option>
                    <option value="exception">异常</option>
                </select>
            </td>
            <td align="center">
                <select class="form-control" name="edit_null" id="edit_null">
                    <option value="auto">自动</option>
                    <option value="default">默认值</option>
                    <option value="skip">跳过</option>
                    <option value="exception">异常</option>
                </select>
            </td>*@
            @*<td align="center">
                <select class="form-control" name="update_list_null" id="update_list_null">
                    <option value="auto">自动</option>
                    <option value="default">默认值</option>
                    <option value="skip">跳过</option>
                    <option value="exception">异常</option>
                </select>
            </td>*@
            <td align="center">
                <select class="form-control" name="searchType" id="searchType">
                    <option value="">无</option>
                    <option value="precise">精确</option>
                    <option value="fuzzy">模糊</option>
                    <option value="in">多值(in)</option>
                    <option value="range">范围</option>
                </select>
            </td>
            <td align="center"><input type="checkbox" class="checkbox" id="listItem" name="listItem" value="1" /></td>
            @*<td align="center"><input type="checkbox" class="checkbox" id="order_item" name="order_item" value="1" /></td>*@
        </tr>
    </table>
    <span class="help-block">警告：请勿随意更改配置</span>
    <div class="footerarea">
        <div class="btn-group btn-group-sm">
            <button type="button" class="btn btn-default btn-sm ui-updateMultiple" data-custom-params="url:'@Url.Action("FieldUpdate")?table=@Request.QueryString["table"]',async:false,callBack:''">更新配置</button>
        </div>
    </div>
</div>
<script type="text/javascript">
    var url = "@Url.Action("FieldList")?table=@Request.QueryString["table"]";
    $("#tb_list").ListBind({ url: url,formBind: true });
</script>

