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


@{
    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>
                        <input type="text" datatype="n" nullmsg="请输入产品名称" />
                    </dd>
                </dl>
                <dl>
                    <dd>Email:</dd>
                    <dd>
                        <input type="text" />
                    </dd>
                </dl>
                <dl>
                    <dd>手机号:</dd>
                    <dd>
                        <input type="text" />
                    </dd>
                </dl>
                <dl>
                    <dd>密码:</dd>
                    <dd>
                        <input type="text" />
                    </dd>
                </dl>
                <dl>
                    <dd>确认密码:</dd>
                    <dd>
                        <input type="text" />
                    </dd>
                </dl>
                <dl>
                    <dd>岗位:</dd>
                    <dd>
                        @Html.DropDownList("JobID", ViewBag.JobID as SelectList)
                    </dd>
                </dl>
                <dl>
                    <dd>部门:</dd>
                    <dd>
                         @Html.DropDownList("DepartmentID", ViewBag.DepartmentID as SelectList)
                    </dd>
                </dl>
                <dl>
                    <dd>角色:</dd>
                    <dd>
                         @Html.DropDownList("RoleID", ViewBag.RoleID as SelectList)
                    </dd>
                </dl>
                <dl>
                    <dd>
                        <input type="submit" value="提 交" />
                    </dd>
                </dl>
            }
        </div>
    </div>
</div>
<script>
    //菜单显示
    $("");
    $("");
    $("");
    $(".@(ViewBag.ControllerName)sys").each(function (index, item) {
        $(this).show();
    });
</script>

Edit.cshtml

复制代码 代码如下:

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

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