From 0ae3194bdd3dd29e5ad1450328a19f7fdbe53ea9 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期二, 18 十月 2022 15:26:23 +0800
Subject: [PATCH] 没什么调整

---
 web/Model/PageBase.cs |   47 +++++++++++++++++++++++------------------------
 1 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/web/Model/PageBase.cs b/web/Model/PageBase.cs
index ac8f746..5637e37 100644
--- a/web/Model/PageBase.cs
+++ b/web/Model/PageBase.cs
@@ -1,36 +1,35 @@
-锘�
-using Common;
+锘縰sing Common;
 using System;
 using System.Web;
 using System.Web.UI;
 
 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