Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.playIds  = base.GetSIX_PlayIDChange("qmwx");
            this.playpage = "qmwx";
            agent_userinfo_session model = this.Session[this.Session["user_name"] + "lottery_session_user_info"] as agent_userinfo_session;

            base.Permission_Aspx_ZJ(model, "po_1_1");
            base.Permission_Aspx_DL(model, "po_5_1");
            string str2 = model.get_u_type();

            if (str2 != null)
            {
                if (!(str2 == "zj"))
                {
                    if (str2 == "fgs")
                    {
                        this.userType = "2";
                        goto Label_00AC;
                    }
                }
                else
                {
                    this.userType = "1";
                    goto Label_00AC;
                }
            }
            this.userType = "0";
Label_00AC:
            this.jeucode = base.get_JeuValidate();
            this.Session["JeuValidate"] = this.jeucode;
            if (string.IsNullOrEmpty(model.get_allow_sale().ToString()))
            {
                this.isAllow_sale = "0";
            }
            else
            {
                this.isAllow_sale = model.get_allow_sale().ToString();
                if (model.get_users_child_session() != null)
                {
                    if (model.get_u_type().Equals("zj"))
                    {
                        if (model.get_users_child_session().get_permissions_name().IndexOf("po_1_3") < 0)
                        {
                            this.isAllow_sale = "0";
                        }
                    }
                    else if (model.get_users_child_session().get_permissions_name().IndexOf("po_5_2") < 0)
                    {
                        this.isAllow_sale = "0";
                    }
                }
            }
            this.isOperation = base.GetIsOperation(model, 1);
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();
            agent_userinfo_session model = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;

            this.skin = model.get_u_skin();
            if (model.get_u_type().Equals("zj".ToString()))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            base.Permission_Aspx_DL(model, "po_5_2");
            this.lotteryDT = base.GetLotteryList();
            this.lotteryId = LSRequest.qq("lid");
            int num = 100;

            if (!this.lotteryId.Equals(num.ToString()))
            {
                base.Response.Redirect("/AutoLet/AutoLet_kc.aspx?lid=" + this.lotteryId, true);
            }
            if (!model.get_allow_sale().Equals(1))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100037&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            DataRow[] rowArray  = this.lotteryDT.Select(string.Format(" id={0} ", 100));
            DataRow[] rowArray2 = this.lotteryDT.Select(string.Format(" id<>{0} ", 100));
            int       num2      = 100;

            if (this.lotteryId.Equals(num2.ToString()))
            {
                if (rowArray.Length > 0)
                {
                    this.sltString = this.sltString + string.Format("<option value='{0}' selected=selected>{1}</option>", 100, "香港⑥合彩");
                }
                if (rowArray2.Length > 0)
                {
                    this.sltString = this.sltString + string.Format("<option value='{0}'>{1}</option>", 0, "快彩");
                }
            }
            else
            {
                if (rowArray.Length > 0)
                {
                    this.sltString = this.sltString + string.Format("<option value='{0}'>{1}</option>", 100, "香港⑥合彩");
                }
                if (rowArray2.Length > 0)
                {
                    this.sltString = this.sltString + string.Format("<option value='{0}' selected=selected>{1}</option>", 0, "快彩");
                }
            }
            DataTable play = null;
            DataSet   autosaleByUserName = null;

            if (!FileCacheHelper.get_IsShowLM_B())
            {
                play = CallBLL.cz_play_six_bll.GetPlay("91060,91061,91062,91063,91064,91065");
                autosaleByUserName = CallBLL.cz_autosale_six_bll.GetAutosaleByUserName(str, "91060,91061,91062,91063,91064,91065");
            }
            else
            {
                play = CallBLL.cz_play_six_bll.GetPlay();
                autosaleByUserName = CallBLL.cz_autosale_six_bll.GetAutosaleByUserName(str);
            }
            if (play != null)
            {
                this.play_Row = play.Select(" play_id <>91002 and play_id <>91015 ", " sort asc");
            }
            if (((autosaleByUserName != null) && (autosaleByUserName.Tables.Count > 0)) && (autosaleByUserName.Tables[0].Rows.Count > 0))
            {
                this.Autosale_DT = autosaleByUserName.Tables[0];
            }
            if (LSRequest.qq("hdnSubmit").Equals("submit"))
            {
                this.SaveData();
            }
        }