Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 73))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 108))
            {
                sqAc = false;
            }
            //启用禁用
            //if (!rrService.IsPermission(Rid, 156))
            //{
            //    statusAc = false;
            //}
            //-----------权限控制结束-----------

            BindData();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 44))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //修改权限
            if (!rrService.IsPermission(Rid, 124))
            {
                mdfAc = false;
            }
            //查找权限
            if (!rrService.IsPermission(Rid, 125))
            {
                searchAc = false;
            }
            //-----------权限控制结束-----------

            //代理初始化
            Model.Agent agent = BLL.AgentManager.GetAgentByPK(agentUserID);
            UserName = agentUserName;
            RoleId   = (agentRoleID + 1).ToString();
            ID       = agentUserID.ToString();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 57))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 104))
            {
                addAc = false;
            }
            //修改权限
            if (!rrService.IsPermission(Rid, 105))
            {
                mdfAc = false;
            }
            //-----------权限控制结束-----------

            if (!IsPostBack)
            {
                string ConfigId = Request.QueryString["rid"];
                //configId.Value = ConfigId;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 56))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //查找权限
            if (!rrService.IsPermission(Rid, 146))
            {
                searchAc = false;
            }
            //导出Excel权限
            if (!rrService.IsPermission(Rid, 147))
            {
                excelAc = false;
            }
            //-----------权限控制结束-----------
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 60))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 160))
            {
                addAc = false;
            }
            //修改权限
            if (!rrService.IsPermission(Rid, 161))
            {
                upAc = false;
            }
            //删除权限
            if (!rrService.IsPermission(Rid, 162))
            {
                deleteAc = false;
            }
        }
Beispiel #6
0
        protected bool mdfAc  = true;  //修改

        protected void Page_Load(object sender, EventArgs e)
        {
            ip = Request.ServerVariables["Remote_Addr"];
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 14))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 77))
            {
                addAc = false;
            }
            //修改
            if (!rrService.IsPermission(Rid, 78))
            {
                mdfAc = false;
            }
        }
Beispiel #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 212))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //修改权限
            if (!rrService.IsPermission(Rid, 213))
            {
                mdfAc = false;
            }

            //修改密码
            if (!rrService.IsPermission(Rid, 214))
            {
                passwordAc = false;
            }
            //-----------权限控制结束-----------
        }
Beispiel #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 180))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 120))
            {
                addAc = false;
            }
            //修改权限
            if (!rrService.IsPermission(Rid, 121))
            {
                mdfAc = false;
            }
            //查找权限
            if (!rrService.IsPermission(Rid, 122))
            {
                searchAc = false;
            }

            //修改密码
            if (!rrService.IsPermission(Rid, 123))
            {
                passwordAc = false;
            }
            //-----------权限控制结束-----------

            //代理初始化
            Model.Agent agent = BLL.AgentManager.GetAgentByPK(agentUserID);
            Credit      = agent.Credit.ToString();
            UserCredit  = agent.UserCredit.ToString();
            ResetCredit = agent.ResetCredit;
            UserName    = agentUserName;
            RoleId      = (agentRoleID + 1).ToString();
            Percent     = (agent.Percent * 100).ToString();
            CommissionA = (agent.CommissionA * 100).ToString("0");
            CommissionB = (agent.CommissionB * 100).ToString("0");
            CommissionC = (agent.CommissionC * 100).ToString("0");
            ID          = agentUserID.ToString();
            ItemMin     = agent.ItemMin.ToString();
            ItemMax     = agent.ItemMax.ToString();
            ItemsMax    = agent.ItemsMax.ToString();
            Currency    = agent.Currency;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();
            //查看权限
            if (!rrService.IsPermission(Rid, 63))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            roleId     = page.agentRoleID;
            username   = page.agentUserName;
            upUsername = (page.upUsername == "" ? "#" : page.upUsername);

            //if (roleId == 2)
            //{
            //    Response.Redirect("SubCompanyWinAndLose.aspx");
            //}
            //if (roleId == 3)
            //{
            //    Response.Redirect("PartnerWinAndLose.aspx");
            //}
            //if (roleId == 4)
            //{
            //    Response.Redirect("ZAgentWinAndLose.aspx");
            //}
            //if (roleId == 5)
            //{
            //    Response.Redirect("AgentWinAndLose.aspx");
            //}
        }
        protected bool viewAc = true;  //查看
        //protected bool shAc = true;   //审核
        //protected bool historyAc = true;   //查看历史记录
        protected void Page_Load(object sender, EventArgs e)
        {
            ip = Request.ServerVariables["Remote_Addr"];
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 176))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            ////审核权限
            //if (!rrService.IsPermission(Rid, 85))
            //{
            //    shAc = false;
            //}
            ////删除权限
            //if (!rrService.IsPermission(Rid, 89))
            //{
            //    historyAc = false;
            //}
            //-----------权限控制结束-----------
        }
Beispiel #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();
            //查看权限
            if (!rrService.IsPermission(Rid, 59))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            roleId = page.agentRoleID;
            if (roleId == 2)
            {
                Response.Redirect("MatchSubCompanyResult.aspx");
            }
            if (roleId == 3)
            {
                Response.Redirect("MatchPartnerResult.aspx");
            }
            if (roleId == 4)
            {
                Response.Redirect("MatchZAgentResult.aspx");
            }
            if (roleId == 5)
            {
                Response.Redirect("MatchAgentResult.aspx");
            }
        }
