Ejemplo n.º 1
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;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../Quit.aspx", true);
                base.Response.End();
            }
            if (this.Session["child_user_name"] != null)
            {
                if (this.userModel.get_u_type().Trim().Equals("zj") && !RuleJudge.ChildOperateValid(this.userModel, "po_3_4", HttpContext.Current))
                {
                    base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                    base.Response.End();
                }
                this.clone = base.get_children_name();
            }
            if (!FileCacheHelper.get_ManageZJProfit().Equals("1"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if ((this.userModel.get_users_child_session() != null) && !this.userModel.get_users_child_session().get_is_admin().Equals(1))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            DataTable zJInfo = CallBLL.cz_users_bll.GetZJInfo();

            this.zjName            = zJInfo.Rows[0]["u_name"].ToString();
            this.lottery_master_id = base.get_current_master_id();
            this.id = LSRequest.qq("id");
            if (!string.IsNullOrEmpty(this.id))
            {
                this.dataTable = CallBLL.cz_zj_profit_set_bll.GetProfitById(this.id);
                if (this.dataTable != null)
                {
                    this.id         = this.dataTable.Rows[0]["id"].ToString();
                    this.u_type     = this.dataTable.Rows[0]["u_type"].ToString();
                    this.u_name     = this.dataTable.Rows[0]["u_name"].ToString();
                    this.minRate    = this.dataTable.Rows[0]["minRate"].ToString();
                    this.maxRate    = this.dataTable.Rows[0]["maxRate"].ToString();
                    this.openTime   = this.dataTable.Rows[0]["openTime"].ToString();
                    this.lottery_id = this.dataTable.Rows[0]["lottery_id"].ToString();
                    this.id_ccms    = this.dataTable.Rows[0]["id_ccms"].ToString();
                    this.systemRate = this.dataTable.Rows[0]["systemRate"].ToString();
                }
            }
            if (!string.IsNullOrEmpty(LSRequest.qq("hdnid")))
            {
                if (this.userModel.get_users_child_session() != null)
                {
                    base.Response.Write(base.ShowDialogBox("子賬號不能保存數據!", "", 400));
                    base.Response.End();
                }
                this.Edit();
            }
        }
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;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../Quit.aspx", true);
                base.Response.End();
            }
            if (this.Session["child_user_name"] != null)
            {
                if (this.userModel.get_u_type().Trim().Equals("zj") && !RuleJudge.ChildOperateValid(this.userModel, "po_3_4", HttpContext.Current))
                {
                    base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                    base.Response.End();
                }
                this.clone = base.get_children_name();
            }
            this.lottery_master_id = base.get_current_master_id();
            if (LSRequest.qq("hdnadd").Equals("hdnadd"))
            {
                this.AddUser();
            }
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            agent_userinfo_session model = this.Session[this.Session["user_name"] + "lottery_session_user_info"] as agent_userinfo_session;

            this.skin = model.get_u_skin();
            if (!this.Session["user_type"].ToString().Equals("zj"))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            base.Permission_Aspx_ZJ(model, "po_1_1");
            this.lotteryId = LSRequest.qq("lid");
            this.lotteryDT = base.GetLotteryList();
            base.IsLotteryExist(this.lotteryId, "u100032", "1", "");
            int num = 0;

            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(9) || Convert.ToInt32(row["id"].ToString()).Equals(8)) || (Convert.ToInt32(row["id"].ToString()).Equals(10) || Convert.ToInt32(row["id"].ToString()).Equals(11))) || ((Convert.ToInt32(row["id"].ToString()).Equals(13) || Convert.ToInt32(row["id"].ToString()).Equals(12)) || (Convert.ToInt32(row["id"].ToString()).Equals(14) || Convert.ToInt32(row["id"].ToString()).Equals(15)))) || (((Convert.ToInt32(row["id"].ToString()).Equals(0x10) || Convert.ToInt32(row["id"].ToString()).Equals(0x11)) || (Convert.ToInt32(row["id"].ToString()).Equals(0x12) || Convert.ToInt32(row["id"].ToString()).Equals(0x13))) || (Convert.ToInt32(row["id"].ToString()).Equals(20) || Convert.ToInt32(row["id"].ToString()).Equals(0x16)))))
                {
                    string str2 = "";
                    if (num > 9)
                    {
                        str2 = "<br />";
                        num  = 0;
                    }
                    this.sltString = this.sltString + str2 + string.Format("<label class=\"topLabel\"><input value='{0}' {1} type=\"checkbox\" id=\"chk_{2}\" name=\"chk_{3}\" class=\"chk\" /><span>{4}</span></label>&nbsp;&nbsp;", new object[] { row["id"].ToString(), row["id"].ToString().Equals(this.lotteryId) ? "checked=checked" : "", row["id"].ToString(), row["id"].ToString(), base.GetGameNameByID(row["id"].ToString()) });
                    num++;
                }
            }
        }
