Ejemplo n.º 1
0
        private void GetSystemSet()
        {
            cz_system_set_six systemSet = CallBLL.cz_system_set_six_bll.GetSystemSet(100);

            this.txtOpenTime  = Convert.ToDateTime(systemSet.get_ev_3()).ToString("HH:mm:ss");
            this.txtEndTime   = Convert.ToDateTime(systemSet.get_ev_4()).ToString("HH:mm:ss");
            this.txtTMEndTime = Convert.ToDateTime(systemSet.get_ev_5()).ToString("HH:mm:ss");
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();

            this.userModel = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;
            this.skin      = this.userModel.get_u_skin();
            if (!this.userModel.get_u_type().Equals("zj"))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            base.Permission_Aspx_ZJ(this.userModel, "po_3_2");
            this.lotteryId = LSRequest.qq("lid");
            this.lotteryDT = base.GetLotteryList();
            base.IsLotteryExist(this.lotteryId, "u100032", "1", "");
            int num = 100;

            if (!this.lotteryId.Equals(num.ToString()))
            {
                base.Response.Redirect("/SystemSet/SystemSet_kc.aspx?lid=" + this.lotteryId, true);
            }
            foreach (DataRow row in this.lotteryDT.Rows)
            {
                if ((((Convert.ToInt32(row["id"].ToString()).Equals(0) || Convert.ToInt32(row["id"].ToString()).Equals(1)) || (Convert.ToInt32(row["id"].ToString()).Equals(2) || Convert.ToInt32(row["id"].ToString()).Equals(3))) || ((Convert.ToInt32(row["id"].ToString()).Equals(4) || Convert.ToInt32(row["id"].ToString()).Equals(5)) || (Convert.ToInt32(row["id"].ToString()).Equals(6) || Convert.ToInt32(row["id"].ToString()).Equals(7)))) || (((Convert.ToInt32(row["id"].ToString()).Equals(8) || Convert.ToInt32(row["id"].ToString()).Equals(9)) || (Convert.ToInt32(row["id"].ToString()).Equals(10) || Convert.ToInt32(row["id"].ToString()).Equals(11))) || ((Convert.ToInt32(row["id"].ToString()).Equals(12) || Convert.ToInt32(row["id"].ToString()).Equals(13)) || Convert.ToInt32(row["id"].ToString()).Equals(14))))
                {
                    this.sltString = this.sltString + string.Format("<option value='{0}'>{1}</option>", row["id"].ToString(), "快彩");
                    break;
                }
            }
            foreach (DataRow row2 in this.lotteryDT.Rows)
            {
                if (Convert.ToInt32(row2["id"].ToString()).Equals(100))
                {
                    this.sltString = this.sltString + string.Format("<option value='{0}' selected=selected>{1}</option>", 100, "香港⑥合彩");
                    break;
                }
            }
            this.model           = CallBLL.cz_system_set_six_bll.GetSystemSet(100);
            this.singleNumberSet = this.model.get_single_number_isdown().ToString();
            this.abAcountSet     = this.model.get_is_tmab().ToString();
            this.lmGroupTable    = CallBLL.cz_lm_group_set_bll.GetList(100, "91060,91061,91062,91063,91064,91065");
            int num18 = 1;

            this.drawbackAutoSet = CallBLL.cz_drawback_auto_set_bll.GetDrawbackAutoSet(num18.ToString()).Rows[0]["flag"].ToString();
            this.negativeSale    = CallBLL.cz_users_bll.GetZJInfo().Rows[0]["negative_sale"].ToString();
            if (LSRequest.qq("submitHdn").Equals("submit"))
            {
                if (base.IsChildSync())
                {
                    base.Response.Redirect("/MessagePage.aspx?code=u100080&url=&issuccess=1&isback=0");
                }
                this.UpdateDrawbackAutoSet();
                this.UpdateZJNegativeSale(ref this.isOut);
                this.UpdateData();
            }
        }
Ejemplo n.º 3
0
        private void UpdateData()
        {
            this.ValidInput();
            cz_system_set_six _six = new cz_system_set_six();

            _six.set_lottery_type(100);
            _six.set_add_time(new DateTime?(DateTime.Now));
            _six.set_ev_0(LSRequest.qq("ev_0").Trim());
            _six.set_ev_1(LSRequest.qq("ev_1").Trim());
            _six.set_ev_2(LSRequest.qq("ev_2").Trim());
            _six.set_ev_3(LSRequest.qq("ev_3").Trim());
            _six.set_ev_4(LSRequest.qq("ev_4").Trim());
            _six.set_ev_5(LSRequest.qq("ev_5").Trim());
            _six.set_ev_6(LSRequest.qq("ev_6").Trim());
            _six.set_ev_7(LSRequest.qq("ev_7").Trim());
            _six.set_ev_8(LSRequest.qq("ev_8").Trim());
            _six.set_ev_9(LSRequest.qq("ev_9").Trim());
            _six.set_ev_10(LSRequest.qq("ev_10").Trim());
            _six.set_ev_11(LSRequest.qq("ev_11").Trim());
            _six.set_ev_12(LSRequest.qq("ev_12").Trim());
            _six.set_ev_13(LSRequest.qq("ev_13").Trim());
            _six.set_ev_14(LSRequest.qq("ev_14").Trim());
            _six.set_ev_15(LSRequest.qq("ev_15").Trim());
            _six.set_ev_16(LSRequest.qq("ev_16").Trim());
            _six.set_ev_17(LSRequest.qq("ev_17").Trim());
            _six.set_ev_18(LSRequest.qq("ev_18").Trim());
            _six.set_single_number_isdown(new int?(int.Parse(LSRequest.qq("singleNumberSet"))));
            _six.set_is_tmab(new int?(int.Parse(LSRequest.qq("abamountSet"))));
            CallBLL.cz_system_set_six_bll.SetSystemSet(_six);
            base.sys_set_log(this.model, CallBLL.cz_system_set_six_bll.GetSystemSet(100));
            this.GetLmGroupCount();
            string url = "/SystemSet/SystemSet_six.aspx?lid=" + this.lotteryId;

            base.Response.Write(base.ShowDialogBox("系統初始化參數保存成功!", url, 0));
            if (this.isRestUserAgent)
            {
                FileCacheHelper.UpdateWebconfig(0);
            }
            if (this.isOut)
            {
                this.OutZJ();
            }
            base.Response.End();
        }