MyOAExx/Views/System/Role.cshtml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@{
    ViewBag.Title = "Role";
    Layout = "~/Views/_Master.cshtml";
}
@using OA.Models
@using OA.BLL

@{
    IList<RoleInfo> roles = ViewData["RoleList"] as IList<RoleInfo>;
    RoleInfo role = ViewData["Role"] as RoleInfo;
}
<h1><img src="/Images//img/icons/posts.png" alt="" />角色管理</h1>

<div class="bloc">

    <div class="title">
        角色角色管理
    </div>
    <div class="content">
        @if (role == null)
        {
            using (Html.BeginForm("AddRoleInfo", "System", FormMethod.Post))
            {
                <div class="submit">
                    <input type="submit" value="添加角色" style=" float:right;" />
                </div>
                <div class=" input ">
                    <strong>角色名称:</strong><input type="text" name="RoleName" />
                </div>
                <div class="input ">
                    <strong>角色说明:</strong><input type="text" name="RoleDesc" />
                </div>
            }
        }
        else
        {
            using (Html.BeginForm("EditRole", "System", FormMethod.Post, new { Id = role.RoleId }))
            {
                <div class="submit">
                    <input type="submit" value="保存修改" style=" float:right;" />
                </div>
                <div class="input">
                    <strong>角色名称:</strong><input type="text" name="RoleName" value=@role.RoleName />
                </div>
                <div class="input">
                    <strong>角色说明:</strong><input type="text" name="RoleDesc" value=@role.RoleDesc />
                </div>
            }
        }
        <table class="top">
            <thead>
                <tr>
                    @*<th><input type="checkbox" class="checkall" /></th>*@
                    <th>角色名称</th>
                    <th>角色说明</th>
                    <th>角色权限分配</th>
                    <th style="text-align:center;">操作</th>
                </tr>
            </thead>
            <tbody>
后面还有 36 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。