Ejemplo n.º 1
0
        private void IsNoOpenLottery()
        {
            string str = base.Server.UrlEncode(string.Format("/LotteryPeriod/AwardPeriod.aspx?lid={0}", 100));

            if (CallBLL.cz_bet_six_bll.GetIspayment() > 0)
            {
                base.Response.Redirect(string.Format("/MessagePage.aspx?code=u100050&url={0}&issuccess=1&isback=1", str));
                base.Response.End();
            }
            cz_phase_six currentPhase = CallBLL.cz_phase_six_bll.GetCurrentPhase();

            if (currentPhase != null)
            {
                int num2 = Convert.ToInt32(currentPhase.get_is_drawlottery());
                int num3 = Convert.ToInt32(currentPhase.get_is_opendata());
                if ((num2 == 1) || (num3 == 0))
                {
                    base.Response.Redirect(string.Format("/MessagePage.aspx?code=u100050&url={0}&issuccess=1&isback=1", str));
                    base.Response.End();
                }
                int num4 = int.Parse(currentPhase.get_phase()) + 1;
                if ((num4 > 9) && (num4 < 100))
                {
                    this.txtPhase = "0";
                }
                if (num4 < 10)
                {
                    this.txtPhase = "00";
                }
                this.txtPhase = this.txtPhase + num4.ToString();
            }
            else
            {
                this.txtPhase = "001";
            }
            this.txtOpenDate  = DateTime.Now.ToString("yyyy-MM-dd");
            this.txtEndDate   = DateTime.Now.ToString("yyyy-MM-dd");
            this.txtTMEndDate = DateTime.Now.ToString("yyyy-MM-dd");
        }