CommWEB/admin/Modubles/RolesPage.aspx.cs

(开头部分) 10KB

这里只显示每个文件的开头 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;

/**************************************
 * 模块:角色数据管理
 * 作者:Nick.Yan
 * 日期:2008-11-13
 * 网址:www.CommLei.com.cn
 * ***********************************/

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

        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_RolesPage");
                    //是否有浏览权限
                    if (UserHandle.ValidationHandle(CommLei_Tag.Browse))
                    {
                        if (!UserHandle.ValidationHandle(CommLei_Tag.Add))
                        {
                            addpanel.Visible = false;                            
                        }

                        btn_add.Attributes.Add("onclick", "return CheckAdd()");//加入验证
                        //绑定组信息
                        CommLei.BLL.Sys_Groups Groupbll = new CommLei.BLL.Sys_Groups();
                        GroupList.DataSource = Groupbll.GetGroupList("GroupType=1", "order by GroupOrder asc");
                        GroupList.DataTextField = "GroupName";
                        GroupList.DataValueField = "GroupID";
                        GroupList.DataBind();
                        GroupList.Items.Insert(0, new ListItem("全部", "all"));

                        BindOrder();
                    }
                }
            }
        }

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

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

AI 解读 AI

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

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