Ejemplo n.º 4
0
        private void ValidInput()
        {
            bool flag = true;

            for (int i = 0; i < this.play_Row.Length; i++)
            {
                string str  = this.play_Row[i]["play_id"].ToString();
                string str2 = LSRequest.qq("money_" + str);
                if (LSRequest.qq("chk_" + str).Equals("1"))
                {
                    bool flag2 = Utils.IsInteger(str2);
                    bool flag3 = this.IsIntMoney(str2);
                    if (!flag2 || !flag3)
                    {
                        flag = false;
                        break;
                    }
                }
            }
            if (!flag)
            {
                base.Response.Write(base.ShowDialogBox("請輸入有效的”控製額度“!", "", 400));
                base.Response.End();
            }
        }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["user_type"].ToString().Equals("zj"))
     {
         string str  = LSRequest.qq("id");
         string str2 = LSRequest.qq("lid");
         string str3 = base.Server.HtmlEncode("../ReportBackupManage/ReportBackup.aspx?lid=" + str2);
         if (!string.IsNullOrEmpty(str))
         {
             cz_reportbackup model = CallBLL.cz_reportbackup_bll.GetModel(str);
             string          str4  = "";
             string          str5  = "";
             if (model != null)
             {
                 str4 = model.get_truefilename().ToString().Replace(".db", ".rar");
                 str5 = model.get_folder();
                 this.DownloadFile(string.Format("/ReportBackupFolder/{0}/" + str4, str5));
             }
             else
             {
                 base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100051&url={0}&issuccess=1&isback=1", str3));
                 base.Response.End();
             }
         }
         else
         {
             base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100051&url={0}&issuccess=1&isback=1", str3));
             base.Response.End();
         }
     }
 }
Ejemplo n.º 6
0
        private void UpdateStatusChild()
        {
            string         uid       = LSRequest.qq("uid").Trim();
            string         str2      = LSRequest.qq("status").Trim();
            cz_users_child userByUID = CallBLL.cz_users_child_bll.GetUserByUID(uid);
            string         str3      = "";

            if (userByUID != null)
            {
                str3 = userByUID.get_status().ToString();
            }
            string str4 = this.Session["user_name"].ToString();

            if (!userByUID.get_parent_u_name().Equals(str4))
            {
                base.Response.End();
            }
            if (CallBLL.cz_users_child_bll.UpdateStatus(uid, str2))
            {
                if (FileCacheHelper.get_RedisStatOnline().Equals(1))
                {
                    base.UpdateIsOutOpt(userByUID.get_u_name());
                }
                else if (FileCacheHelper.get_RedisStatOnline().Equals(2))
                {
                    base.UpdateIsOutOptStack(userByUID.get_u_name());
                }
                base.user_change_status_log(uid, str3, true);
                base.Response.Write("1");
            }
            else
            {
                base.Response.Write("0");
            }
        }
Ejemplo n.º 7
0
        private void AddUser()
        {
            string str     = LSRequest.qq("nicker");
            string str2    = LSRequest.qq("userKind");
            string message = "";

            if (!base.ValidParamByUserEdit("filluser", ref message, null, this.lottrty_six, this.lottrty_kc))
            {
                base.noRightOptMsg(message);
            }
            if ((!str2.ToUpper().Equals("A") && !str2.ToUpper().Equals("B")) && !str2.ToUpper().Equals("C"))
            {
                base.Response.End();
            }
            cz_saleset_six _six = new cz_saleset_six();

            _six.set_u_id(this.uid);
            _six.set_u_nicker(str.Trim());
            _six.set_six_kind(str2.Trim().ToUpper());
            if (CallBLL.cz_saleset_six_bll.UpdateUser(_six))
            {
                base.successOptMsg("修改外補會員成功!");
            }
            else
            {
                base.noRightOptMsg("修改外補會員失敗!");
            }
        }
Ejemplo n.º 8
0
 private void ValidLmGroup(int lottery_type, DataTable lmGroupTable)
 {
     foreach (DataRow row in lmGroupTable.Rows)
     {
         string str  = row["play_id"].ToString();
         string s    = row["min_num_count"].ToString();
         string str3 = row["max_num_count"].ToString();
         string str5 = string.Format("({0})" + row["play_name"].ToString(), base.GetGameNameByID(lottery_type.ToString()));
         string str6 = LSRequest.qq(string.Concat(new object[] { lottery_type, "_", str, "_currentnumcount" }));
         if (!string.IsNullOrEmpty(str6))
         {
             if (!Utils.IsPureNumeric(str6.ToString()))
             {
                 base.Response.Write(base.ShowDialogBox(string.Format("繫統初始設定‘{0}’格式不正確!", str5), null, 400));
                 base.Response.End();
             }
             if (int.Parse(str6) < int.Parse(s))
             {
                 base.Response.Write(base.ShowDialogBox(string.Format("繫統初始設定‘{0}’設置當前連碼不能小於{1}!", str5, s), null, 400));
                 base.Response.End();
             }
             if (int.Parse(str6) > int.Parse(str3))
             {
                 base.Response.Write(base.ShowDialogBox(string.Format("繫統初始設定‘{0}’設置當前連碼不能大於{1}!", str5, str3), null, 400));
                 base.Response.End();
             }
         }
     }
 }
