CommWEB/admin/Modubles/AuthorityPage.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using CommLei.Lib;

/**************************************
 * 模块:权限数据管理
 * 作者:Lei
 * 日期:2013-11-24
 * 网址:www.CommLei.com.cn
 * ***********************************/

namespace CommLeiWeb.admin.Modubles
{
    public partial class AuthorityPage : System.Web.UI.Page
    {
        CommLei.BLL.Sys_AuthorityDir bll = new CommLei.BLL.Sys_AuthorityDir();

        protected void Page_Load(object sender, EventArgs e)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "Msg", "window.parent.changewin();", true);
            strinfo.InnerHtml = "";
            strinfo.Visible = false;
            if (!IsPostBack)
            {
                if (!SessionBox.CheckUserSession())
                {
                    Response.Redirect("~/Error.aspx");
                }
                else
                {
                    //初始化模块权限
                    UserHandle.InitModule("admin_AuthorityPage");
                    if (UserHandle.ValidationHandle(CommLei_Tag.Browse))//是否有浏览权限
                    {
                        if(!UserHandle.ValidationHandle(CommLei_Tag.Add))
                        {
                            ChildPanel.Visible = false;
                            btn_add.Attributes.Add("onclick", "return CheckAdd()");//加入验证
                        }                        
                        BindOrder();
                    }
                    else
                    {
                        Session["ErrorNum"] = "0";
                        Response.Redirect("~/Error.aspx");
                    }
                }
            }
        }

        /// <summary>
        /// 将数据绑定到DataSet
        /// </summary>
        public void BindOrder()
        {
            DataSet ds = bll.GetAuthorityList("", "order by AuthorityOrder asc");
后面还有 148 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。