Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (User_InfoL.IsTeam(LoginInfo.UserIdentity))
            {
                Response.Redirect("userInfoEdit_team.aspx");
            }

            userID = LoginInfo.UserID;
            string hid = Req.GetForm("hid");

            if (hid == "1")
            {
                string cmd = Req.GetForm("cmd");
                switch (cmd)
                {
                case "edit":
                    EditInfo();
                    break;
                }
                Response.Write(msgAjax.ReturnMessage);
                Response.End();
            }

            if (!this.IsPostBack)
            {
                LL();
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            furl = "login.aspx?furl=" + Request.Url.ToString();
            if (LoginInfo.IsLogin())
            {
                Response.Redirect(furl);
                return;
            }

            ids            = Fn.IsIntArr(uq.GetQueryString(0));
            type           = Fn.IsInt(uq.GetQueryString(1), 0);
            num            = Fn.IsDouble(uq.GetQueryString(2), 0d);
            buyType        = Fn.IsInt(uq.GetQueryString(3), 0);
            userIdentifier = LoginInfo.UserIdentity;

            if (User_InfoL.IsPersonal(userIdentifier)) //个人用户身份登录
            {
                if (buyType == 1)                      //订购企业产品
                {
                    Response.Redirect("proAddCart1.aspx?msg=个人用户不能订购企业区产品!");
                    return;
                }
            }
            else if (User_InfoL.IsTeam(userIdentifier)) //企业用户身份登录
            {
                if (buyType == 0)                       //订购个人用户产品
                {
                    Response.Redirect("proAddCart1.aspx?msg=企业用户不能在此订购产品!<a href=\"/pro/team/\" target=\"_top\">点击进入企业专区</a>");
                    return;
                }
            }

            if (ids.Length == 0)
            {
                Response.Write("非法操作");
                return;
            }

            if (!this.IsPostBack)
            {
                LL();
            }
        }