Ejemplo n.º 1
0
        private void getWithdrawInit(ref string strResult)
        {
            bool flag;
            bool flag2;

            base.checkLoginByHandler(0);
            ReturnResult result = new ReturnResult();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            new List <object>();
            string str = this.Session["user_name"].ToString();

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            if ((!this.userModel.get_u_type().Trim().Equals("zj") && !this.userModel.get_u_type().Trim().Equals("fgs")) && (!this.userModel.get_u_type().Trim().Equals("gd") && !this.userModel.get_u_type().Trim().Equals("zd")))
            {
                base.Response.End();
            }
            base.checkCloneRight();
            this.lotteryDT = base.GetLotteryList();
            base.Permission_Aspx_ZJ_Ajax(this.userModel, "po_2_1");
            base.Permission_Aspx_DL_Ajax(this.userModel, "po_6_1");
            string   str2          = LSRequest.qq("uid");
            cz_users userInfoByUID = null;

            userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(str2);
            if (userInfoByUID.get_u_name().Equals(this.userModel.get_u_name()))
            {
                base.Response.End();
            }
            if (!base.IsUpperLowerLevels(userInfoByUID.get_u_name(), this.userModel.get_u_type(), this.userModel.get_u_name()))
            {
                base.Response.End();
            }
            CallBLL.cz_users_bll.GetUserInfoByUName(userInfoByUID.get_sup_name());
            base.OpenLotteryMaster(out flag, out flag2);
            dictionary.Add("name", userInfoByUID.get_u_name());
            dictionary.Add("utype", base.GetUTypeText(userInfoByUID.get_u_type()));
            dictionary.Add("nicker", userInfoByUID.get_u_nicker());
            if (flag && userInfoByUID.get_six_iscash().Equals(int.Parse("1")))
            {
                dictionary.Add("recoverCreditSix", userInfoByUID.get_six_usable_credit());
                dictionary.Add("isCashSix", userInfoByUID.get_six_iscash());
                dictionary.Add("isMasteridSix", 1);
            }
            if (flag2 && userInfoByUID.get_kc_iscash().Equals(int.Parse("1")))
            {
                dictionary.Add("recoverCreditKc", userInfoByUID.get_kc_usable_credit());
                dictionary.Add("isCashKc", userInfoByUID.get_kc_iscash());
                dictionary.Add("isMasteridKc", 2);
            }
            result.set_success(200);
            result.set_data(dictionary);
            strResult = base.ObjectToJson(result);
        }
Ejemplo n.º 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];
            }
        }
    }
Ejemplo n.º 3
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));
        }
    }
