Example #1
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 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CookieHelper.WriteCookie("WXLoginType", "3");

                #region 获取返回路径
                string returnurl = GlobalUtils.WebURL + "/Member/my_account.aspx";

                if (!string.IsNullOrEmpty(WEBRequest.GetString("ReturnUrl")))
                {
                    returnurl = WEBRequest.GetString("ReturnUrl");//团贷网返回路径
                    if (string.IsNullOrEmpty(returnurl))
                    {
                        returnurl = GlobalUtils.WebURL + "/Member/my_account.aspx";
                    }
                }
                #endregion

                string        CallbackUrl = GlobalUtils.WebURL + ConfigHelper.getConfigString("CallbackUrl") + "?ReturnUrl=" + returnurl;
                ThirdLoginSDK shareSdk    = new ThirdLoginSDK();
                shareSdk.InitSDK(ThirdLoginSDK.ThirdLoginType.WeiXin);
                //获取微信授权时URL
                string requestUrl = shareSdk.GetCodeUrl(CallbackUrl);

                Response.Redirect(requestUrl);
            }
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.ContentType = "text/plain";
            string code       = WEBRequest.GetQueryString("code");
            string requestUrl = WEBRequest.GetQueryString("url");

            WeiXinApi jssdk = new WeiXinApi();

            jssdk.InitApi();
            jssdk.WXCode     = code;
            jssdk.RequestURL = requestUrl;
            System.Collections.Hashtable hs = jssdk.getSignPackage();
            WeiXinSignInfo signInfo         = new WeiXinSignInfo();

            signInfo.appid     = hs["appId"].ToString();
            signInfo.nonceStr  = hs["nonceStr"].ToString();
            signInfo.timeStamp = hs["timestamp"].ToInt(0);
            signInfo.signature = hs["signature"].ToString();
            string callBackFunc = WEBRequest.GetQueryString("callback");

            if (callBackFunc.IsNotEmpty())
            {
                string jsonStr = callBackFunc + "(" + JsonHelper.ToJson(signInfo) + ");";
                Response.Write(jsonStr);
            }
            else
            {
                string jsonStr = JsonHelper.ToJson(signInfo);
                Response.Write(jsonStr);
            }
            Response.End();
        }
Example #4
0
        /// <summary>
        /// 获取参数者列表
        /// </summary>

        public void GetParticpantsList()
        {
            string keyword        = WEBRequest.GetFormString("keyword");
            int    pageIndex      = string.IsNullOrEmpty(WEBRequest.GetFormString("pageIndex")) == true ? 1 : int.Parse(WEBRequest.GetFormString("pageIndex"));
            var    beginRowNumber = (pageIndex - 1) * 20 + 1;
            var    endRowNumber   = pageIndex * 20;

            const string querySql = @"select @Total=count(1) from [dbo].[20150901_MountaineeringPhotos] where Name like '%'+@keyword+'%' or OrderNo like '%'+@keyword+'%';
            with t1 as( select ROW_NUMBER() over(order by t.OrderNo asc) as RowNumber,[Id] ParticipantId,OrderNo,[Name],[ThumbnailsUrl],[BigImageUrl],Records
            from [dbo].[20150901_MountaineeringPhotos] t where t.Name like '%'+@keyword+'%' or t.OrderNo like '%'+@keyword+'%')
            select * from t1 where t1.RowNumber between @beginRow and @endRow";

            DynamicParameters parameters = new DynamicParameters();

            parameters.Add("@Total", ParameterDirection.Output);
            parameters.Add("@beginRow", beginRowNumber);
            parameters.Add("@endRow", endRowNumber);
            parameters.Add("@keyword", keyword);

            var dataList = QueryList <OrderListViewMode>(querySql, parameters);

            if (dataList.Any())
            {
                var responseObj = new { Success = true, Message = "", list = dataList, pagecount = dataList.Count };
                PrintJson(responseObj);
            }
            else
            {
                var responseObj = new { Success = false, Message = "没有找到数据!" };
                PrintJson(responseObj);
            }
        }