Ejemplo n.º 9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int num;

            this.masterId = base.q("masterId");
            if (string.IsNullOrEmpty(this.masterId))
            {
                num = 100;
                if (LSRequest.qq("id").Equals(num.ToString()))
                {
                    num           = 1;
                    this.masterId = num.ToString();
                }
                else
                {
                    this.masterId = 2.ToString();
                }
            }
            if (!string.IsNullOrEmpty(base.q("page")))
            {
                this.page = Convert.ToInt32(base.q("page"));
            }
            this.FiledValue = new string[] { this.masterId };
            this.userName   = HttpContext.Current.Session["user_name"].ToString();
            num             = 1;
            if (this.masterId.Equals(num.ToString()))
            {
                this.sixDataTable = CallBLL.cz_bet_six_bll.GetBetByPageList(this.userName, this.page - 1, this.pageSize, ref this.pageCount, ref this.dataCount).Tables[0];
            }
            else
            {
                this.kcDataTable = CallBLL.cz_bet_kc_bll.GetBetByPageList(this.userName, this.page - 1, this.pageSize, ref this.pageCount, ref this.dataCount).Tables[0];
            }
        }
Ejemplo n.º 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.masterId = base.q("masterId");
            this.op       = LSRequest.qq("op");
            DataSet list            = CallBLL.cz_lottery_bll.GetList();
            string  lotteryMasterID = base.GetLotteryMasterID(list.Tables[0]);

            if (string.IsNullOrEmpty(this.masterId))
            {
                this.masterId = lotteryMasterID.Split(new char[] { ',' })[0];
            }
            this.beginDate = LSRequest.qq("beginDate");
            this.userName  = HttpContext.Current.Session["user_name"].ToString();
            this.uModel    = this.Session[this.userName + "lottery_session_user_info"] as cz_userinfo_session;
            int num = 1;

            if (this.masterId.Equals(num.ToString()))
            {
                this.sixDataTable = CallBLL.cz_betold_six_bll.GetReportByWeek(this.userName, this.uModel.get_su_type(), this.beginDate);
            }
            else
            {
                this.kcDataTable = CallBLL.cz_betold_kc_bll.GetReportByWeek(this.userName, this.uModel.get_su_type(), this.beginDate, base.get_BetTime_KC());
            }
            CookieHelper.SetCookie("cookiesreportprev", "reportweek.aspx");
        }
Ejemplo n.º 11
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;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100078&url=&issuccess=1&isback=0&isopen=1");
                base.Response.End();
            }
            base.Permission_Aspx_ZJ(this.userModel, "po_2_3");
            this.lotteryDT = base.GetLotteryList();
            DataTable table = this.lotteryDT.DefaultView.ToTable(true, new string[] { "master_id" });

            for (int i = 0; i < table.Rows.Count; i++)
            {
                if (Convert.ToInt32(table.Rows[i][0]).Equals(1))
                {
                    this.lottrty_six = table.Rows[i][0].ToString();
                }
                else if (Convert.ToInt32(table.Rows[i][0]).Equals(2))
                {
                    this.lottrty_kc = table.Rows[i][0].ToString();
                }
            }
            if (LSRequest.qq("hdnadd").Equals("hdnadd"))
            {
                this.AddUser();
            }
        }
Ejemplo n.º 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = this.Session["user_name"].ToString();
            agent_userinfo_session _session = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session;

            this.skin      = _session.get_u_skin();
            this.lotteryId = base.AgentCurrentLotteryID;
            this.uid       = LSRequest.qq("uid");
            this.mId       = LSRequest.qq("mid");
            this.lotteryDT = base.GetLotteryList();
            int num = 1;

            if (this.mId.Equals(num.ToString()))
            {
                base.Response.Redirect(string.Format("/AutoLet/AutoLet_Show_six.aspx?uid={0}&mid={1}", this.uid, this.mId), true);
            }
            this.cz_users_model = CallBLL.cz_users_bll.GetUserInfoByUID(this.uid);
            if (this.cz_users_model == null)
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100038&url=&issuccess=1&isback=0&isopen=1");
                base.Response.End();
            }
            if (!this.cz_users_model.get_kc_allow_sale().Equals(1))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100036&url=&issuccess=1&isback=0&isopen=1");
                base.Response.End();
            }
            if (!_session.get_u_type().Equals("zj") && !base.IsUpperLowerLevels(this.cz_users_model.get_u_name(), _session.get_u_type(), _session.get_u_name()))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0&isopen=1");
                base.Response.End();
            }
            this.InitData();
        }
Ejemplo n.º 13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.userName = HttpContext.Current.Session["user_name"].ToString();
            this.uModel   = base.GetUserModelInfo;
            DataTable lotteryList = base.GetLotteryList();

            this.masterIDSplit = base.GetLotteryMasterID(lotteryList).Split(new char[] { ',' });
            CookieHelper.RemoveCookie("cookiesreportprev");
            string str = LSRequest.qq("id");

            if (string.IsNullOrEmpty(str))
            {
                this.masterId = this.masterIDSplit[0];
            }
            else
            {
                int num = 100;
                if (str.Equals(num.ToString()))
                {
                    this.masterId = "1";
                }
                else
                {
                    this.masterId = "2";
                }
            }
        }
