示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Response.Expires      = 0;
        base.Response.CacheControl = "no-cache";
        IDictionary <string, object> dictionary = new Dictionary <string, object>();

        if (!base.IsUserLoginByMobileForAjax())
        {
            dictionary.Add("islogin", "0");
            base.OutJson(JsonHandle.ObjectToJson(dictionary));
        }
        else
        {
            dictionary.Add("islogin", "1");
            string   user     = HttpContext.Current.Session["user_name"].ToString();
            cz_users _users   = CallBLL.cz_users_bll.UserLogin(user);
            string   str2     = _users.get_kc_kind().Trim();
            decimal  num      = Convert.ToDecimal(_users.get_kc_credit());
            decimal  num2     = Convert.ToDecimal(_users.get_kc_usable_credit());
            decimal  num3     = Convert.ToDecimal(_users.get_six_credit());
            decimal  num4     = Convert.ToDecimal(_users.get_six_usable_credit());
            string   str3     = num3.ToString("F1");
            string   str4     = num4.ToString("F1");
            string   kCProfit = base.GetKCProfit();
            if (_users.get_kc_iscash().Equals(int.Parse("1")))
            {
                dictionary.Add("t_iscash", "1");
            }
            else
            {
                dictionary.Add("t_iscash", "0");
            }
            dictionary.Add("t_credit", num2.ToString("F1"));
            dictionary.Add("t_amt", double.Parse(kCProfit).ToString("F1"));
            if (_users.get_six_iscash().Equals(int.Parse("1")))
            {
                dictionary.Add("t_iscash_six", "1");
            }
            else
            {
                dictionary.Add("t_iscash_six", "0");
            }
            dictionary.Add("t_credit_six", str3);
            dictionary.Add("t_amt_six", str4);
            if (FileCacheHelper.get_RedisStatOnline().Equals(1))
            {
                base.CheckIsOut(user);
                base.stat_online_redis(user, _users.get_u_type());
            }
            else if (FileCacheHelper.get_RedisStatOnline().Equals(2))
            {
                base.CheckIsOutStack(user);
                base.stat_online_redisStack(user, _users.get_u_type());
            }
            else
            {
                MemberPageBase.stat_online(user, "hy");
            }
            base.OutJson(JsonHandle.ObjectToJson(dictionary));
        }
    }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Response.Expires = 0;
        base.IsUserLoginByMobile();
        this.lotteryTable = base.GetLotteryList();
        this.userName     = HttpContext.Current.Session["user_name"].ToString();
        cz_users _users = CallBLL.cz_users_bll.UserLogin(this.userName);

        this.kc_kind           = _users.get_kc_kind().Trim();
        this.kc_credit         = Convert.ToDecimal(_users.get_kc_credit());
        this.kc_usable_credit  = Convert.ToDecimal(_users.get_kc_usable_credit());
        this.kc_iscash         = _users.get_kc_iscash().ToString();
        this.six_kind          = _users.get_six_kind().Trim();
        this.six_credit        = Convert.ToDecimal(_users.get_six_credit());
        this.six_usable_credit = Convert.ToDecimal(_users.get_six_usable_credit());
        this.six_iscash        = _users.get_six_iscash().ToString();
        if (base.IsOpenBigLottery(2))
        {
            string str;
            if (base.IsOpenLottery(0))
            {
                str = "86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,128,129,130,131,132,133,134,135,136";
                this.kl10DataTable = CallBLL.cz_drawback_kl10_bll.GetDrawbackByPlayId(this.userName, str).Tables[0];
            }
            if (base.IsOpenLottery(1))
            {
                this.cqscDataTable = CallBLL.cz_drawback_cqsc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            if (base.IsOpenLottery(2))
            {
                this.pk10DataTable = CallBLL.cz_drawback_pk10_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(3))
            {
                this.xyncDataTable = CallBLL.cz_drawback_xync_bll.GetDrawbackList(this.userName, "86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,128,129,130,131,132,133,134,135,136").Tables[0];
            }
            if (base.IsOpenLottery(4))
            {
                this.jsk3DataTable = CallBLL.cz_drawback_jsk3_bll.GetDrawbackList(this.userName).Tables[0];
            }
            if (base.IsOpenLottery(5))
            {
                this.kl8DataTable = CallBLL.cz_drawback_kl8_bll.GetDrawbackList(this.userName).Tables[0];
            }
            if (base.IsOpenLottery(6))
            {
                this.k8scDataTable = CallBLL.cz_drawback_cqsc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            if (base.IsOpenLottery(7))
            {
                this.pcddDataTable = CallBLL.cz_drawback_pcdd_bll.GetDrawbackList(this.userName, "71009,71010,71011,71012").Tables[0];
            }
            if (base.IsOpenLottery(9))
            {
                this.xyft5DataTable = CallBLL.cz_drawback_xyft5_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(8))
            {
                this.pkbjlDataTable = CallBLL.cz_drawback_pkbjl_bll.GetDrawbackList(this.userName, "81001,81002,81003,81004").Tables[0];
            }
            if (base.IsOpenLottery(10))
            {
                this.jscarDataTable = CallBLL.cz_drawback_jscar_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(11))
            {
                this.speed5DataTable = CallBLL.cz_drawback_speed5_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            if (base.IsOpenLottery(12))
            {
                this.jspk10DataTable = CallBLL.cz_drawback_jspk10_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(13))
            {
                this.jscqscDataTable = CallBLL.cz_drawback_jscqsc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            if (base.IsOpenLottery(14))
            {
                str = "86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,128,129,130,131,132,133,134,135,136";
                this.jssfcDataTable = CallBLL.cz_drawback_jssfc_bll.GetDrawbackByPlayId(this.userName, str).Tables[0];
            }
            if (base.IsOpenLottery(15))
            {
                this.jsft2DataTable = CallBLL.cz_drawback_jsft2_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(0x10))
            {
                this.car168DataTable = CallBLL.cz_drawback_car168_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(0x11))
            {
                this.ssc168DataTable = CallBLL.cz_drawback_ssc168_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            if (base.IsOpenLottery(0x12))
            {
                this.vrcarDataTable = CallBLL.cz_drawback_vrcar_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(0x13))
            {
                this.vrsscDataTable = CallBLL.cz_drawback_vrssc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            if (base.IsOpenLottery(20))
            {
                this.xyftoaDataTable = CallBLL.cz_drawback_xyftoa_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(0x15))
            {
                this.xyftsgDataTable = CallBLL.cz_drawback_xyftsg_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            if (base.IsOpenLottery(0x16))
            {
                this.happycarDataTable = CallBLL.cz_drawback_happycar_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
        }
        if (base.IsOpenBigLottery(1))
        {
            if (!FileCacheHelper.get_IsShowLM_B())
            {
                this.sixDataTable = CallBLL.cz_drawback_six_bll.User_GetDrawBackList(this.userName, "91060,91061,91062,91063,91064,91065").Tables[0];
            }
            else
            {
                this.sixDataTable = CallBLL.cz_drawback_six_bll.GetDrawBackList(this.userName).Tables[0];
            }
        }
    }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str;

            this.lotteryID = base.q("id");
            this.userName  = HttpContext.Current.Session["user_name"].ToString();
            cz_users _users = CallBLL.cz_users_bll.UserLogin(this.userName);

            this.six_kind          = _users.get_six_kind().Trim();
            this.six_credit        = Convert.ToDecimal(_users.get_six_credit());
            this.six_usable_credit = Convert.ToDecimal(_users.get_six_usable_credit());
            this.six_iscash        = _users.get_six_iscash().ToString();
            this.kc_kind           = _users.get_kc_kind().Trim();
            this.kc_credit         = Convert.ToDecimal(_users.get_kc_credit());
            this.kc_usable_credit  = Convert.ToDecimal(_users.get_kc_usable_credit());
            this.kc_iscash         = _users.get_kc_iscash().ToString();
            this.lotteryDT         = base.GetLotteryList();
            int num = 100;

            if (this.lotteryID == num.ToString())
            {
                if (!FileCacheHelper.get_IsShowLM_B())
                {
                    this.sixDataTable = CallBLL.cz_drawback_six_bll.User_GetDrawBackList(HttpContext.Current.Session["user_name"].ToString(), "91060,91061,91062,91063,91064,91065").Tables[0];
                }
                else
                {
                    this.sixDataTable = CallBLL.cz_drawback_six_bll.GetDrawBackList(HttpContext.Current.Session["user_name"].ToString()).Tables[0];
                }
            }
            num = 0;
            if (this.lotteryID == num.ToString())
            {
                str = "86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,128,129,130,131,132,133,134,135,136";
                this.kl10DataTable = CallBLL.cz_drawback_kl10_bll.GetDrawbackByPlayId(this.userName, str).Tables[0];
            }
            num = 1;
            if (this.lotteryID == num.ToString())
            {
                this.cqscDataTable = CallBLL.cz_drawback_cqsc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            num = 2;
            if (this.lotteryID == num.ToString())
            {
                this.pk10DataTable = CallBLL.cz_drawback_pk10_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 3;
            if (this.lotteryID == num.ToString())
            {
                this.xyncDataTable = CallBLL.cz_drawback_xync_bll.GetDrawbackList(this.userName, "86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,128,129,130,131,132,133,134,135,136").Tables[0];
            }
            num = 4;
            if (this.lotteryID == num.ToString())
            {
                this.jsk3DataTable = CallBLL.cz_drawback_jsk3_bll.GetDrawbackList(this.userName).Tables[0];
            }
            num = 5;
            if (this.lotteryID == num.ToString())
            {
                this.kl8DataTable = CallBLL.cz_drawback_kl8_bll.GetDrawbackList(this.userName).Tables[0];
            }
            num = 6;
            if (this.lotteryID == num.ToString())
            {
                this.k8scDataTable = CallBLL.cz_drawback_k8sc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            num = 7;
            if (this.lotteryID == num.ToString())
            {
                this.pcddDataTable = CallBLL.cz_drawback_pcdd_bll.GetDrawbackList(this.userName, "71009,71010,71011,71012").Tables[0];
            }
            num = 9;
            if (this.lotteryID == num.ToString())
            {
                this.xyft5DataTable = CallBLL.cz_drawback_xyft5_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 8;
            if (this.lotteryID == num.ToString())
            {
                this.pkbjlDataTable = CallBLL.cz_drawback_pkbjl_bll.GetDrawbackList(this.userName, "81001,81002,81003,81004").Tables[0];
            }
            num = 10;
            if (this.lotteryID == num.ToString())
            {
                this.jscarDataTable = CallBLL.cz_drawback_jscar_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 11;
            if (this.lotteryID == num.ToString())
            {
                this.speed5DataTable = CallBLL.cz_drawback_speed5_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            num = 13;
            if (this.lotteryID == num.ToString())
            {
                this.jscqscDataTable = CallBLL.cz_drawback_jscqsc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            num = 12;
            if (this.lotteryID == num.ToString())
            {
                this.jspk10DataTable = CallBLL.cz_drawback_jspk10_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 14;
            if (this.lotteryID == num.ToString())
            {
                str = "86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,123,124,125,126,127,128,129,130,131,132,133,134,135,136";
                this.jssfcDataTable = CallBLL.cz_drawback_jssfc_bll.GetDrawbackByPlayId(this.userName, str).Tables[0];
            }
            num = 15;
            if (this.lotteryID == num.ToString())
            {
                this.jsft2DataTable = CallBLL.cz_drawback_jsft2_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 0x10;
            if (this.lotteryID == num.ToString())
            {
                this.car168DataTable = CallBLL.cz_drawback_car168_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 0x11;
            if (this.lotteryID == num.ToString())
            {
                this.ssc168DataTable = CallBLL.cz_drawback_ssc168_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            num = 0x12;
            if (this.lotteryID == num.ToString())
            {
                this.vrcarDataTable = CallBLL.cz_drawback_vrcar_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 0x13;
            if (this.lotteryID == num.ToString())
            {
                this.vrsscDataTable = CallBLL.cz_drawback_vrssc_bll.GetDrawbackList(this.userName, "4,5,6,7,8,9,10,11,12,13,14,15").Tables[0];
            }
            num = 20;
            if (this.lotteryID == num.ToString())
            {
                this.xyftoaDataTable = CallBLL.cz_drawback_xyftoa_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 0x15;
            if (this.lotteryID == num.ToString())
            {
                this.xyftsgDataTable = CallBLL.cz_drawback_xyftsg_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
            num = 0x16;
            if (this.lotteryID == num.ToString())
            {
                this.happycarDataTable = CallBLL.cz_drawback_happycar_bll.GetDrawbackList(this.userName, "1,2,3,4,36,37,38").Tables[0];
            }
        }