Example #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            userId = WebUserAuth.UserId.Value;
            if (!IsPostBack)
            {
                UserBLL userBll = new UserBLL();
                userModel = userBll.GetUserBasicInfoModelById(userId);

                DrawType = WEBRequest.GetQueryInt("drawtype", 2);
                if (DrawType != 1 && DrawType != 2)
                {
                    DrawType = 2;
                }
                string            strSQL   = "select Id, ActualWithdrawDeposit, merchanType from AppWithdrewFund where UserId=@userId  order by AppDate desc";
                DynamicParameters dyParams = new DynamicParameters();
                dyParams.Add("@userId", userId);

                WXAppWithdrewFund appWith = PublicConn.QuerySingleWrite <WXAppWithdrewFund>(strSQL, ref dyParams);
                if (appWith != null)
                {
                    Amout = appWith.ActualWithdrawDeposit ?? 0;
                    if (DrawType == 1)
                    {
                        strSQL   = " update AppWithdrewFund set merchanType=9 where Id=@id";
                        dyParams = new DynamicParameters();
                        dyParams.Add("@id", appWith.Id);
                        PublicConn.ExecuteTD(PublicConn.DBWriteType.FundWrite, strSQL, ref dyParams);
                    }
                }
            }
        }
Example #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string action = WEBRequest.GetQueryString("action");

            if (action == "")
            {
                code      = WEBRequest.GetQueryString("code");
                ExtendKey = WEBRequest.GetQueryString("ExtendKey");
                if (!IsPostBack)
                {
                    this.InitPageData();
                    //前台不允许图像为空
                    if (GodHeadImage.IsEmpty())
                    {
                        GodHeadImage = "images/imgdone.jpg";
                    }
                    if (GodShowName.ToText().IsEmpty())
                    {
                        GodShowName = "团贷网";
                    }
                }
            }
            else if (action == "DoMakeWealthGod")
            {
                DoMakeWealthGod();
            }
            else if (action == "GetGodSendRedPacket")
            {
                GetGodSendRedPacket();
            }
        }
Example #7
0
        public string AuthenticationIDAndName(string IDCard, string RealName)
        {
            string postUrl    = "http://op.juhe.cn/idcard/query";
            string nameEncode = HttpUtility.UrlEncode(RealName, Encoding.UTF8);

            //IDictionary<string, string> param = new Dictionary<string, string>();
            //param.Add("key", appkey);
            //param.Add("idcard", IDCard);
            //param.Add("realname", nameEncode);
            //string resultjson = WEBRequest.sendPost(postUrl, param, "post");

            string jsonData = "key=" + appkey + "&idcard=" + IDCard + "&realname=" + RealName + "&sign=";

            byte[] postData   = Encoding.UTF8.GetBytes(jsonData);
            string resultjson = "[" + WEBRequest.Request(postData, postUrl) + "]";

            LogHelper.SaveLog(resultjson, "IDCardAuthen");
            ReturnMsg model = new JavaScriptSerializer().Deserialize <List <ReturnMsg> >(resultjson).FirstOrDefault();

            if (model.error_code == "0")
            {
                return("success");
            }
            else
            {
                string resultmsg = GetError_CodeMsg(model.error_code);
                LogHelper.SaveLog(resultmsg, "IDAuthentication");
                return(resultmsg);
            }
        }
Example #8
0
        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");

            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");
                }
            }
        }
