Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //验证登录
            Guid?userId = WebUserAuth.UserId;

            if (userId == null || userId == Guid.Empty)
            {
                HttpContext.Current.Response.Write("对不起,您没有权限查看此合同。");
                HttpContext.Current.Response.End();
            }

            if (Request["key"] != null)
            {
                this.key = Request.QueryString["key"];
            }
            projectbll = new ProjectBLL();
            userbll    = new UserBLL();
            this.type  = WEBRequest.GetInt("type", 1);
            if (!this.IsPostBack)
            {
                if (!string.IsNullOrEmpty(this.key))
                {
                    this.GetContractInfo(this.key);
                }
                else
                {
                    Response.Redirect("/");
                }
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("//m.tuandai.com/pages/downOpenApp.aspx", true);
            return;

            projectId = WEBRequest.GetGuid("id");
            var type = WEBRequest.GetString("type");

            this.TypeId    = WEBRequest.GetInt("typeId", 0);
            this.IsPreSell = WEBRequest.GetInt("IsPreSell", 0) == 1;

            if (type == "mobileapp")
            {
                IsApp          = true;
                IsShowRightBar = false;
            }
            if (!IsPostBack)
            {
                bll = new WeProductBLL();
                if (this.projectId != null && this.projectId != Guid.Empty)
                {
                    if (!this.GetData())
                    {
                        return;
                    }
                }
                else
                {
                    Response.Redirect(GlobalUtils.MTuanDaiURL + "/pages/invest/WE/WE_list.aspx");
                }
            }
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //验证登录
            if (!WebUserAuth.IsAuthenticated)
            {
                HttpContext.Current.Response.Write("对不起,您没有权限查看此合同。");
                HttpContext.Current.Response.End();
            }


            if (Request["key"] != null)
            {
                this.key = Request.QueryString["key"];
            }
            this.type = WEBRequest.GetInt("type", 1);
            if (!this.IsPostBack)
            {
                if (!string.IsNullOrEmpty(this.key))
                {
                    this.GetContractInfo(this.key);
                }
                else
                {
                    Response.Redirect("/");
                }
            }
        }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            NewsId = WEBRequest.GetInt("id", 0);
            if (NewsId.ToText().IsEmpty())
            {
                Response.Redirect("/pages/news/noticelist.aspx");
                return;
            }

            if (!IsPostBack)
            {
                if (!GetData(NewsId))
                {
                }
            }
        }
Example #5
0
        protected string IsPreView1218 = "0";//可预览1218配置

        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("//m.tuandai.com/pages/downOpenApp.aspx", true);
            return;

            projectId = WEBRequest.GetGuid("id");
            var activityUrl = WEBRequest.GetString("Anniversary4");
            var type        = WEBRequest.GetString("type");

            this.TypeId    = WEBRequest.GetInt("typeId", 0);
            this.IsPreSell = WEBRequest.GetInt("IsPreSell", 0) == 1;

            if (type == "mobileapp")
            {
                IsApp          = true;
                IsShowRightBar = false;
            }
            if (!string.IsNullOrEmpty(activityUrl))
            {
                CookieHelper.WriteCookie("Anniversary4", activityUrl);
                //HttpContext.Current.Response.SetCookie(new HttpCookie("Anniversary4", activityUrl));//写入活动传过来的url
            }

            if (!IsPostBack)
            {
                bll = new WeProductBLL();
                if (this.projectId != null && this.projectId != Guid.Empty)
                {
                    if (!this.GetData())
                    {
                        return;
                    }
                }
                else
                {
                    Response.Redirect(GlobalUtils.MTuanDaiURL + "/pages/invest/WE/WE_list.aspx");
                }
            }
        }