@model string

<div class="main">
    <form class="form-horizontal form ui-validForm" action="@Url.Action()" method="post">
        <div class="control-group">
            <label class="control-label">收件组</label>
            <div class="controls form-inline form-group-sm">
                <select type="text" value="" class="form-control" maxlength="30" multiple data-validate="dataType:'*" nullMsg:'请选择收件组！" id="directory" name="directory" style="width:95%;height:200px;">
                    <option value="">请选择收件组</option>
                </select>
                <span class="help-block"></span>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls form-inline">
                <button type="button" class="btn btn-primary btn-sm ui-pagePost" data-custom-params="url:'@Url.Action()',callBack:'PostRefreshBack'" id="bt_submit">提交</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">
    @{
        if (!string.IsNullOrWhiteSpace(Model))
        {
            <text>
                var params = { valueField: "id", textField: "beizhu" }
                var directory =@Html.Raw(Model??"null");
                $("#directory").FillSelect(directory, params);
            </text>
        }
    }

</script>