From 3a3e585d9dd93688ed237bfc46bf06991d0772a1 Mon Sep 17 00:00:00 2001 From: yzh <snbbt@21cn.com> Date: 星期四, 19 五月 2022 15:00:52 +0800 Subject: [PATCH] 账号信息增加是否自动返还 系统账号信息增加:用户类型 客户信息增加:归属客户经理、归属业务员、归属客服人员、归属财务等 客户账号查询优化 账号查询充值优化 --- 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