Ejemplo n.º 4
0
        private void addRecharge(ref string strResult)
        {
            bool flag;
            bool flag2;

            base.checkLoginByHandler(0);
            new ReturnResult();
            new Dictionary <string, object>();
            new List <object>();
            string str = this.Session["user_name"].ToString();

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            if ((!this.userModel.get_u_type().Trim().Equals("zj") && !this.userModel.get_u_type().Trim().Equals("fgs")) && (!this.userModel.get_u_type().Trim().Equals("gd") && !this.userModel.get_u_type().Trim().Equals("zd")))
            {
                base.Response.End();
            }
            base.checkCloneRight();
            this.lotteryDT = base.GetLotteryList();
            base.Permission_Aspx_ZJ_Ajax(this.userModel, "po_2_1");
            base.Permission_Aspx_DL_Ajax(this.userModel, "po_6_1");
            string   s               = LSRequest.qq("masterid");
            string   str3            = LSRequest.qq("uid");
            string   str4            = LSRequest.qq("czje");
            cz_users userInfoByUID   = null;
            cz_users userInfoByUName = null;

            userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(str3);
            this.Hy_SubmitCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
            if (!base.IsUpperLowerLevels(userInfoByUID.get_u_name(), this.userModel.get_u_type(), this.userModel.get_u_name()))
            {
                this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                base.Response.End();
            }
            cz_rate_kc rateKCByUserName = CallBLL.cz_rate_kc_bll.GetRateKCByUserName(userInfoByUID.get_u_name());

            base.En_User_Lock(rateKCByUserName.get_fgs_name());
            userInfoByUName = CallBLL.cz_users_bll.GetUserInfoByUName(userInfoByUID.get_sup_name());
            base.OpenLotteryMaster(out flag, out flag2);
            if (flag && userInfoByUID.get_six_iscash().Equals(int.Parse("1")))
            {
                int num3 = 1;
                if (s.Equals(num3.ToString()))
                {
                    if (!userInfoByUID.get_six_iscash().Equals(int.Parse("1")))
                    {
                        base.Response.End();
                    }
                    if (!Utils.IsDouble(str4))
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(⑥)充值格式不正確!");
                        base.Response.End();
                    }
                    if (double.Parse(str4) < 1.0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(⑥)充值金額不能小於1!");
                        base.Response.End();
                    }
                    if (!userInfoByUName.get_u_type().Equals("zj"))
                    {
                        decimal num4 = decimal.Parse(str4);
                        if (num4 > userInfoByUName.get_six_usable_credit())
                        {
                            this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                            base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                            base.noRightOptMsg("(⑥)充值金額不能大於 “上級可用餘額” !!");
                            base.Response.End();
                        }
                    }
                    string         random = Utils.GetRandom();
                    cz_credit_flow _flow  = new cz_credit_flow();
                    _flow.set_master_id(new int?(int.Parse(s)));
                    _flow.set_credit_old(userInfoByUID.get_six_usable_credit());
                    decimal?nullable4 = userInfoByUID.get_six_usable_credit();
                    decimal num5      = decimal.Parse(str4);
                    _flow.set_credit_new(nullable4.HasValue ? new decimal?(nullable4.GetValueOrDefault() + num5) : null);
                    _flow.set_credit_change(new decimal?(decimal.Parse(str4)));
                    _flow.set_u_name(userInfoByUID.get_u_name());
                    _flow.set_iscash(new int?(int.Parse("1")));
                    _flow.set_operator_name(this.userModel.get_u_name());
                    if (this.userModel.get_users_child_session() != null)
                    {
                        _flow.set_operator_child_name(this.userModel.get_users_child_session().get_u_name());
                    }
                    _flow.set_operator_time(DateTime.Now);
                    _flow.set_flag(0);
                    _flow.set_checkcode(random);
                    _flow.set_isphone(1);
                    _flow.set_ip(LSRequest.GetIP());
                    cz_credit_flow _flow2 = new cz_credit_flow();
                    _flow2.set_master_id(new int?(int.Parse(s)));
                    _flow2.set_credit_old(userInfoByUName.get_six_usable_credit());
                    decimal?nullable6 = userInfoByUName.get_six_usable_credit();
                    decimal num6      = decimal.Parse(str4);
                    _flow2.set_credit_new(nullable6.HasValue ? new decimal?(nullable6.GetValueOrDefault() - num6) : null);
                    _flow2.set_credit_change(new decimal?(-decimal.Parse(str4)));
                    _flow2.set_u_name(userInfoByUName.get_u_name());
                    _flow2.set_iscash(new int?(int.Parse("1")));
                    _flow2.set_operator_name(this.userModel.get_u_name());
                    if (this.userModel.get_users_child_session() != null)
                    {
                        _flow2.set_operator_child_name(this.userModel.get_users_child_session().get_u_name());
                    }
                    _flow2.set_operator_time(DateTime.Now);
                    _flow2.set_flag(1);
                    _flow2.set_checkcode(random);
                    _flow2.set_note(userInfoByUID.get_u_name());
                    _flow2.set_isphone(1);
                    _flow2.set_ip(LSRequest.GetIP());
                    if (CallBLL.cz_users_bll.UserRecharge(userInfoByUName.get_u_type(), userInfoByUName.get_u_id(), userInfoByUID.get_u_id(), double.Parse(str4), _flow, _flow2) > 0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.successOptMsg("(⑥)充值成功!");
                        base.Response.End();
                        return;
                    }
                    this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                    base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                    base.noRightOptMsg("(⑥)充值失敗!");
                    base.Response.End();
                    return;
                }
            }
            if (flag2 && userInfoByUID.get_kc_iscash().Equals(int.Parse("1")))
            {
                int num7 = 2;
                if (s.Equals(num7.ToString()))
                {
                    if (!userInfoByUID.get_kc_iscash().Equals(int.Parse("1")))
                    {
                        base.Response.End();
                    }
                    if (!Utils.IsDouble(str4))
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(⑥)充值格式不正確!");
                        base.Response.End();
                    }
                    if (double.Parse(str4) < 1.0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(快)充值金額不能小於!");
                        base.Response.End();
                    }
                    if (!userInfoByUName.get_u_type().Equals("zj"))
                    {
                        decimal num8 = decimal.Parse(str4);
                        if (num8 > userInfoByUName.get_kc_usable_credit())
                        {
                            this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                            base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                            base.noRightOptMsg("(快)充值金額不能大於 “上級可用餘額” !");
                            base.Response.End();
                        }
                    }
                    string         str6   = Utils.GetRandom();
                    cz_credit_flow _flow3 = new cz_credit_flow();
                    _flow3.set_master_id(new int?(int.Parse(s)));
                    _flow3.set_credit_old(userInfoByUID.get_kc_usable_credit());
                    decimal?nullable11 = userInfoByUID.get_kc_usable_credit();
                    decimal num9       = decimal.Parse(str4);
                    _flow3.set_credit_new(nullable11.HasValue ? new decimal?(nullable11.GetValueOrDefault() + num9) : null);
                    _flow3.set_credit_change(new decimal?(decimal.Parse(str4)));
                    _flow3.set_u_name(userInfoByUID.get_u_name());
                    _flow3.set_iscash(new int?(int.Parse("1")));
                    _flow3.set_operator_name(this.userModel.get_u_name());
                    if (this.userModel.get_users_child_session() != null)
                    {
                        _flow3.set_operator_child_name(this.userModel.get_users_child_session().get_u_name());
                    }
                    _flow3.set_operator_time(DateTime.Now);
                    _flow3.set_flag(0);
                    _flow3.set_checkcode(str6);
                    _flow3.set_isphone(1);
                    _flow3.set_ip(LSRequest.GetIP());
                    cz_credit_flow _flow4 = new cz_credit_flow();
                    _flow4.set_master_id(new int?(int.Parse(s)));
                    _flow4.set_credit_old(userInfoByUName.get_kc_usable_credit());
                    decimal?nullable13 = userInfoByUName.get_kc_usable_credit();
                    decimal num10      = decimal.Parse(str4);
                    _flow4.set_credit_new(nullable13.HasValue ? new decimal?(nullable13.GetValueOrDefault() - num10) : null);
                    _flow4.set_credit_change(new decimal?(-decimal.Parse(str4)));
                    _flow4.set_u_name(userInfoByUName.get_u_name());
                    _flow4.set_iscash(new int?(int.Parse("1")));
                    _flow4.set_operator_name(this.userModel.get_u_name());
                    if (this.userModel.get_users_child_session() != null)
                    {
                        _flow4.set_operator_child_name(this.userModel.get_users_child_session().get_u_name());
                    }
                    _flow4.set_operator_time(DateTime.Now);
                    _flow4.set_flag(1);
                    _flow4.set_checkcode(str6);
                    _flow4.set_note(userInfoByUID.get_u_name());
                    _flow4.set_isphone(1);
                    _flow4.set_ip(LSRequest.GetIP());
                    if (CallBLL.cz_users_bll.UserRecharge(userInfoByUName.get_u_type(), userInfoByUName.get_u_id(), userInfoByUID.get_u_id(), double.Parse(str4), _flow3, _flow4) > 0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.successOptMsg("(快)充值成功!");
                        base.Response.End();
                        return;
                    }
                    this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                    base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                    base.noRightOptMsg("(快)充值失敗!");
                    base.Response.End();
                    return;
                }
            }
            this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
            base.Un_User_Lock(rateKCByUserName.get_fgs_name());
            base.noRightOptMsg("參數錯誤!");
            base.Response.End();
        }