Ejemplo n.º 14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.lotteryId = LSRequest.qq("lid");
            object obj2 = null;
            int    num  = 0x12;

            if (this.lotteryId.Equals(num.ToString()))
            {
                obj2 = base.VR_Open_Video(0x12);
            }
            else
            {
                num = 0x13;
                if (this.lotteryId.Equals(num.ToString()))
                {
                    obj2 = base.VR_Open_Video(0x13);
                }
                else
                {
                    base.Response.End();
                }
            }
            if (obj2 != null)
            {
                this.url = (string)((dynamic)((JObject)obj2)).data;
            }
        }
Ejemplo n.º 15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Response.Expires      = 0;
            base.Response.CacheControl = "no-cache";
            string str       = LSRequest.qq("action").Trim();
            string strResult = "";
            string str3      = str;

            if (str3 != null)
            {
                if (!(str3 == "userLogin"))
                {
                    if (str3 == "userLogout")
                    {
                        this.userLogout(ref strResult);
                    }
                    else if (str3 == "userEditPwd")
                    {
                        this.userEditPwd(ref strResult);
                    }
                    else if (str3 == "userLoginLog")
                    {
                        this.userLoginLog(ref strResult);
                    }
                }
                else
                {
                    this.userLogin(HttpContext.Current, ref strResult);
                }
            }
            base.OutJson(strResult);
        }
Ejemplo n.º 16
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;
            if (!this.userModel.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
            }
            if (((this.Session["child_user_name"] != null) && this.userModel.get_u_type().Trim().Equals("zj")) && !RuleJudge.ChildOperateValid(this.userModel, "po_3_4", HttpContext.Current))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if (!FileCacheHelper.get_ManageZJProfit().Equals("1") || (this.userModel.get_users_child_session() != null))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            this.page = LSRequest.qq("page");
            if (string.IsNullOrEmpty(this.page))
            {
                this.page = "1";
            }
            if (int.Parse(this.page) < 1)
            {
                this.page = "1";
            }
            this.dataTable = CallBLL.cz_zj_profit_set_log_bll.GetLogByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount);
        }
Ejemplo n.º 17
0
        private void AddUser()
        {
            string str     = LSRequest.qq("userNicker");
            string str2    = LSRequest.qq("userKind_six");
            string message = "";

            if (!base.ValidParamByUserEdit("filluser", ref message, null, this.lottrty_six, this.lottrty_kc))
            {
                base.Response.Write(base.ShowDialogBox(message, null, 400));
                base.Response.End();
            }
            if ((!str2.ToUpper().Equals("A") && !str2.ToUpper().Equals("B")) && !str2.ToUpper().Equals("C"))
            {
                base.Response.End();
            }
            cz_saleset_six _six = new cz_saleset_six();

            _six.set_u_id(this.uid);
            _six.set_u_nicker(str.Trim());
            _six.set_six_kind(str2.Trim().ToUpper());
            if (CallBLL.cz_saleset_six_bll.UpdateUser(_six))
            {
                base.Response.Write(base.ShowDialogBox("修改外補會員成功!", base.UserReturnBackUrl, 0));
                base.Response.End();
            }
            else
            {
                base.Response.Write(base.ShowDialogBox("修改外補會員失敗!", base.UserReturnBackUrl, 400));
                base.Response.End();
            }
        }
Ejemplo n.º 18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string str4 = LSRequest.qq("action");

            if (str4 != null)
            {
                if (!(str4 == "existname"))
                {
                    if (!(str4 == "updstatus"))
                    {
                        if (!(str4 == "updstatuschild"))
                        {
                            if (str4 == "get_hydu")
                            {
                                string str2 = LSRequest.qq("chktype");
                                string str3 = LSRequest.qq("sltuid");
                                this.AddHyDu(str2, str3);
                            }
                            return;
                        }
                        this.UpdateStatusChild();
                        return;
                    }
                }
                else
                {
                    this.ExistName();
                    return;
                }
                this.UpdateStatus();
            }
        }
