CommWEB/admin/Modubles/UserGroups.aspx.cs

(开头部分) 9KB

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

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

/**************************************
 * 模块:用户分组管理
 * 作者:Nick.Yan
 * 日期: 2009-03-19
 * 网址:www.CommLei.com.cn
 * ***********************************/

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

        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_UserGroups");
                    if (UserHandle.ValidationHandle(CommLei_Tag.Browse))//是否有浏览权限
                    {
                        if (!UserHandle.ValidationHandle(CommLei_Tag.Add))
                        {
                            ChildPanel.Visible = false;                            
                        }
                        btn_add.Attributes.Add("onclick", "return CheckAdd()");//加入验证
                        CommLei.BLL.UserGroup ugbll = new CommLei.BLL.UserGroup();
                        DataView dvList = new DataView(ugbll.GetUserGroupList("").Tables[0]);
                        LoadGroupList("0", 0, dvList);
                        gtList.Items.Insert(0, new ListItem("根节点", "0"));
                        BindOrder();
                    }
                    else
                    {
                        Session["ErrorNum"] = "0";
                        Response.Redirect("~/Error.aspx");
                    }
                }
            }
        }

        /// <summary>
后面还有 179 行代码,购买后查看完整代码

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

AI 解读 AI

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

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