Ejemplo n.º 5
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];
            }
        }
Ejemplo n.º 6
0
        private void addWithdraw(ref string strResult)
        {
            bool flag;
            bool flag2;

            base.checkLoginByHandler(0);
            new ReturnResult();
            new Dictionary <string, object>();
            new List <object>();
            string str = this.Session["user_name"].ToString();

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            if ((!this.userModel.get_u_type().Trim().Equals("zj") && !this.userModel.get_u_type().Trim().Equals("fgs")) && (!this.userModel.get_u_type().Trim().Equals("gd") && !this.userModel.get_u_type().Trim().Equals("zd")))
            {
                base.Response.End();
            }
            base.checkCloneRight();
            this.lotteryDT = base.GetLotteryList();
            base.Permission_Aspx_ZJ_Ajax(this.userModel, "po_2_1");
            base.Permission_Aspx_DL_Ajax(this.userModel, "po_6_1");
            string   s               = LSRequest.qq("masterid");
            string   str3            = LSRequest.qq("uid");
            string   str4            = LSRequest.qq("txje");
            cz_users userInfoByUID   = null;
            cz_users userInfoByUName = null;

            userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(str3);
            this.Hy_SubmitCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
            if (!base.IsUpperLowerLevels(userInfoByUID.get_u_name(), this.userModel.get_u_type(), this.userModel.get_u_name()))
            {
                this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                base.Response.End();
            }
            cz_rate_kc rateKCByUserName = CallBLL.cz_rate_kc_bll.GetRateKCByUserName(userInfoByUID.get_u_name());

            base.En_User_Lock(rateKCByUserName.get_fgs_name());
            userInfoByUName = CallBLL.cz_users_bll.GetUserInfoByUName(userInfoByUID.get_sup_name());
            base.OpenLotteryMaster(out flag, out flag2);
            if (flag && userInfoByUID.get_six_iscash().Equals(int.Parse("1")))
            {
                int num3 = 1;
                if (s.Equals(num3.ToString()))
                {
                    if (!userInfoByUID.get_six_iscash().Equals(int.Parse("1")))
                    {
                        base.Response.End();
                    }
                    if (!Utils.IsDouble(str4))
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(⑥)提現格式不正確!");
                        base.Response.End();
                    }
                    if (double.Parse(str4) < 1.0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(⑥)提現金額不能小於1!");
                        base.Response.End();
                    }
                    if (double.Parse(str4) > double.Parse(userInfoByUID.get_six_usable_credit().ToString()))
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg(string.Format("(⑥)提現金額不能大於{0}!", Utils.GetMathRound(double.Parse(userInfoByUID.get_six_usable_credit().ToString()), null)));
                        base.Response.End();
                    }
                    if (CallBLL.cz_users_bll.UserWithdraw_six(userInfoByUID, userInfoByUName, double.Parse(str4), int.Parse(s), this.userModel.get_u_name(), (this.userModel.get_users_child_session() != null) ? this.userModel.get_users_child_session().get_u_name() : "", 1) > 0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.successOptMsg("(⑥)提現成功!");
                        base.Response.End();
                        return;
                    }
                    this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                    base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                    base.noRightOptMsg("(⑥)提現失敗!");
                    base.Response.End();
                    return;
                }
            }
            if (flag2 && userInfoByUID.get_kc_iscash().Equals(int.Parse("1")))
            {
                int num4 = 2;
                if (s.Equals(num4.ToString()))
                {
                    if (!userInfoByUID.get_kc_iscash().Equals(int.Parse("1")))
                    {
                        base.Response.End();
                    }
                    if (!Utils.IsDouble(str4))
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(快)提現格式不正確!");
                        base.Response.End();
                    }
                    if (double.Parse(str4) < 1.0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg("(快)提現金額不能小於1!");
                        base.Response.End();
                    }
                    if (double.Parse(str4) > double.Parse(userInfoByUID.get_kc_usable_credit().ToString()))
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.noRightOptMsg(string.Format("(快)提現金額不能大於{0}!", Utils.GetMathRound(double.Parse(userInfoByUID.get_kc_usable_credit().ToString()), null)));
                        base.Response.End();
                    }
                    if (CallBLL.cz_users_bll.UserWithdraw_kc(userInfoByUID, userInfoByUName, double.Parse(str4), int.Parse(s), this.userModel.get_u_name(), (this.userModel.get_users_child_session() != null) ? this.userModel.get_users_child_session().get_u_name() : "", 1) > 0)
                    {
                        this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                        base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                        base.successOptMsg("(快)提現成功!");
                        base.Response.End();
                        return;
                    }
                    this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
                    base.Un_User_Lock(rateKCByUserName.get_fgs_name());
                    base.noRightOptMsg("(快)提現失敗!");
                    base.Response.End();
                    return;
                }
            }
            this.Hy_DeleteCreditLock(userInfoByUID.get_u_name(), userInfoByUID.get_u_type());
            base.Un_User_Lock(rateKCByUserName.get_fgs_name());
            base.noRightOptMsg("參數錯誤!");
            base.Response.End();
        }