Web/Manage/SystemManage/BasicInfoRight.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BYLD.xmlerBLL;
using BYLD.xmlerModel;
using Maticsoft.BLL.xmler;
using Maticsoft.Model.xmler;

namespace THG.Web.Manage.SystemManage
{
    public partial class BasicInfoRightList : System.Web.UI.Page
    {
        private int userid = Common.Units.GetIntQS("userid");
        private string truename = Common.Units.GetStringQS("truename");

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                if (userid > 0)
                {
                    BindDoMainList();

                    if (truename != "")
                    {
                        this.txtTrueName.Text = truename;
                    }

                }

            }
        }

        private void BindDoMainList()
        {
            string strWhere = " ";
            BasicInfoRightBLL BasicInfoRightbll = new BasicInfoRightBLL();
            BasicInfoClassBLL BasicInfoClassbll = new BasicInfoClassBLL();
            DataSet ds = BasicInfoClassbll.GetList(strWhere);

            int UserID = -1;
            if (!int.TryParse(Request["UserID"], out UserID))
            {
                Response.Write("<script language='javascript'>alert('参数格式错误!');</script>");
                return;
            }
            DataSet dsRightByRole = BasicInfoRightbll.GetList(" UserID=" + UserID.ToString());

            BindSelectedTree(ds, dsRightByRole, null, 0);
            trvwRight.ExpandDepth = 1;
        }

        /// <summary>
        /// 创建修改时的权限树
        /// </summary>
        /// <param name="ds">所有权限</param>
后面还有 98 行代码,购买后查看完整代码

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

AI 解读

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

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