11 2015 档案

摘要:前两天因有事就没来得及写。今天刚刚好空了。这次写的是对角色和管理员对页面按钮之间的控制。先看页面效果说明:先根据角色设置好角色的权限,然后管理员在对应的角色下的权限去设置其权限。在设置角色权限的时候 当某个角色对应某个页面的按钮都是未选中的时候,则设置它的IsShow为0,反之则为1,这样有利于设置... 阅读全文
posted @ 2015-11-29 23:33 yjq_net 阅读(2029) 评论(0) 推荐(2) 编辑
摘要:接下来做的是对页面的增删改查与页面与页面按钮之间的联系。先上代码和页面效果using AuthorDesign.Web.App_Start.Common;using System;using System.Collections.Generic;using System.Linq;using Sys... 阅读全文
posted @ 2015-11-26 15:39 yjq_net 阅读(1863) 评论(0) 推荐(0) 编辑
摘要:做完角色之后接下来做先做页面按钮的增加、删除、修改。这里用到的功能和角色那边是一样的。就不多说了。直接上代码。后台控制器代码using AuthorDesign.Web.App_Start.Common;using System;using System.Collections.Generic;us... 阅读全文
posted @ 2015-11-25 18:33 yjq_net 阅读(1935) 评论(2) 推荐(0) 编辑
摘要:我们先直接拷贝下blank.html这个页面的代码,顺带先建立一个Home控制器,并添加Index视图。将代码拷贝进去。 空白页 - Bootstrap后台管理系统模版Ace下载 ... 阅读全文
posted @ 2015-11-24 21:21 yjq_net 阅读(2887) 评论(6) 推荐(3) 编辑
摘要:接下来先做角色这一板块的(增删改查),首先要新建一个Role控制器,在添加一个RoleList的视图。表格打算采用的是bootstrap的表格。using System;using System.Collections.Generic;using System.Linq;using System.W... 阅读全文
posted @ 2015-11-24 21:20 yjq_net 阅读(2974) 评论(0) 推荐(0) 编辑
摘要:首先先加个区域,名为Adminusing System.Web.Mvc;namespace AuthorDesign.Web.Areas.Admin { public class AdminAreaRegistration : AreaRegistration { public ... 阅读全文
posted @ 2015-11-23 23:31 yjq_net 阅读(3882) 评论(3) 推荐(1) 编辑
摘要:首先在webconfig中加入下面这句代码,这个主要是用来生成数据库的连接字符串View Code并且要修改一下这段代码 View Code将原先5.0.0改为6.0.0接下来,就是要生成数据库了。首先打开工具下的点击程序包管理器控制台。然后输入Enable-migration... 阅读全文
posted @ 2015-11-22 23:30 yjq_net 阅读(2921) 评论(4) 推荐(3) 编辑
摘要:首先我们来写个类进行获取当前线程内唯一的DbContextusing System;using System.Collections.Generic;using System.Data.Entity;using System.Linq;using System.Runtime.Remoting.Me... 阅读全文
posted @ 2015-11-22 22:58 yjq_net 阅读(2955) 评论(8) 推荐(0) 编辑
摘要:首先给上项目的整体框架图:,这里我没有使用BLL,因为感觉太烦了就没有去使用。那么接下来我们首先先去Model层中添加Model。管理员类:using System;using System.Collections.Generic;using System.ComponentModel.DataAn... 阅读全文
posted @ 2015-11-22 22:08 yjq_net 阅读(3836) 评论(8) 推荐(1) 编辑

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示