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


 @using SJCRM.Helpers
 @{
     ViewBag.Title = "Add";
     Layout = "~/Views/Shared/_Layout.cshtml";
 }
 @model SJCRM.Models.Role
 <div>
     <div>
         <div>
             <h3>编辑</h3>
         </div>
         <div>
             @using (Html.BeginForm())
             {
                 <dl>
                     <dd>角色名称:</dd>
                     <dd>
                         <input type="text" datatype="*" nullmsg="请输入名称" value="@Model.RoleName"/>
                     </dd>
                 </dl>
       <dl>
                     <dd>角色权限:</dd>
                     <dd>
                         @Html.CheckBoxList("Menu")
                     </dd>
                 </dl>
                 <dl>
                     <dd>角色内容:</dd>
                     <dd>
                          <textarea rows="10" cols="82">@Model.RoleName</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>

Search.cshtml

复制代码 代码如下:

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

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