@model string
<div class="main">
    <form method="post" class="form-horizontal form form-inline ui-validForm" action="@Url.Action()">
        <div class="control-group">
            <label class="control-label">名称</label>
            <div class="controls">
                <input type="text" id="name" name="name" maxlength="50" class="form-control" />
                <span class="help-block"></span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">序号</label>
            <div class="controls">
                <input type="text" id="xuhao" name="xuhao" style="width:70px" data-validate="dataType:'num" nullMsg:'请填写序号" value="1" maxlength="5" class="form-control ui-queryString" />
                <span class="help-block"></span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <input type="hidden" name="id" id="id" value="" />
                <input type="hidden" name="table" id="table" value="@Request.QueryString["table"]" />
                <button type="button" class="btn btn-primary btn-sm ui-pagePost" id="bt_submit" data-custom-params="url:'@Url.Action()',callBack:'PostRefreshBack'">提交</button>
                <button type="button" class="btn btn-default btn-sm ui-closeDialog">关闭</button>
                <span class="help-block"></span>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    //绑定数据
    var id =Request("id");
    if (id != "")
    {
        var data = @Html.Raw(Model??"null");
        $(".form").FormBind(data);
    }
</script>