Ejemplo n.º 19
0
 private void AddUser()
 {
     string str = LSRequest.qq("userName").ToLower().Trim();
     string str2 = LSRequest.qq("userNicker");
     string str3 = LSRequest.qq("userKind_six");
     string message = "";
     if (!base.ValidParamByUserAdd("filluser", ref message, null, this.lottrty_six, this.lottrty_kc))
     {
         base.noRightOptMsg(message);
     }
     if ((!str3.ToUpper().Equals("A") && !str3.ToUpper().Equals("B")) && !str3.ToUpper().Equals("C"))
     {
         base.Response.End();
     }
     cz_saleset_six model = new cz_saleset_six();
     model.set_u_id(Guid.NewGuid().ToString());
     model.set_u_name(str.Trim());
     model.set_u_nicker(str2.Trim());
     model.set_six_kind(str3.Trim().ToUpper());
     model.set_add_date(new DateTime?(DateTime.Now));
     string str5 = "";
     Dictionary<string, string> data = new Dictionary<string, string>();
     if (CallBLL.cz_saleset_six_bll.AddUser(model, ref str5))
     {
         CallBLL.cz_saleset_six_bll.GetSaleSetUser();
         string str6 = "";
         str6 = str6 + "{" + "\"saleuser\": {";
         DataTable saleSetUser = CallBLL.cz_saleset_six_bll.GetSaleSetUser();
         if (saleSetUser != null)
         {
             for (int i = 0; i < saleSetUser.Rows.Count; i++)
             {
                 if (i == 0)
                 {
                     str6 = str6 + string.Format("\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]);
                 }
                 else
                 {
                     str6 = str6 + string.Format(",\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]);
                 }
             }
         }
         str6 = str6 + "}}";
         base.user_add_fill_log(model);
         string text1 = "/Account/filluser_drawback.aspx?uid=" + str5 + "&isadd=1";
         StringBuilder builder = new StringBuilder();
         builder.Append("<script>");
         builder.AppendFormat(" top.aAllowSaleUserName = {0};", str6);
         builder.Append("</script>");
         data.Add("uname", model.get_u_name());
         data.Add("uid", model.get_u_id());
         base.successOptMsg("添加外補會員成功!", data);
     }
     else
     {
         base.noRightOptMsg("添加外補會員失敗!");
     }
 }
Ejemplo n.º 20
0
        private void InitSelect(string checkredio)
        {
            string str = "";

            if (string.IsNullOrEmpty(this.upuid))
            {
                string str2 = "";
                if (this.userModel.get_u_type().Equals("zj"))
                {
                    str2 = "";
                }
                else
                {
                    str2 = " and " + this.userModel.get_u_type() + "_name='" + this.userModel.get_u_name() + "'";
                }
                str = "select u_name from  cz_rate_six  where u_type='" + checkredio + "' " + str2;
            }
            else
            {
                cz_users userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(this.upuid);
                str = string.Format("select u_name from cz_rate_six where u_type='" + checkredio + "' and {0}_name='{1}'", userInfoByUID.get_u_type(), userInfoByUID.get_u_name());
            }
            DataTable userListByAddUser = CallBLL.cz_users_bll.GetUserListByAddUser(str, checkredio);

            if (userListByAddUser == null)
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100058&url=&issuccess=1&isback=0&isopen=0");
                base.Response.End();
            }
            for (int i = 0; i < userListByAddUser.Rows.Count; i++)
            {
                this.sltuid = LSRequest.qq("sltuid");
                if (string.IsNullOrEmpty(this.sltuid))
                {
                    if (i == 0)
                    {
                        this.up_userString = this.up_userString + string.Format("<option value=\"{0}\" selected=selected>{1}</option>", userListByAddUser.Rows[i]["u_id"].ToString(), userListByAddUser.Rows[i]["u_name"].ToString());
                        this.GetRateInfo(userListByAddUser.Rows[i]["u_id"].ToString(), checkredio);
                    }
                    else
                    {
                        this.up_userString = this.up_userString + string.Format("<option value=\"{0}\" >{1}</option>", userListByAddUser.Rows[i]["u_id"].ToString(), userListByAddUser.Rows[i]["u_name"].ToString());
                    }
                }
                else
                {
                    if (!string.IsNullOrEmpty(this.sltuid) && this.sltuid.ToUpper().Equals(userListByAddUser.Rows[i]["u_id"].ToString().ToUpper()))
                    {
                        this.up_userString = this.up_userString + string.Format("<option value=\"{0}\" selected=selected>{1}</option>", userListByAddUser.Rows[i]["u_id"].ToString(), userListByAddUser.Rows[i]["u_name"].ToString());
                        this.GetRateInfo(this.sltuid, checkredio);
                    }
                    if (!this.sltuid.ToUpper().Equals(userListByAddUser.Rows[i]["u_id"].ToString().ToUpper()))
                    {
                        this.up_userString = this.up_userString + string.Format("<option value=\"{0}\" >{1}</option>", userListByAddUser.Rows[i]["u_id"].ToString(), userListByAddUser.Rows[i]["u_name"].ToString());
                    }
                }
            }
        }
Ejemplo n.º 21
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;

            base.Permission_Aspx_ZJ(model, "po_2_1");
            base.Permission_Aspx_DL(model, "po_6_1");
            this.u_type = model.get_u_type().Trim();
            if (this.Session["child_user_name"] != null)
            {
                this.isCloneUser = true;
                this.cloneName   = this.Session["child_user_name"].ToString();
            }
            this.u_id = LSRequest.qq("uid");
            if (string.IsNullOrEmpty(this.u_id))
            {
                base.Response.End();
            }
            this.u_name = CallBLL.cz_users_bll.GetUserNameByUid(this.u_id, ref this.isChild);
            if (string.IsNullOrEmpty(this.u_name))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            if (CallBLL.cz_users_bll.GetUserInfoByUID(this.u_id) == null)
            {
                cz_users_child userByUID = CallBLL.cz_users_child_bll.GetUserByUID(this.u_id);
                if ((userByUID != null) && userByUID.get_parent_u_name().Equals(model.get_u_name()))
                {
                    if (!base.IsUpperLowerLevels(userByUID.get_parent_u_name(), model.get_u_type(), model.get_u_name()))
                    {
                        base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                        base.Response.End();
                    }
                }
                else
                {
                    base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                    base.Response.End();
                }
            }
            else if (!base.IsUpperLowerLevels(this.u_name, model.get_u_type(), model.get_u_name()))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
                base.Response.End();
            }
            this.page = LSRequest.qq("page");
            if (string.IsNullOrEmpty(this.page))
            {
                this.page = "1";
            }
            if (int.Parse(this.page) < 1)
            {
                this.page = "1";
            }
            this.dataTable  = CallBLL.cz_login_log_bll.get_log_table(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.u_name.Trim(), ref this.isAll);
            this.FiledValue = new string[] { this.u_id };
        }