Example #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string url = "//mvip.tdw.cn" + Request.RawUrl;

            Context.Response.Redirect(url);
            return;

            Guid pId = WEBRequest.GetGuid("Id");

            if (pId == Guid.Empty)
            {
                Response.Redirect("productList.aspx");
            }

            //根据prodectid获取商品详情
            this.VipProduct   = MVipProductBLL.GetVipProductDetail(pId);
            CurrSkuPriceValue = VipProduct.ProductValues.Where(en => VipProduct.SkuId == en.SkuId).FirstOrDefault().PriceValue;
            if (this.VipProduct.ProductValues != null && this.VipProduct.ProductValues.Any())
            {
                var attrs  = this.VipProduct.ProductValues.GroupBy(g => new { AttributeId = g.AttributeId, AttributeName = g.AttributeName });
                var DefSKU = this.VipProduct.ProductValues.Where(a => a.SkuId == this.VipProduct.SkuId).GroupBy(b => b.ValueId).Select(c => c.Key).ToList();
                foreach (var attr in attrs)
                {
                    if (attr.Key.AttributeId != null && attr.Key.AttributeId != Guid.Empty)
                    {
                        //添加属性值
                        var key    = new KeyValuePair <Guid, string>(attr.Key.AttributeId, attr.Key.AttributeName);
                        var values = this.VipProduct.ProductValues.Where(a => a.AttributeId == attr.Key.AttributeId).GroupBy(b => new
                        {
                            ValueId  = b.ValueId,
                            ValueStr = b.ValueStr
                        }).Select(en => new AttrValues
                        {
                            ValueId   = en.Key.ValueId,
                            ValueStr  = en.Key.ValueStr,
                            IsDefault = false//DefSKU.Contains(en.Key.ValueId)
                        }).ToList();
                        if (values.Count > 0)
                        {
                            Attrs.Add(key, values);
                        }
                    }
                    AttributesJson = JsonConvert.SerializeObject(this.VipProduct.ProductValues);
                }
            }

            if (VipProduct.SubType == 22 && VipProduct.Type == 1)
            {
                GetIsExchangeHF(pId.ToString());
            }
            else if (VipProduct.SubType == 25 && VipProduct.Type == 1)
            {
                GetIsExchangeFlow();
            }

            //获取特价商品详情
            GetScareBuyingProduct(pId.ToString());

            GetLimitNum();
        }
Example #10
0
        protected string EnterpriseName           = ""; //担保机构
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("/Member/Repayment/my_return_list.aspx?typeTab=Disperse&tab=CompletedAndFlow", true);
            this.projectId = WEBRequest.GetGuid("projectid");
            if (!IsPostBack)
            {
                bll = new ProjectBLL();
                if (this.projectId != Guid.Empty)
                {
                    if (!this.GetData())
                    {
                        return;
                    }


                    GetSMBProjectModel();
                    if (smbProjectEntity == null)
                    {
                        Response.Redirect(GlobalUtils.WebURL + "/Member/my_account.aspx");
                    }
                }
                else
                {
                    Response.Redirect(GlobalUtils.WebURL + "/Member/my_account.aspx");
                }
            }
        }
Example #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ApplyType = WEBRequest.GetQueryInt("applytype", 0);
            switch (ApplyType)
            {
            case 1:
                ApplyTypeName = "公务员方案";
                break;

            case 2:
                ApplyTypeName = "公积金方案";
                break;

            case 3:
                ApplyTypeName = "精英方案";
                break;

            case 4:
                ApplyTypeName = "保单方案";
                break;
            }
            if (!IsPostBack)
            {
                GetProvinceList();
            }
        }
Example #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     WebUserAuth.SignOut();
     //移除OpenId allen 2015-07-30
     GlobalUtils.ClearOpenIdFromCookie();
     this.ReturnUrl = WEBRequest.GetString("ReturnUrl", "/Index.aspx");
 }
Example #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string jsonStr = WEBRequest.GetFormString("jsondata");

            FormPostData formObj = JsonHelper.ToObject <FormPostData>(jsonStr);

            if (formObj == null)
            {
                Response.Redirect("drawmoney.aspx");
                return;
            }
            withDrawMoney = formObj.Amount;
            couponAmount  = formObj.CouponAmount;
            drawType      = formObj.DrawType;
            if (drawType != 1 && drawType != 2)
            {
                drawType = 2;
            }

            UserBLL userbll = new UserBLL();
            Guid    userId  = WebUserAuth.UserId.Value;

            currentMoeny = userbll.GetDrawAviAmount(userId);
            //CalcWithDrawMoney(userbll, userId, drawType);
        }
