QiFeng.ZWY.MagWeb/Views/Jurisdiction/RoleJurisdiction.cshtml

(开头部分) 6KB

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

@using QiFeng.LMSD.Utility.MvcHelper
@using QiFeng.LMSD.Model
@model QiFeng.LMSD.Model.Dto.McRolesDto

@{
    ViewBag.Title = "编辑角色权限";
    ViewBag.PathToBtn = "/Jurisdiction/McRoleList";
    ViewBag.TextBtn = "角色列表";
    Layout = "~/Views/Shared/_Layout.cshtml";


    var magModuleCates = ViewBag.magModuleCates == null ? null : ViewBag.magModuleCates as List<ModuleCate>;
}
<!-- /.row -->
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                权限信息
            </div>
            <div class="panel-body">
                <div class="row">
                    @using (Html.BeginForm("RoleJurisdiction", "Jurisdiction", FormMethod.Post, new { id = "frmUpdate", enctype = "multipart/form-data" }))
                    {
                        @Html.AntiForgeryToken()
                        @Html.ValidationSummary(true)

                        @Html.HiddenFor(Model => Model.Id)

                        <div class="col-lg-12">
                            <fieldset>
                                <div class="form-group col-md-12">
                                    <label>当前编辑角色</label>
                                    <div class="input-group">
                                        @Html.DisplayFor(Model => Model.McRoleName, new { @class = "form-control" })
                                    </div>
                                </div>
                                <div class="form-group col-md-12">
                                    <div class="panel panel-default">
                                        <div class="panel-heading">授予权限</div>
                                        <!-- /.panel-heading -->
                                        <div class="panel-body">
                                            @if (magModuleCates != null && magModuleCates.Count > 0)
                                            {
                                                <div class="table-responsive">
                                                    <table class="table">
                                                        <thead>
                                                            <tr>

                                                                @for (int i = 0; i < magModuleCates.Count; i++)
                                                                {
                                                                    <th>
                                                                        <label><input class="theMagModuleType" magModuleTag="@magModuleCates[i].Id" type="checkbox" name="chkMagModules" />@magModuleCates[i].Name</label>
                                                                    </th>
                                                                }

                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                            <tr>
后面还有 68 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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