From f63d8ead25bdb3c32dacca817a059bd30390e9bc Mon Sep 17 00:00:00 2001 From: yzh <snbbt@21cn.com> Date: 星期三, 15 六月 2022 22:20:07 +0800 Subject: [PATCH] 1.系统账户数据库优化: 修改“账户类型”的数据类型为VARCHAR2(1024),多个角色时以半角“,”分隔。 加密盐。 密码加密优化;账户登录优化;角色权限管理(作废用户权限); 2.字典类型管理(定义:用户角色) 3.字典数据管理(初始化用户角色数据) 3.角色权限管理 4.系统账户管理,账户类型对应用户角色(可多选)。 --- web/Model/PageBase.cs | 44 ++++++++++++++++++++++---------------------- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/web/Model/PageBase.cs b/web/Model/PageBase.cs index 0bf7c2b..5637e37 100644 --- a/web/Model/PageBase.cs +++ b/web/Model/PageBase.cs @@ -5,31 +5,31 @@ public class PageBase<T> : Page where T : ISessionObject { - public PageContext<T> AppContext; + public PageContext<T> AppContext; - public override void ProcessRequest(HttpContext context) - { - this.AppContext = new PageContext<T>(context); - if (!this.AppContext.IsValid) - context.Response.Redirect("/error.aspx", true); - base.ProcessRequest(context); - } - - public bool HasRight(string functionID) - { - return this.AppContext.HasRight(functionID); - } - - public void CheckRight(string functionID, FailedOperation failedOperation) - { - try + public override void ProcessRequest(HttpContext context) { - this.AppContext.CheckRight(functionID, failedOperation); + this.AppContext = new PageContext<T>(context); + if (!this.AppContext.IsValid) + context.Response.Redirect("/error.aspx", true); + base.ProcessRequest(context); } - catch (Exception ex) + + public bool HasRight(string functionID) { - this.Response.Write(ex.Message); - this.Response.End(); + return this.AppContext.HasRight(functionID); } - } + + public void CheckRight(string functionID, FailedOperation failedOperation) + { + try + { + this.AppContext.CheckRight(functionID, failedOperation); + } + catch (Exception ex) + { + this.Response.Write(ex.Message); + this.Response.End(); + } + } } -- Gitblit v1.9.1