Ejemplo n.º 22
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;
            if (!this.userModel.get_u_type().Trim().Equals("zj") && !this.userModel.get_u_type().Trim().Equals("fgs"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100035&url=&issuccess=1&isback=0&isopen=0");
                base.Response.End();
            }
            base.Permission_Aspx_ZJ(this.userModel, "po_2_1");
            base.Permission_Aspx_DL(this.userModel, "po_6_1");
            this.lotteryDT = base.GetLotteryList();
            DataTable table = this.lotteryDT.DefaultView.ToTable(true, new string[] { "master_id" });

            for (int i = 0; i < table.Rows.Count; i++)
            {
                if (Convert.ToInt32(table.Rows[i][0]).Equals(1))
                {
                    this.lottrty_six = table.Rows[i][0].ToString();
                }
                else if (Convert.ToInt32(table.Rows[i][0]).Equals(2))
                {
                    this.lottrty_kc = table.Rows[i][0].ToString();
                }
            }
            if (!string.IsNullOrEmpty(this.lottrty_six) && !string.IsNullOrEmpty(this.lottrty_kc))
            {
                this.tabState_six = "on";
                this.vl           = "3";
            }
            else if (!string.IsNullOrEmpty(this.lottrty_six) && string.IsNullOrEmpty(this.lottrty_kc))
            {
                this.tabState_six = "on";
                this.vl           = "1";
            }
            else if (string.IsNullOrEmpty(this.lottrty_six) && !string.IsNullOrEmpty(this.lottrty_kc))
            {
                this.tabState_kc = "on";
                this.vl          = "2";
            }
            this.sltuid = LSRequest.qq("sltuid");
            this.upuid  = LSRequest.qq("uid");
            if (string.IsNullOrEmpty(this.sltuid))
            {
                this.sltuid = this.upuid;
            }
            this.InitSelect();
            if (!string.IsNullOrEmpty(this.u_name) && !base.IsUpperLowerLevels(this.u_name, this.userModel.get_u_type(), this.userModel.get_u_name()))
            {
                base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0&isopen=0");
                base.Response.End();
            }
            if (LSRequest.qq("hdnadd").Equals("hdnadd") && !string.IsNullOrEmpty(this.u_name))
            {
                this.AddUser();
            }
        }
Ejemplo n.º 23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Response.Buffer          = true;
        base.Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1.0);
        base.Response.Expires         = 0;
        base.Response.CacheControl    = "no-cache";
        base.Response.AddHeader("Pragma", "No-Cache");
        base.IsUserLoginByMobile();
        this.findDate  = LSRequest.qq("findDate");
        this.lid       = LSRequest.qq("lid");
        this.dataTitle = "(⑥)注單明細 - 日期:" + this.findDate;
        this.userName  = HttpContext.Current.Session["user_name"].ToString();
        string str = base.GetUserModelInfo.get_su_type().ToString().Trim();

        if (str != null)
        {
            if (!(str == "dl"))
            {
                if (str == "zd")
                {
                    this.u_drawback = "dl_drawback";
                }
                else if (str == "gd")
                {
                    this.u_drawback = "zd_drawback";
                }
                else if (str == "fgs")
                {
                    this.u_drawback = "gd_drawback";
                }
            }
            else
            {
                this.u_drawback = "hy_drawback";
            }
        }
        this.dataTable = CallBLL.cz_betold_six_bll.Phone_GetReportByPageList(this.userName, this.page - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.findDate + " 08:00:00", this.findDate + " 23:59:59").Tables[0];
        if (this.dataCount == 0)
        {
            this.cssdisplay = "display:none;";
        }
        else
        {
            this.cssdisplay = "display:block;";
        }
        DataTable table = CallBLL.cz_bet_kc_bll.Phone_GetBetByUserName(this.userName);

        if (table.Rows.Count > 0)
        {
            this.count_order = table.Rows[0][0].ToString();
            this.sum_money   = table.Rows[0][1].ToString();
        }
        if (string.IsNullOrEmpty(this.sum_money))
        {
            this.sum_money = "0";
        }
    }