Beispiel #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 33))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 111))
            {
                clearingAc = false;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 47))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //修改权限
            if (!rrService.IsPermission(Rid, 130))
            {
                mdfAc = false;
            }
            //查找权限
            if (!rrService.IsPermission(Rid, 131))
            {
                searchAc = false;
            }
            //-----------权限控制结束-----------
            //代理初始化
            //BLL.AgentManager agentManager = new BLL.AgentManager();
            //string names = agentManager.getUserNames(agentUserName);
            //double nPercent = 0;
            //IList<Model.Agent> agents = agentManager.GetAgentByUserNames(names);
            //foreach (Model.Agent iagent in agents)
            //{
            //    nPercent += iagent.Percent;
            //}

            Model.Agent agent = BLL.AgentManager.GetAgentByPK(agentUserID);
            UserName = agentUserName;
            RoleId   = (agentRoleID + 1).ToString();
            Percent  = (agent.Percent * 100).ToString();
        }
        protected bool slt        = true; //查找


        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 17))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 91))
            {
                addAc = false;
            }
            //删除权限
            if (!rrService.IsPermission(Rid, 92))
            {
                deleteAc = false;
            }

            //详细
            if (!rrService.IsPermission(Rid, 93))
            {
                passwordAc = false;
            }

            //查找
            if (!rrService.IsPermission(Rid, 159))
            {
                slt = false;
            }
            //-----------权限控制结束-----------
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();
            //查看权限
            if (!rrService.IsPermission(Rid, 63))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            roleId = page.agentRoleID;
            user   = page.agentUserName;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 163))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //-----------权限控制结束-----------

            asu = "var userN='" + agentUserName + "';var userI=" + agentRoleID + ";userID=" + agentUserID + ";";
        }
Beispiel #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 20))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 95))
            {
                addAc = false;
            }
            //修改权限
            if (!rrService.IsPermission(Rid, 96))
            {
                mdfAc = false;
            }
            //删除权限
            if (!rrService.IsPermission(Rid, 97))
            {
                deleteAc = false;
            }

            //启用禁用
            if (!rrService.IsPermission(Rid, 99))
            {
                statusAc = false;
            }

            //修改密码
            if (!rrService.IsPermission(Rid, 98))
            {
                passwordAc = false;
            }
            //-----------权限控制结束-----------

            if (!IsPostBack)
            {
                string roleId = Request.QueryString["rid"];
                roleid.Value = roleId;
            }
        }
Beispiel #18
0
        protected bool viewAc = true;  //查看
        //protected bool addAc = true;   //新增
        //protected bool mdfAc = true;   //修改
        //protected bool deleteAc = true;  //删除
        //protected bool passwordAc = true;  //详细
        //protected bool fzAc = true;//复制新增
        //protected bool slt = true;//查找
        //protected string fzAcS = "";
        //protected string addAcS = "";
        //protected string deleteAcS = "";
        //protected string mdfAcS = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            ip = Request.ServerVariables["Remote_Addr"];
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 178))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            ////增加权限
            //if (!rrService.IsPermission(Rid, 85))
            //{
            //    addAc = false;
            //    addAcS = "var addAc = 1;";
            //}
            //else
            //{
            //    addAcS = "var addAc = 0;";
            //}

            ////删除权限
            //if (!rrService.IsPermission(Rid, 89))
            //{
            //    deleteAc = false;
            //    deleteAcS = "var deleteAc=1;";
            //}
            //else
            //{
            //    deleteAcS = "var deleteAc=0;";
            //}

            ////详细
            //if (!rrService.IsPermission(Rid, 90))
            //{
            //    passwordAc = false;
            //}

            ////修改
            //if (!rrService.IsPermission(Rid, 86))
            //{
            //    mdfAc = false;
            //    mdfAcS = "var mdfAc=1;";
            //}
            //else
            //{
            //    mdfAcS = "var mdfAc=0;";
            //}

            ////查找
            //if (!rrService.IsPermission(Rid, 88))
            //{
            //    slt = false;
            //}

            ////复制新增
            //if (!rrService.IsPermission(Rid, 87))
            //{
            //    fzAc = false;
            //    fzAcS = "var fzAc=1;";
            //}
            //else
            //{
            //    fzAcS = "var fzAc=0;";
            //}
            //-----------权限控制结束-----------
        }
Beispiel #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ip = Request.ServerVariables["Remote_Addr"];
            //-----------权限控制开始-----------
            //当前角色
            int Rid = CurrentManager.RoleId;

            BLL.Sys_role_rightManager rrService = new BLL.Sys_role_rightManager();

            //查看权限
            if (!rrService.IsPermission(Rid, 15))
            {
                viewAc = false;
                Response.Write("<script>alert('非法操作,请返回!');history.go(-1);</script>");
                Response.End();
            }
            //增加权限
            if (!rrService.IsPermission(Rid, 79))
            {
                addAc  = false;
                addAcS = "var addAc = 1;";
            }
            else
            {
                addAcS = "var addAc = 0;";
            }

            //删除权限
            if (!rrService.IsPermission(Rid, 81))
            {
                deleteAc  = false;
                deleteAcS = "var deleteAc=1;";
            }
            else
            {
                deleteAcS = "var deleteAc=0;";
            }

            //详细
            if (!rrService.IsPermission(Rid, 84))
            {
                passwordAc = false;
            }

            //修改
            if (!rrService.IsPermission(Rid, 80))
            {
                mdfAc  = false;
                mdfAcS = "var mdfAc=1;";
            }
            else
            {
                mdfAcS = "var mdfAc=0;";
            }

            //查找
            if (!rrService.IsPermission(Rid, 83))
            {
                slt = false;
            }

            //复制新增
            if (!rrService.IsPermission(Rid, 82))
            {
                fzAc  = false;
                fzAcS = "var fzAc=1;";
            }
            else
            {
                fzAcS = "var fzAc=0;";
            }
            //-----------权限控制结束-----------
        }