ASP.NET.4.5.1+MVC5.0设置系统角色与权限(二)(8)


@using SJCRM.Helpers
@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div>
    <div>
        <div>
            <h3>添加</h3>
        </div>
        <div>
            @using (Html.BeginForm())
            {
                <dl>
                    <dd>角色名称:</dd>
                    <dd>
                        <input type="text" datatype="*" nullmsg="请输入名称" />
                    </dd>
                </dl>
      <dl>
                    <dd>角色权限:</dd>
                    <dd>
                        @Html.CheckBoxList("Menu")
                    </dd>
                </dl>
                <dl>
                    <dd>角色内容:</dd>
                    <dd>
                         <textarea rows="10" cols="82"></textarea>
                    </dd>
                </dl>
                <dl>
                    <dd>
                        <input type="submit" value="提 交" />
                    </dd>
                </dl>
            }
        </div>
    </div>
</div>
<script>
    //菜单显示
    $("#systemusersys").addClass("hbg");
    $("");
    $("");
    $(".systemusersys").each(function (index, item) {
        $(this).show();
    });
</script>

Edit.cshtml

复制代码 代码如下:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wjzwdj.html