Ejemplo n.º 24
0
 protected void Page_Load(object sender, EventArgs e)
 {
     base.Response.Expires = 0;
     base.IsUserLoginByMobile();
     this.findDate    = LSRequest.qq("findDate");
     this.dataTitle   = "(快)分類明細 - 日期:" + this.findDate;
     this.userName    = HttpContext.Current.Session["user_name"].ToString();
     this.kcDataTable = CallBLL.cz_betold_kc_bll.GetReportByWeek(this.userName, base.GetUserModelInfo.get_su_type(), this.findDate, base.get_BetTime_KC());
 }
Ejemplo n.º 25
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.lotteryDT = base.GetLotteryList();
     this.InitLmGroup();
     if (LSRequest.qq("submitHdn").Equals("submit"))
     {
         this.UpdateLmGroup();
     }
 }
Ejemplo n.º 26
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string str = HttpContext.Current.Session["user_name"].ToString();
        cz_userinfo_session getUserModelInfo = base.GetUserModelInfo;
        string    str2          = LSRequest.qq("ispay");
        string    str3          = LSRequest.qq("orderid");
        DataTable betByOrdernum = CallBLL.cz_bet_kc_bll.GetBetByOrdernum(str3, str2);

        if (betByOrdernum != null)
        {
            string str4  = betByOrdernum.Rows[0]["play_id"].ToString();
            string str5  = betByOrdernum.Rows[0]["odds_id"].ToString();
            string str6  = betByOrdernum.Rows[0]["play_name"].ToString();
            string str7  = betByOrdernum.Rows[0]["bet_group"].ToString();
            string str8  = betByOrdernum.Rows[0]["bet_wt"].ToString();
            string odds  = betByOrdernum.Rows[0]["odds"].ToString();
            string str10 = betByOrdernum.Rows[0]["phase_id"].ToString();
            string str11 = betByOrdernum.Rows[0]["lottery_type"].ToString();
            this.is_payment = betByOrdernum.Rows[0]["is_payment"].ToString();
            string s     = betByOrdernum.Rows[0]["amount"].ToString();
            string str13 = betByOrdernum.Rows[0]["unit_cnt"].ToString();
            s = (double.Parse(s) / double.Parse(str13)).ToString();
            double drawback = 0.0;
            string str14    = getUserModelInfo.get_su_type();
            if (str14 != null)
            {
                if (!(str14 == "dl"))
                {
                    if (str14 == "zd")
                    {
                        drawback = double.Parse(betByOrdernum.Rows[0]["dl_drawback"].ToString());
                    }
                    else if (str14 == "gd")
                    {
                        drawback = double.Parse(betByOrdernum.Rows[0]["zd_drawback"].ToString());
                    }
                    else if (str14 == "fgs")
                    {
                        drawback = double.Parse(betByOrdernum.Rows[0]["gd_drawback"].ToString());
                    }
                }
                else
                {
                    drawback = double.Parse(betByOrdernum.Rows[0]["hy_drawback"].ToString());
                }
            }
            drawback = double.Parse(betByOrdernum.Rows[0]["amount"].ToString()) * (drawback / 100.0);
            if (this.is_payment.Equals("1"))
            {
                this.groupString = this.GetBetGroupStringPaymentTrue(str11, str10, str4, str5, str6, str7, str8, odds, s, drawback);
            }
            else
            {
                this.groupString = this.GetBetGroupStringPaymentFalse(str4, str5, str6, str7, str8, odds, s);
            }
        }
    }
Ejemplo n.º 27
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;

            if (!model.get_u_type().Trim().Equals("zj"))
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0");
            }
            base.Permission_Aspx_ZJ(model, "po_3_1");
            if (base.IsChildSync())
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100080&url=&issuccess=1&isback=0");
            }
            string       s          = LSRequest.qq("pid");
            string       str3       = "/LotteryPeriod/AwardPeriod.aspx?lid=100";
            cz_phase_six phaseModel = CallBLL.cz_phase_six_bll.GetPhaseModel(int.Parse(s));

            if (!phaseModel.get_is_closed().Equals(1))
            {
                base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100070&url={0}&issuccess=1&isback=1", base.Server.UrlDecode(str3)));
            }
            if (!phaseModel.get_is_payment().Equals(1))
            {
                base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100070&url={0}&issuccess=1&isback=1", base.Server.UrlDecode(str3)));
            }
            if (CallBLL.cz_phase_six_bll.OpenData(s))
            {
                string str4 = null;
                if (model.get_users_child_session() != null)
                {
                    str4 = model.get_users_child_session().get_u_name();
                }
                string             str5 = "";
                string             str6 = "";
                cz_lotteryopen_log _log = new cz_lotteryopen_log();
                _log.set_phase_id(phaseModel.get_p_id());
                _log.set_phase(phaseModel.get_phase());
                _log.set_u_name(model.get_u_name());
                _log.set_children_name(str4);
                _log.set_action("開放數據");
                _log.set_old_val(str5);
                _log.set_new_val(str6);
                _log.set_ip(LSRequest.GetIP());
                _log.set_add_time(DateTime.Now);
                _log.set_note(string.Format("【本期編號:{0}】開放數據", _log.get_phase()));
                _log.set_type_id(0);
                _log.set_lottery_id(100);
                CallBLL.cz_lotteryopen_log_bll.Insert(_log);
                base.Response.Write(base.ShowDialogBox("開放數據成功!", string.Format("LotteryPeriod/AwardPeriod.aspx?lid={0}", 100), 0));
            }
            else
            {
                base.Response.Redirect(string.Format("../MessagePage.aspx?code=u100070&url={0}&issuccess=1&isback=1", base.Server.UrlDecode(str3)));
            }
        }
