Пример #1
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");
                }
            }
        }
Пример #2
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();
            }
        }
Пример #3
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);
                    }
                }
            }
        }
Пример #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     TypeId = WEBRequest.GetQueryInt("typeid", 0);
     if (!IsPostBack)
     {
         BinderData();
     }
 }
Пример #5
0
        protected void UpdateHelpTopStepNum()
        {
            int    reqId    = WEBRequest.GetQueryInt("id", 0);
            string feedback = WEBRequest.GetQueryString("feedtype");

            WXHelpService.UpdateHelpTopStepNum(reqId, feedback);

            var jsonObj    = new { result = "1", msg = "" };
            var jsonString = TuanDai.WXSystem.Core.JsonHelper.ToJson(jsonObj);

            this.Context.Response.Write(jsonString);
            this.Context.Response.End();
        }
Пример #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            NewsId = WEBRequest.GetQueryInt("id", 0);
            string action = WEBRequest.GetQueryString("action");

            if (action == "feedback")
            {
                UpdateHelpTopStepNum();
            }
            else
            {
                if (!IsPostBack)
                {
                    BinderData();
                }
            }
        }
Пример #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            InfoType = WEBRequest.GetQueryInt("type", 1);
            NewsId   = WEBRequest.GetQueryString("id");
            if (NewsId.ToText().IsEmpty())
            {
                Response.Redirect("/pages/news/newslist.aspx");
                return;
            }

            if (!IsPostBack)
            {
                if (!GetData())
                {
                    Response.Redirect("/pages/news/newslist.aspx");
                    return;
                }
            }
        }