Example #14
0
        protected bool IsAct1248 = false;    //是否1218后显示
        protected void Page_Load(object sender, EventArgs e)
        {
            StatusTab = WEBRequest.GetQueryString("tab");
            if (StatusTab == "")
            {
                StatusTab = "Inprogress";
            }

            TypeTab = WEBRequest.GetQueryString("typeTab");
            if (TypeTab == "")
            {
                TypeTab = "WePlan";
            }

            OrderTab = WEBRequest.GetQueryString("orderTab");
            if (OrderTab == "")
            {
                OrderTab = "1";
            }

            WebSettingBLL webSettingBll = new WebSettingBLL();

            curSellSet = webSettingBll.GetWebSettingInfo("B11558CB-3C6B-4DAD-9D2F-D6D2DE13CCF7");

            if (DateTime.Now >= DateTime.Parse(curSellSet.Param1Value) && DateTime.Now <= DateTime.Parse("2016-12-25 23:59:59"))
            {
                IsAct1248 = true;
            }
        }
Example #15
0
        //protected string theBackUrl = TuanDai.WXApiWeb.GlobalUtils.IsWeiXinBrowser ? "/WeiXinIndex.aspx" : "/Index.aspx";

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

            //if (GoBackUrl.ToText() != "")
            //    theBackUrl = GoBackUrl;
            string appActivityToken = Tool.WEBRequest.GetString("t");

            if (appActivityToken.IsNotEmpty())
            {
                pageType = "18";
            }
            else
            {
                pageType = WEBRequest.GetQueryString("type");
            }

            if (!IsPostBack)
            {
                this.IsShowRightBar = GlobalUtils.IsWeiXinBrowser ? false : true;
                ProjectBLL bll = new ProjectBLL();
                //if (bll.WXGetCanInvestProjectCount() == 0)
                //{
                //    Response.Redirect("/pages/invest/invest_list_empty.aspx");
                //    return;
                //}
                //从App跳转过来这里不用加载数据
                if (pageType.IsEmpty())
                {
                    GetProjectList(bll);
                }
            }
        }
Example #16
0
        private void GetRequestToken()
        {
            CookieHelper.WriteCookie("WXLoginType", "1");

            #region 获取返回路径
            string returnurl = GlobalUtils.WebURL + "/Member/my_account.aspx";

            if (!string.IsNullOrEmpty(WEBRequest.GetString("ReturnUrl")))
            {
                returnurl = WEBRequest.GetString("ReturnUrl");
                if (string.IsNullOrEmpty(returnurl))
                {
                    returnurl = GlobalUtils.WebURL + "/Member/my_account.aspx";
                }
            }
            #endregion

            string        CallbackUrl = "ReturnUrl=" + returnurl;
            ThirdLoginSDK shareSdk    = new ThirdLoginSDK();
            shareSdk.InitSDK(ThirdLoginSDK.ThirdLoginType.QQ);
            //获取微信授权时URL
            string requestUrl = shareSdk.GetCodeUrl(CallbackUrl);

            Response.Redirect(requestUrl);
        }
Example #17
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 #18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     IsWeNewHand = WEBRequest.GetString("isWeNewHand", "0") == "1";
     IsWeFQB     = WEBRequest.GetString("isWeFQB", "0") == "1";
     if (IsWeFQB || IsWeNewHand)
     {
         Guid?        productId = Tool.SafeConvert.ToGuid(WEBRequest.GetQueryString("productid"));
         WeProductBLL bll       = new WeProductBLL();
         //model = bll.GetWeProductInfo(productId.Value);
         if (GlobalUtils.IsRedis && GlobalUtils.IsWePlanRedis)
         {
             string err         = string.Empty;
             var    weRedisInfo = TuanDai.RedisApi.Client.WePlanRedis.GetWePlanRedisByProductIdJson(productId.Value,
                                                                                                    out err, TdConfig.ApplicationName);
             if (weRedisInfo != null)
             {
                 model = JsonConvert.DeserializeObject <WeProductDetailInfo>(weRedisInfo);
             }
             if (model == null || !string.IsNullOrEmpty(err))
             {
                 model = new WeProductBLL().GetWeProductInfo(productId.Value);
             }
         }
         else
         {
             model = new WeProductBLL().GetWeProductInfo(productId.Value);
         }
         if (model == null)
         {
             model = new WeProductDetailInfo();
         }
     }
 }