Ejemplo n.º 28
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.º 29
0
        private void UpdateStatus()
        {
            string   uid           = LSRequest.qq("uid").Trim();
            string   str2          = LSRequest.qq("status").Trim();
            cz_users userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(uid);
            string   str3          = "";

            if (userInfoByUID != null)
            {
                str3 = userInfoByUID.get_a_state().ToString();
            }
            if (userInfoByUID == null)
            {
                base.Response.Redirect("../MessagePage.aspx?code=u100034&url=&issuccess=1&isback=0&isopen=1");
                base.Response.End();
            }
            if ((!str2.Equals("0") && !str2.Equals("1")) && !str2.Equals("2"))
            {
                base.Response.End();
            }
            string rateName = this.Session["user_name"].ToString();
            agent_userinfo_session model = this.Session[rateName + "lottery_session_user_info"] as agent_userinfo_session;

            base.Permission_Aspx_ZJ(model, "po_2_1");
            base.Permission_Aspx_DL(model, "po_6_1");
            if (model.get_u_name().Equals(userInfoByUID.get_u_name()))
            {
                base.Response.End();
            }
            if (!base.IsUnderLing(userInfoByUID.get_u_name(), rateName, model.get_u_type().Trim()))
            {
                base.Response.End();
            }
            if (!base.IsUpperLowerLevels(userInfoByUID.get_u_name(), model.get_u_type(), model.get_u_name()))
            {
                base.Response.End();
            }
            if (CallBLL.cz_users_bll.UpdateStatus(uid, str2))
            {
                if (FileCacheHelper.get_RedisStatOnline().Equals(1))
                {
                    base.UpdateIsOutOpts(userInfoByUID.get_u_name());
                }
                else if (FileCacheHelper.get_RedisStatOnline().Equals(2))
                {
                    base.UpdateIsOutOptsStack(userInfoByUID.get_u_name());
                }
                base.user_change_status_log(uid, str3, false);
                base.Response.Write("1");
            }
            else
            {
                base.Response.Write("0");
            }
        }
Ejemplo n.º 30
0
        private void AddUser()
        {
            LSRequest.qq("userName");
            string str     = LSRequest.qq("userPassword");
            string str2    = LSRequest.qq("userNicker");
            string str3    = LSRequest.qq("qx");
            string str4    = LSRequest.qq("unlock");
            string message = "";

            if (!base.ValidParamByUserEdit("child", ref message, null, null, null))
            {
                base.Response.Write(base.ShowDialogBox(message, null, 400));
                base.Response.End();
            }
            if (!string.IsNullOrEmpty(str.Trim()) && !Regexlib.IsValidPassword(str.Trim(), base.get_GetPasswordLU()))
            {
                if (base.get_GetPasswordLU().Equals("1"))
                {
                    base.Response.Write(base.ShowDialogBox("密碼要8-20位,且必需包含大寫字母、小寫字母和数字!", null, 400));
                }
                else
                {
                    base.Response.Write(base.ShowDialogBox("密碼要8-20位,且必需包含字母、和数字!", null, 400));
                }
                base.Response.End();
            }
            cz_users_child _child = new cz_users_child();

            _child.set_u_id(this.u_id.ToString().ToUpper());
            _child.set_u_nicker(str2.Trim());
            if (!string.IsNullOrEmpty(str4) && (str4 == "1"))
            {
                _child.set_retry_times(0);
            }
            if (!string.IsNullOrEmpty(str))
            {
                string ramSalt = Utils.GetRamSalt(6);
                _child.set_u_psw(DESEncrypt.EncryptString(str, ramSalt));
                _child.set_salt(ramSalt);
            }
            _child.set_permissions_name(str3.Trim());
            cz_users_child userByUID = CallBLL.cz_users_child_bll.GetUserByUID(_child.get_u_id());

            if (CallBLL.cz_users_child_bll.UpdateUser(_child))
            {
                base.user_edit_children_log(userByUID, _child);
                base.Response.Write(base.ShowDialogBox("修改子帳號成功!", base.UserReturnBackUrl, 0));
                base.Response.End();
            }
            else
            {
                base.Response.Write(base.ShowDialogBox("修改子帳號失敗!", base.UserReturnBackUrl, 400));
                base.Response.End();
            }
        }