Example #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SortedList table  = Cgt_WebPost.Param(Request.InputStream);
            var        Result = 0;

            if (table == null)
            {
                return;
            }
            operType = table["serviceName"].ToString();
            switch (table["serviceName"].ToString())
            {
            case "USER_AUTHORIZATION":
            {
                USER_AUTHORIZATION_Response dataJson = null;
                string ErrorMessage = "";
                Result = UserClient.USER_AUTHORIZATION_Res(table, ref dataJson, ref ErrorMessage);
                break;
            }

            default:
                break;
            }

            this.returnUrl   = WEBRequest.GetString("ReturnUrl");
            this.extenderkey = WEBRequest.GetString("extendkey");
            if (this.returnUrl.IsNotEmpty())
            {
                string isEncry = WEBRequest.GetString("isencry");
                if (isEncry == "1")
                {
                    this.returnUrl = BasePage.GetDecodeBackUrl(this.returnUrl);
                }
            }
            if (!IsPostBack)
            {
                string IsSaveData = WEBRequest.GetString("issave");
                this.IsShowRightBar = false;

                if (IsSaveData.ToText() == "1")
                {
                    //记录帐户
                    string openId = WEBRequest.GetString("openid");
                    GlobalUtils.WriteOpenIdToCookie(openId);
                }
                //从微信菜单中点击“登录注册”后判断 Allen 2015-06-30
                if (WEBRequest.GetString("ischecklogin") == "1")
                {
                    bool isLogin = WebUserAuth.IsAuthenticated;
                    if (isLogin)
                    {
                        Response.Redirect("/Member/my_account.aspx");
                    }
                    else
                    {
                        this.returnUrl = "/Member/my_account.aspx";
                    }
                }
            }
        }
Example #20
0
        protected void submitData()
        {
            Response.ContentType = "application/json";
            try
            {
                var result = new ProcessResult()
                {
                    Success = true
                };
                string area        = WEBRequest.GetFormString("Area");
                string currentCity = WEBRequest.GetFormString("Current");
                string userName    = WEBRequest.GetFormString("UserName");
                string email       = WEBRequest.GetFormString("Email");
                string mobile      = WEBRequest.GetFormString("Mobile");

                result = this.Register(area, currentCity, userName, mobile, email);
                var sessionId = result.GetParameter <string>("SessionId");
                PrintJson(new { Success = result.Success, Message = result.Message, SessionId = sessionId });
            }
            catch (Exception ex)
            {
                BusinessDll.NetLog.WriteLoginHandler("粉丝见面会预约报错", Tool.ExceptionHelper.GetExceptionMessage(ex), "触屏版");
                PrintJson(new { Success = false, Message = "保存失败,请重试!" });
            }
            finally
            {
                Response.End();
            }
        }
Example #21
0
        public void AddGPMargin()
        {
            Guid    projectId = WEBRequest.GetFormGuid("ProjectId");
            decimal amount    = Decimal.Parse(WEBRequest.GetFormString("Amount"));
            string  payPwd    = WEBRequest.GetFormString("PayPwd");
            Guid    userId    = WebUserAuth.UserId.Value;

            if (userId == null)
            {
                this.PrintJson("-3", "对不起,您还未登录!");
                return;
            }
            ProjectBLL bll       = new ProjectBLL();
            string     strResult = bll.WXGPAddMargin(userId, projectId, payPwd, amount);

            if (strResult.ToText() == "")
            {
                this.PrintJson("1", "补仓成功!");
                return;
            }
            else
            {
                this.PrintJson("0", strResult);
            }
        }
Example #22
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 #23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            StarNum = WEBRequest.GetFormInt("jsondata", 0);
            if (WEBRequest.GetFormString("jsondata") == "")
            {
                StarNum = WEBRequest.GetQueryInt("StarNum", 0);
            }
            returnUrl = "/Activity/HighSpeedGame/LotteryDraw.aspx?StarNum=" + StarNum;
            if (!IsPostBack)
            {
                WeiXinApi jssdk = new WeiXinApi();
                jssdk.InitApi();
                System.Collections.Hashtable hs = jssdk.getSignPackage();
                AppId     = hs["appId"].ToString();
                NonceStr  = hs["nonceStr"].ToString();
                TimeStamp = hs["timestamp"].ToInt(0);
                Signature = hs["signature"].ToString();

                Guid?userId = WebUserAuth.UserId;
                if (userId != null && userId.Value != Guid.Empty)
                {
                    IsLogin = true;
                }
                //判断答题星星数是否正确
                if (StarNum < 1 || StarNum > 3)
                {
                    Response.Redirect("/Activity/HighSpeedGame/GameIndex.aspx");
                }
            }
        }
Example #24
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("//passport.tuandai.com/2register?tdfrom=wap", false);
            return;

            if (!IsPostBack)
            {
                this.extenderkey = WEBRequest.GetString("extendkey").ToText().Trim();
                this.returnUrl   = WEBRequest.GetString("ReturnUrl");
                string IsSaveData = WEBRequest.GetString("issave");
                tdFrom = WEBRequest.GetString("tdfrom").ToText();
                if (this.returnUrl.IsNotEmpty())
                {
                    string isEncry = WEBRequest.GetString("isencry");
                    if (isEncry == "1")
                    {
                        this.returnUrl = BasePage.GetDecodeBackUrl(this.returnUrl);
                    }
                }

                if (string.IsNullOrWhiteSpace(tdFrom))
                {
                    tdFrom = WEBRequest.GetString("from").ToText();
                }
                if (IsSaveData.ToText() == "1")
                {
                    //记录帐户
                    openId = WEBRequest.GetString("openid");
                    GlobalUtils.WriteOpenIdToCookie(WEBRequest.GetString("openid"));
                }
            }
        }
Example #25
0
 protected void Page_Load(object sender, EventArgs e)
 {
     strAction = WEBRequest.GetQueryString("action");
     if (strAction == "")
     {
         if (!IsPostBack)
         {
             Guid?userId = WebUserAuth.UserId;
             if (userId != Guid.Empty)
             {
                 TuanDai.PortalSystem.BLL.UserBLL             userbll  = new PortalSystem.BLL.UserBLL();
                 TuanDai.PortalSystem.Model.UserBasicInfoInfo userInfo = userbll.GetUserBasicInfoModelById(userId.Value);
                 if (userInfo != null)
                 {
                     NickName = userInfo.NickName;
                 }
                 GetData(userId);
             }
         }
     }
     else if (strAction == "GetFinanceDraw")
     {
         GetFinanceDraw();
     }
 }
Example #26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     strAction = WEBRequest.GetQueryString("action");
     if (strAction.ToLower() == "register")
     {
         submitData();
     }
 }
Example #27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CurTabName = WEBRequest.GetQueryString("tab");
     if (string.IsNullOrEmpty(CurTabName))
     {
         CurTabName = "Traning";
     }
 }
Example #28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     TransferId = WEBRequest.GetGuid("Id");
     if (!IsPostBack)
     {
         LoadData();
     }
 }
Example #29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CurrTab = WEBRequest.GetQueryString("tab");
     if (CurrTab == "")
     {
         CurrTab = "Inprogress";
     }
 }
Example #30
0
 protected void Page_Load(object sender, EventArgs e)
 {
     TypeId = WEBRequest.GetQueryInt("typeid", 0);
     if (!IsPostBack)
     {
         BinderData();
     }
 }