protected void Page_Load(object sender, EventArgs e) { string str = this.Session["user_name"].ToString(); this.login_name = str; this.master_name = str; agent_userinfo_session model = this.Session[str + "lottery_session_user_info"] as agent_userinfo_session; base.Permission_Aspx_DL(model, "po_5_2"); this.zj_name = model.get_zjname().Trim(); 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(); } if (!this.u_type.Equals("zj")) { this.levelList.Add(model.get_fgs_name()); this.levelList.Add(model.get_zd_name()); this.levelList.Add(model.get_gd_name()); this.levelList.Add(model.get_dl_name()); } this.u_id = LSRequest.qq("uid"); if (string.IsNullOrEmpty(this.u_id)) { this.u_id = model.get_u_id(); } if (string.IsNullOrEmpty(this.u_id)) { base.Response.End(); } this.backUrl = string.Format("", new object[0]); this.cz_users_model = CallBLL.cz_users_bll.GetUserInfoByUID(this.u_id); if (string.IsNullOrEmpty(this.cz_users_model.get_u_name())) { base.Response.Redirect("/MessagePage.aspx?code=u100014&url=&issuccess=1&isback=0"); base.Response.End(); } if (!base.IsUpperLowerLevels(this.cz_users_model.get_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.mId = LSRequest.qq("mid"); this.lotteryId = LSRequest.qq("lid"); if (string.IsNullOrEmpty(this.lotteryId)) { this.lotteryId = ""; } int num = 1; if (this.mId.Equals(num.ToString())) { this.lotteryId = 100.ToString(); } this.lotteryDT = base.GetLotteryList(); base.IsLotteryExistForSysLog(this.lotteryId, "u100032", "1", ""); string lotteryId = ""; ArrayList list = new ArrayList(); if (this.lotteryId == "") { foreach (DataRow row in this.lotteryDT.Rows) { int num3 = 100; if (!row["id"].ToString().Equals(num3.ToString())) { list.Add(row["id"].ToString()); } } lotteryId = string.Join(",", list.ToArray()); } else { lotteryId = this.lotteryId; } 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_autosale_log_bll.get_log_table(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.cz_users_model.get_u_name().Trim(), lotteryId, ref this.isAll); this.FiledValue = new string[] { this.u_id, this.lotteryId }; int num4 = 100; if (this.lotteryId.Equals(num4.ToString())) { this.backUrl = string.Format("/AutoLet/AutoLet_Show_six.aspx?uid={0}&mid={1}", this.u_id, 1); } else { this.backUrl = string.Format("/AutoLet/AutoLet_Show_kc.aspx?uid={0}&mid={1}", this.u_id, 2); } }
protected void Page_Load(object sender, EventArgs e) { this.userName = this.Session["user_name"].ToString(); this.userModel = this.Session[this.userName + "lottery_session_user_info"] as agent_userinfo_session; base.Permission_Aspx_ZJ(this.userModel, "po_1_1"); base.Permission_Aspx_DL(this.userModel, "po_5_1"); if (LSRequest.qq("hdnCreate").Equals("create")) { this.rdoType = LSRequest.qq("rdoType"); this.rdoDown = LSRequest.qq("rdoDown"); this.rdoDetailCount = LSRequest.qq("rdoDetailCount"); this.u_type = this.userModel.get_u_type().Trim(); string str2 = this.u_type; if (str2 != null) { if (!(str2 == "zj")) { if (str2 == "fgs") { this.levelName = "fgs_name"; this.drawback = "gd_drawback"; } else if (str2 == "gd") { this.levelName = "gd_name"; this.drawback = "zd_drawback"; } else if (str2 == "zd") { this.levelName = "zd_name"; this.drawback = "dl_drawback"; } else if (str2 == "dl") { this.levelName = "dl_name"; this.drawback = "hy_drawback"; } } else { this.drawback = "fgs_drawback"; } } if (this.rdoDown.Equals("1")) { if (this.userModel.get_u_type().Equals("zj") || this.userModel.get_u_type().Equals("fgs")) { if (this.rdoDetailCount.Equals("1")) { this.CreateTM(); } else { this.CreateCountTM(); } } else { this.CreateCountTM(); } } else if (this.rdoDown.Equals("2")) { this.CreateFTM(); } else if (this.rdoDown.Equals("3")) { this.CreateLM(); } else { base.Response.Write(base.ShowDialogBox("下載項错误!", null, 400)); base.Response.End(); } } }
protected void Page_Load(object sender, EventArgs e) { this.uModel = this.Session[this.Session["user_name"] + "lottery_session_user_info"] as agent_userinfo_session; base.Permission_Aspx_ZJ(this.uModel, "po_4_1"); base.Permission_Aspx_DL(this.uModel, "po_7_1"); }
protected void Page_Load(object sender, EventArgs e) { this.uModel = this.Session[this.Session["user_name"] + "lottery_session_user_info"] as agent_userinfo_session; base.Permission_Aspx_ZJ(this.uModel, "po_1_1"); base.Permission_Aspx_DL(this.uModel, "po_5_1"); string str3 = this.uModel.get_u_type(); if (str3 != null) { if (!(str3 == "zj")) { if (str3 == "fgs") { this.lb_step = 4; } else if (str3 == "gd") { this.lb_step = 3; } else if (str3 == "zd") { this.lb_step = 2; } else if (str3 == "dl") { this.lb_step = 1; } } else { this.lb_step = 5; } } this.page = LSRequest.qq("page"); if (string.IsNullOrEmpty(this.page)) { this.page = "1"; } if (int.Parse(this.page) < 1) { this.page = "1"; } this.phaseid = LSRequest.qq("phaseid"); this.oddsid = LSRequest.qq("oddsid"); this.playid = LSRequest.qq("playid"); this.lid = LSRequest.qq("lid"); this.number = LSRequest.qq("number"); this.isab = LSRequest.qq("isab"); this.atz = LSRequest.qq("atz"); if (string.IsNullOrEmpty(this.atz)) { this.atz = "1"; } if (!string.IsNullOrEmpty(this.number) && (int.Parse(this.number) < 10)) { this.number = "0" + int.Parse(this.number); } string str = this.uModel.get_u_type(); string str2 = this.uModel.get_u_name(); if (this.uModel.get_u_type().Equals("fgs") && ((this.uModel.get_allow_view_report() == 1) && int.Parse(this.atz).Equals(2))) { str = "zj"; str2 = this.uModel.get_zjname(); this.lb_step = 5; } this.dataTable = CallBLL.cz_bet_six_bll.GetBetViewBillPageList(str, str2, this.playid, this.oddsid, int.Parse(this.phaseid), Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.number, this.isab); this.FiledValue = new string[] { this.phaseid, this.oddsid, this.playid, this.number, this.isab, this.atz }; }
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(); } }
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_ZJ(model, "po_3_1"); this.lotteryId = LSRequest.qq("lid"); this.maxpid = LSRequest.qq("maxpid"); this.numTable = base.q("tabletype"); if (string.IsNullOrEmpty(this.numTable)) { string cookie = CookieHelper.GetCookie("PKBJL_TableType_Record_Current_Agent"); if (string.IsNullOrEmpty(cookie)) { cookie = "p1"; } this.numTable = Utils.GetPKBJL_NumTable(cookie); } this.lotteryDT = base.GetLotteryList(); base.IsLotteryExist(this.lotteryId, "u100032", "1", ""); this.page = LSRequest.qq("page"); if (string.IsNullOrEmpty(this.page)) { this.page = "1"; } if (int.Parse(this.page) < 1) { this.page = "1"; } if (string.IsNullOrEmpty(LSRequest.qq("issearch"))) { this.issearch = "0"; } else { this.issearch = LSRequest.qq("issearch"); } this.beginTime = LSRequest.qq("begintime"); this.endTime = LSRequest.qq("endtime"); this.search = LSRequest.qq("searchHidden"); if (this.search.Equals("search")) { this.issearch = "1"; this.maxpid = ""; this.lotteryId = LSRequest.qq("lid"); this.beginTime = LSRequest.qq("txtbegintime"); this.endTime = LSRequest.qq("txtendtime"); this.url = string.Format("lid={0}&begintime={1}&endtime={2}&issearch={3}&tabletype={4}", new object[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }); string url = string.Format("/LotteryPeriod/AwardPeriod.aspx?{0}", this.url); base.Response.Write(base.LocationHref(url)); base.Response.End(); } this.SetDate(); switch (Convert.ToInt32(this.lotteryId)) { case 0: { DataSet set2 = CallBLL.cz_phase_kl10_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set2 != null) && (set2.Tables.Count > 0)) && (set2.Tables[0].Rows.Count > 0)) { this.dataTable = set2.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 1: { DataSet set3 = CallBLL.cz_phase_cqsc_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set3 != null) && (set3.Tables.Count > 0)) && (set3.Tables[0].Rows.Count > 0)) { this.dataTable = set3.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 2: { DataSet set4 = CallBLL.cz_phase_pk10_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set4 != null) && (set4.Tables.Count > 0)) && (set4.Tables[0].Rows.Count > 0)) { this.dataTable = set4.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 3: { DataSet set5 = CallBLL.cz_phase_xync_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set5 != null) && (set5.Tables.Count > 0)) && (set5.Tables[0].Rows.Count > 0)) { this.dataTable = set5.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 4: { DataSet set6 = CallBLL.cz_phase_jsk3_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set6 != null) && (set6.Tables.Count > 0)) && (set6.Tables[0].Rows.Count > 0)) { this.dataTable = set6.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 5: { DataSet set7 = CallBLL.cz_phase_kl8_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set7 != null) && (set7.Tables.Count > 0)) && (set7.Tables[0].Rows.Count > 0)) { this.dataTable = set7.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 6: { DataSet set8 = CallBLL.cz_phase_k8sc_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set8 != null) && (set8.Tables.Count > 0)) && (set8.Tables[0].Rows.Count > 0)) { this.dataTable = set8.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 7: { DataSet set9 = CallBLL.cz_phase_pcdd_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set9 != null) && (set9.Tables.Count > 0)) && (set9.Tables[0].Rows.Count > 0)) { this.dataTable = set9.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 8: { DataSet set11 = CallBLL.cz_phase_pkbjl_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable); if (((set11 != null) && (set11.Tables.Count > 0)) && (set11.Tables[0].Rows.Count > 0)) { this.dataTable = set11.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 9: { DataSet set10 = CallBLL.cz_phase_xyft5_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set10 != null) && (set10.Tables.Count > 0)) && (set10.Tables[0].Rows.Count > 0)) { this.dataTable = set10.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 10: { DataSet set12 = CallBLL.cz_phase_jscar_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set12 != null) && (set12.Tables.Count > 0)) && (set12.Tables[0].Rows.Count > 0)) { this.dataTable = set12.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 11: { DataSet set13 = CallBLL.cz_phase_speed5_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set13 != null) && (set13.Tables.Count > 0)) && (set13.Tables[0].Rows.Count > 0)) { this.dataTable = set13.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 12: { DataSet set15 = CallBLL.cz_phase_jspk10_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set15 != null) && (set15.Tables.Count > 0)) && (set15.Tables[0].Rows.Count > 0)) { this.dataTable = set15.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 13: { DataSet set14 = CallBLL.cz_phase_jscqsc_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set14 != null) && (set14.Tables.Count > 0)) && (set14.Tables[0].Rows.Count > 0)) { this.dataTable = set14.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 14: { DataSet set16 = CallBLL.cz_phase_jssfc_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set16 != null) && (set16.Tables.Count > 0)) && (set16.Tables[0].Rows.Count > 0)) { this.dataTable = set16.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 15: { DataSet set17 = CallBLL.cz_phase_jsft2_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set17 != null) && (set17.Tables.Count > 0)) && (set17.Tables[0].Rows.Count > 0)) { this.dataTable = set17.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 0x10: { DataSet set18 = CallBLL.cz_phase_car168_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set18 != null) && (set18.Tables.Count > 0)) && (set18.Tables[0].Rows.Count > 0)) { this.dataTable = set18.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 0x11: { DataSet set19 = CallBLL.cz_phase_ssc168_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set19 != null) && (set19.Tables.Count > 0)) && (set19.Tables[0].Rows.Count > 0)) { this.dataTable = set19.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 0x12: { DataSet set20 = CallBLL.cz_phase_vrcar_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set20 != null) && (set20.Tables.Count > 0)) && (set20.Tables[0].Rows.Count > 0)) { this.dataTable = set20.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 0x13: { DataSet set21 = CallBLL.cz_phase_vrssc_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set21 != null) && (set21.Tables.Count > 0)) && (set21.Tables[0].Rows.Count > 0)) { this.dataTable = set21.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 20: { DataSet set22 = CallBLL.cz_phase_xyftoa_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set22 != null) && (set22.Tables.Count > 0)) && (set22.Tables[0].Rows.Count > 0)) { this.dataTable = set22.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 0x15: { DataSet set23 = CallBLL.cz_phase_xyftsg_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set23 != null) && (set23.Tables.Count > 0)) && (set23.Tables[0].Rows.Count > 0)) { this.dataTable = set23.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 0x16: { DataSet set24 = CallBLL.cz_phase_happycar_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set24 != null) && (set24.Tables.Count > 0)) && (set24.Tables[0].Rows.Count > 0)) { this.dataTable = set24.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } case 100: { DataSet set = CallBLL.cz_phase_six_bll.GetPhaseByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.beginTime, this.endTime, this.issearch, this.maxpid); if (((set != null) && (set.Tables.Count > 0)) && (set.Tables[0].Rows.Count > 0)) { this.dataTable = set.Tables[0]; if (string.IsNullOrEmpty(this.maxpid)) { this.maxpid = this.dataTable.Rows[0]["p_id"].ToString(); } this.SixMaxPID = CallBLL.cz_phase_six_bll.GetCurrentPhase().get_p_id().ToString(); } this.FiledValue = new string[] { this.lotteryId, this.beginTime, this.endTime, this.issearch, this.maxpid, this.numTable }; return; } } }
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")) && (!this.userModel.get_u_type().Trim().Equals("gd") && !this.userModel.get_u_type().Trim().Equals("zd"))) && !this.userModel.get_u_type().Trim().Equals("dl")) { base.Response.Redirect("../Quit.aspx", true); 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"; } else if (!string.IsNullOrEmpty(this.lottrty_six) && string.IsNullOrEmpty(this.lottrty_kc)) { this.tabState_six = "on"; } else if (string.IsNullOrEmpty(this.lottrty_six) && !string.IsNullOrEmpty(this.lottrty_kc)) { this.tabState_kc = "on"; } this.r_u_id = LSRequest.qq("uid"); if (!Utils.IsGuid(this.r_u_id)) { base.Response.Redirect("../MessagePage.aspx?code=u100079&url=&issuccess=1&isback=0&isopen=1"); base.Response.End(); } cz_users userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(this.r_u_id, "hy"); if (userInfoByUID == null) { base.Response.Redirect("../MessagePage.aspx?code=u100079&url=&issuccess=1&isback=0&isopen=1"); base.Response.End(); } this.is_locked = base.is_locked_user(userInfoByUID.get_retry_times().ToString()); this.InitData(); if (this.d_u_name.Equals(this.userModel.get_u_name())) { base.Response.Redirect("../MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0&isopen=1"); base.Response.End(); } if (!base.IsUpperLowerLevels(this.d_u_name, this.userModel.get_u_type(), this.userModel.get_u_name())) { base.Response.Redirect("../MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0&isopen=1"); base.Response.End(); } if (LSRequest.qq("hdnadd").Equals("hdnadd") && !string.IsNullOrEmpty(this.d_u_name)) { if (!base.IsCreditLock(this.d_u_name)) { base.Response.Write(base.ShowDialogBox("系統繁忙,請稍後!", null, 400)); base.Response.End(); } this.AddUser(); base.DeleteCreditLock(this.d_u_name); } }
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_5"); this.lotteryID = LSRequest.qq("lid"); this.finddate = LSRequest.qq("finddate"); this.playid = LSRequest.qq("playid"); this.isbh = LSRequest.qq("isbh"); this.usertype = LSRequest.qq("usertype"); this.username = LSRequest.qq("username"); this.amountMin = LSRequest.qq("amountmin"); this.amountMax = LSRequest.qq("amountmax"); this.resultMin = LSRequest.qq("resultmin"); this.resultMax = LSRequest.qq("resultmax"); this.page = Convert.ToInt32("0" + base.q("page")); this.page = (this.page == 0) ? 1 : this.page; if (this.page < 1) { this.page = 1; } List <SqlParameter> list = new List <SqlParameter>(); StringBuilder builder = new StringBuilder(); if (!string.IsNullOrEmpty(this.playid) && !this.playid.Equals("0")) { builder.AppendFormat(" and play_id=@play_id ", this.playid); SqlParameter parameter = new SqlParameter("@play_id", SqlDbType.NVarChar) { Value = this.playid }; list.Add(parameter); } string usertype = this.usertype; if (usertype != null) { if (!(usertype == "5")) { if (usertype == "4") { if (!string.IsNullOrEmpty(this.username)) { builder.AppendFormat(" and dl_name=@dl_name ", this.username); SqlParameter parameter3 = new SqlParameter("@dl_name", SqlDbType.NVarChar) { Value = this.username }; list.Add(parameter3); } } else if (usertype == "3") { if (!string.IsNullOrEmpty(this.username)) { builder.AppendFormat(" and zd_name=@zd_name ", this.username); SqlParameter parameter4 = new SqlParameter("@zd_name", SqlDbType.NVarChar) { Value = this.username }; list.Add(parameter4); } } else if (usertype == "2") { if (!string.IsNullOrEmpty(this.username)) { builder.AppendFormat(" and gd_name=@gd_name ", this.username); SqlParameter parameter5 = new SqlParameter("@gd_name", SqlDbType.NVarChar) { Value = this.username }; list.Add(parameter5); } } else if ((usertype == "1") && !string.IsNullOrEmpty(this.username)) { builder.AppendFormat(" and fgs_name=@fgs_name ", this.username); SqlParameter parameter6 = new SqlParameter("@fgs_name", SqlDbType.NVarChar) { Value = this.username }; list.Add(parameter6); } } else if (!string.IsNullOrEmpty(this.username)) { builder.AppendFormat(" and u_name=@u_name ", this.username); SqlParameter parameter2 = new SqlParameter("@u_name", SqlDbType.NVarChar) { Value = this.username }; list.Add(parameter2); } } builder.AppendFormat(" and bet_time between @beginTime and @endTime ", new object[0]); DateTime time = Convert.ToDateTime(this.finddate); DateTime now = DateTime.Now; now = time.AddDays(1.0); string s = this.finddate + " 06:30:00"; string str3 = now.ToString("yyyy-MM-dd") + " 06:30:00"; SqlParameter item = new SqlParameter("@beginTime", SqlDbType.NVarChar) { Value = s }; list.Add(item); SqlParameter parameter12 = new SqlParameter("@endTime", SqlDbType.NVarChar) { Value = str3 }; list.Add(parameter12); if (!string.IsNullOrEmpty(this.amountMin)) { builder.AppendFormat(" and amount >=@amountMin ", new object[0]); SqlParameter parameter7 = new SqlParameter("@amountMin", SqlDbType.Float) { Value = this.amountMin }; list.Add(parameter7); } if (!string.IsNullOrEmpty(this.amountMax)) { builder.AppendFormat(" and amount <=@amountMax ", new object[0]); SqlParameter parameter8 = new SqlParameter("@amountMax", SqlDbType.Float) { Value = this.amountMax }; list.Add(parameter8); } if (!string.IsNullOrEmpty(this.resultMin)) { builder.AppendFormat(" and profit >=@resultMin ", new object[0]); SqlParameter parameter9 = new SqlParameter("@resultMin", SqlDbType.Float) { Value = this.resultMin }; list.Add(parameter9); } if (!string.IsNullOrEmpty(this.resultMax)) { builder.AppendFormat(" and profit <=@resultMax ", new object[0]); SqlParameter parameter10 = new SqlParameter("@resultMax", SqlDbType.Float) { Value = this.resultMax }; list.Add(parameter10); } if (this.isbh.Equals("0")) { builder.Append(" and isnull(sale_type,'')='' "); } else if (this.isbh.Equals("1")) { builder.Append(" and sale_type = 1 "); } string str4 = ""; int num = 100; if (this.lotteryID.Equals(num.ToString())) { str4 = "cz_betold_six with(NOLOCK) "; DateTime time3 = DateTime.Now; time3.ToString("yyyy-MM-dd"); if ((time3 >= DateTime.Parse(s)) && (time3 <= DateTime.Parse(str3))) { str4 = "cz_bet_six with(NOLOCK) "; } this.dataTable_six = CallBLL.cz_bet_six_bll.BillSearch(this.lotteryID, this.page - 1, this.pageSize, ref this.pageCount, ref this.dataCount, builder.ToString(), str4, list); } else { str4 = "cz_betold_kc with(NOLOCK) "; DateTime time4 = DateTime.Now; time4.ToString("yyyy-MM-dd"); if ((time4 >= DateTime.Parse(s)) && (time4 <= DateTime.Parse(str3))) { str4 = "cz_bet_kc with(NOLOCK) "; } this.dataTable_kc = CallBLL.cz_bet_kc_bll.BillSearch(this.lotteryID, this.page - 1, this.pageSize, ref this.pageCount, ref this.dataCount, builder.ToString(), str4, list); } this.FiledValue = new string[] { this.lotteryID, this.finddate, this.playid, this.isbh, this.usertype, this.username, this.amountMin, this.amountMax, this.resultMin, this.resultMax }; }
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().Equals("fgs")) { base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0"); base.Response.End(); } if (model.get_u_type().Equals("fgs") && (model.get_six_op_odds().Equals(1) || model.get_kc_op_odds().Equals(1))) { base.Permission_Aspx_DL(model, "po_5_3"); } else { base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0"); base.Response.End(); } string str2 = model.get_u_name(); 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.lotteryId = LSRequest.qq("lid"); if (string.IsNullOrEmpty(this.lotteryId)) { this.lotteryId = ""; } this.phaseNum = LSRequest.qq("phaseNum"); if (string.IsNullOrEmpty(this.phaseNum)) { this.phaseNum = ""; } this.lotteryDT = base.GetLotteryList(); base.IsLotteryExistForSysLog(this.lotteryId, "u100032", "1", ""); if (this.lotteryId == "") { if (model.get_six_op_odds().Equals(1)) { this.lotteryId = 100.ToString(); } else { this.lotteryId = this.lotteryDT.Select(string.Format(" id<>{0} ", 100))[0]["id"].ToString(); } } else { if (!model.get_six_op_odds().Equals(1)) { int num2 = 100; if (this.lotteryId == num2.ToString()) { this.lotteryId = this.lotteryDT.Select(string.Format(" id<>{0} ", 100))[0]["id"].ToString(); } } if (!model.get_kc_op_odds().Equals(1)) { int num3 = 100; if (this.lotteryId != num3.ToString()) { this.lotteryId = 100.ToString(); } } } this.page = LSRequest.qq("page"); if (string.IsNullOrEmpty(this.page)) { this.page = "1"; } if (int.Parse(this.page) < 1) { this.page = "1"; } if (this.lotteryId != "") { this.phaseNumTable = CallBLL.cz_fgs_opt_log_bll.GetPhaseNumByLottery(this.lotteryId, str2); } this.initSelect(model); DataSet set = CallBLL.cz_fgs_opt_log_bll.GetFgsOptLogByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, (this.lotteryId == "") ? "" : this.lotteryId, this.phaseNum, str2); this.dataTable = set.Tables[0]; this.FiledValue = new string[] { this.lotteryId, this.phaseNum }; }
protected void Page_Load(object sender, EventArgs e) { this.ajaxErrorLogSwitch = FileCacheHelper.get_AjaxErrorLogSwitch(); string str = ConfigurationManager.AppSettings["CloseIndexRefresh"]; if ((str != "true") && PageBase.IsNeedPopBrower()) { this.Session.Abandon(); base.Response.Write("<script>top.location.href='/'</script>"); base.Response.End(); } this.lotteryDT = base.GetLotteryList(); this.navString = base.GetNav(); DataRow row = this.lotteryDT.Rows[0]; this.zodiacData = base.get_YearLianArray(); this.uModel = this.Session[this.Session["user_name"] + "lottery_session_user_info"] as agent_userinfo_session; this.skin = this.uModel.get_u_skin(); this.online_type = this.uModel.get_u_type().Trim(); if (CallBLL.cz_admin_subsystem_bll.GetModel().get_flag().Equals(1)) { this.isChildSytem = true; } this.saleuser = this.saleuser + "{"; this.saleuser = this.saleuser + "\"saleuser\": {"; if (this.uModel.get_u_type().Trim().Equals("zj")) { DataTable saleSetUser = CallBLL.cz_saleset_six_bll.GetSaleSetUser(); if (saleSetUser != null) { for (int i = 0; i < saleSetUser.Rows.Count; i++) { if (i == 0) { this.saleuser = this.saleuser + string.Format("\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]); } else { this.saleuser = this.saleuser + string.Format(",\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]); } } } this.negative_sale = this.uModel.get_negative_sale(); } this.saleuser = this.saleuser + "}}"; int num3 = 1; if (this.Session["user_state"].ToString().Equals(num3.ToString())) { this.url = string.Format("/Report.aspx", new object[0]); } int num4 = 1; if (row["master_id"].ToString().Equals(num4.ToString())) { this.url = ""; } this.masterids = base.GetLotteryMasterID(this.lotteryDT); if (str != "true") { this.browserCode = Utils.Number(4); PageBase.SetBrowerFlag(this.browserCode); } }
protected void Page_Load(object sender, EventArgs e) { this.userName = this.Session["user_name"].ToString(); this.userModel = this.Session[this.userName + "lottery_session_user_info"] as agent_userinfo_session; this.skin = this.userModel.get_u_skin(); this.u_type = this.userModel.get_u_type().Trim(); base.Permission_Aspx_ZJ(this.userModel, "po_1_1"); base.Permission_Aspx_DL(this.userModel, "po_5_1"); this.lotteryId = LSRequest.qq("lid"); this.lotteryName = base.GetGameNameByID(this.lotteryId); string str = this.now.ToString("yyyy-MM-dd") + " 00:00:00"; switch (Convert.ToInt32(this.lotteryId)) { case 0: if (CallBLL.cz_phase_kl10_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_kl10_bll.IsOpenPhaseByTime(this.now); break; case 1: if (CallBLL.cz_phase_cqsc_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_cqsc_bll.IsOpenPhaseByTime(this.now); break; case 2: if (CallBLL.cz_phase_pk10_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_pk10_bll.IsOpenPhaseByTime(this.now); break; case 3: if (CallBLL.cz_phase_xync_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_xync_bll.IsOpenPhaseByTime(this.now); break; case 4: if (CallBLL.cz_phase_jsk3_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_jsk3_bll.IsOpenPhaseByTime(this.now); break; case 5: if (CallBLL.cz_phase_kl8_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_kl8_bll.IsOpenPhaseByTime(this.now); break; case 6: if (CallBLL.cz_phase_k8sc_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_k8sc_bll.IsOpenPhaseByTime(this.now); break; case 7: if (CallBLL.cz_phase_pcdd_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_pcdd_bll.IsOpenPhaseByTime(this.now); break; case 8: if (CallBLL.cz_phase_pkbjl_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_pkbjl_bll.IsOpenPhaseByTime(this.now); break; case 9: if (CallBLL.cz_phase_xyft5_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_xyft5_bll.IsOpenPhaseByTime(this.now); break; case 10: if (CallBLL.cz_phase_jscar_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_jscar_bll.IsOpenPhaseByTime(this.now); break; case 11: if (CallBLL.cz_phase_speed5_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_speed5_bll.IsOpenPhaseByTime(this.now); break; case 12: if (CallBLL.cz_phase_jspk10_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_jspk10_bll.IsOpenPhaseByTime(this.now); break; case 13: if (CallBLL.cz_phase_jscqsc_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_jscqsc_bll.IsOpenPhaseByTime(this.now); break; case 14: if (CallBLL.cz_phase_jssfc_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_jssfc_bll.IsOpenPhaseByTime(this.now); break; case 15: if (CallBLL.cz_phase_jsft2_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_jsft2_bll.IsOpenPhaseByTime(this.now); break; case 0x10: if (CallBLL.cz_phase_car168_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_car168_bll.IsOpenPhaseByTime(this.now); break; case 0x11: if (CallBLL.cz_phase_ssc168_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_ssc168_bll.IsOpenPhaseByTime(this.now); break; case 0x12: if (CallBLL.cz_phase_vrcar_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_vrcar_bll.IsOpenPhaseByTime(this.now); break; case 0x13: if (CallBLL.cz_phase_vrssc_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_vrssc_bll.IsOpenPhaseByTime(this.now); break; case 20: if (CallBLL.cz_phase_xyftoa_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_xyftoa_bll.IsOpenPhaseByTime(this.now); break; case 0x15: if (CallBLL.cz_phase_xyftsg_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_xyftsg_bll.IsOpenPhaseByTime(this.now); break; case 0x16: if (CallBLL.cz_phase_happycar_bll.GetPhaseCountByQueryDate(str).Equals(0)) { this.GetNoPhaseSWF(); } this.phaseTable = CallBLL.cz_phase_happycar_bll.IsOpenPhaseByTime(this.now); break; } if (this.phaseTable == null) { base.Response.Write(this.GetSWF()); base.Response.End(); } else if (Convert.ToDateTime(this.phaseTable.Rows[0]["stop_date"].ToString().Trim()) > this.now) { base.Response.Write(this.GetSWF()); base.Response.End(); } this.phase_id = this.phaseTable.Rows[0]["p_id"].ToString().Trim(); this.phase = this.phaseTable.Rows[0]["phase"].ToString().Trim(); LSRequest.qq("hdnCreate"); string str2 = this.u_type; if (str2 != null) { if (!(str2 == "zj")) { if (str2 == "fgs") { this.levelName = "fgs_name"; this.drawback = "gd_drawback"; } else if (str2 == "gd") { this.levelName = "gd_name"; this.drawback = "zd_drawback"; } else if (str2 == "zd") { this.levelName = "zd_name"; this.drawback = "dl_drawback"; } else if (str2 == "dl") { this.levelName = "dl_name"; this.drawback = "hy_drawback"; } } else { this.drawback = "fgs_drawback"; } } this.playTable = CallBLL.cz_bet_kc_bll.GetBetByLotteryID(this.phase_id, this.lotteryId, this.u_type, this.userName, this.levelName); }
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")) && (!this.userModel.get_u_type().Trim().Equals("gd") && !this.userModel.get_u_type().Trim().Equals("zd"))) { base.Response.Redirect("../Quit.aspx", true); 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"; } else if (!string.IsNullOrEmpty(this.lottrty_six) && string.IsNullOrEmpty(this.lottrty_kc)) { this.tabState_six = "on"; } else if (string.IsNullOrEmpty(this.lottrty_six) && !string.IsNullOrEmpty(this.lottrty_kc)) { this.tabState_kc = "on"; } this.checkredio = LSRequest.qq("rdoutype"); string checkredio = this.checkredio; if (checkredio != null) { if (!(checkredio == "fgs")) { if (checkredio == "gd") { this.utypeTxt = "股東"; goto Label_0307; } if (checkredio == "zd") { this.utypeTxt = "總代"; goto Label_0307; } } else { this.utypeTxt = "分公司"; goto Label_0307; } } string str4 = this.userModel.get_u_type(); if (str4 != null) { if (!(str4 == "zj") && !(str4 == "fgs")) { if (str4 == "gd") { this.utypeTxt = "股東"; } else if (str4 == "zd") { this.utypeTxt = "總代"; } } else { this.utypeTxt = "分公司"; } } Label_0307: if ((this.userModel.get_u_type().Equals("fgs") || this.userModel.get_u_type().Equals("gd")) || this.userModel.get_u_type().Equals("zd")) { if (string.IsNullOrEmpty(this.checkredio)) { this.checkredio = this.userModel.get_u_type(); } this.InitSelect(this.checkredio); this.GetRateInfo(this.userModel.get_u_id(), this.userModel.get_u_type()); } else if (this.userModel.get_u_type().Equals("zj")) { if (string.IsNullOrEmpty(this.checkredio)) { this.checkredio = "fgs"; } this.InitSelect(this.checkredio); this.GetRateInfo(this.userModel.get_u_id(), this.userModel.get_u_type()); } 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=u100057&url=&issuccess=1&isback=0"); base.Response.End(); } if (LSRequest.qq("hdnadd").Equals("hdnadd") && !string.IsNullOrEmpty(this.u_name)) { this.AddUser(); } }
protected void Page_Load(object sender, EventArgs e) { agent_userinfo_session _session = this.Session[this.Session["user_name"].ToString() + "lottery_session_user_info"] as agent_userinfo_session; this.skin = _session.get_u_skin(); string str = LSRequest.qq("hdnsubmit"); string str2 = LSRequest.qq("txtoldpwd"); string str3 = LSRequest.qq("txtnewpwd"); string str4 = LSRequest.qq("txtnewpwdcf"); if (str.Equals("submit")) { if ((string.IsNullOrEmpty(str2) || string.IsNullOrEmpty(str3)) || string.IsNullOrEmpty(str4)) { base.Response.Write(base.GetAlert("請輸入完整的密碼!")); base.Response.End(); } if (str3 == str2) { base.Response.Write(base.GetAlert("新密碼和舊密碼不能相同!")); base.Response.End(); } if (str3 != str4) { base.Response.Write(base.GetAlert("新密碼和確認新密碼不一致!")); base.Response.End(); } if (!Regexlib.IsValidPassword(str3.Trim(), base.get_GetPasswordLU())) { if (base.get_GetPasswordLU().Equals("1")) { base.Response.Write(base.GetAlert("密碼要8-20位,且必需包含大寫字母、小寫字母和数字!")); base.Response.End(); } else { base.Response.Write(base.GetAlert("密碼要8-20位,且必需包含字母、和数字!")); base.Response.End(); } base.Response.End(); } if (_session.get_users_child_session() == null) { cz_users _users = CallBLL.cz_users_bll.AgentLogin(this.Session["user_name"].ToString()); if (_users != null) { string str5 = _users.get_salt().Trim(); string str6 = DESEncrypt.EncryptString(str2, str5); if (_users.get_u_psw() != str6) { base.Response.Write(base.GetAlert("您輸入原密碼不正確!")); base.Response.End(); } else { string ramSalt = Utils.GetRamSalt(6); string str8 = DESEncrypt.EncryptString(str3, ramSalt); if (CallBLL.cz_users_bll.UpUserPwd(this.Session["user_name"].ToString(), str8, ramSalt) > 0) { if (CallBLL.cz_users_bll.UpdateUserPwdStutas(this.Session["user_name"].ToString()) > 0) { base.log_user_reset_password(this.Session["user_name"].ToString(), this.Session["user_name"].ToString(), "", this.Session["modifypassword"]); this.Session["modifypassword"] = null; string url = "Quit.aspx"; base.Response.Write(base.GetAlert("修改密碼成功")); base.Response.Write(base.LocationHref(url)); base.Response.End(); } else { base.Response.Write(base.GetAlert("修改密碼不成功!")); base.Response.End(); } } else { base.Response.Write(base.GetAlert("修改密碼不成功!")); base.Response.End(); } } } } else { cz_users_child _child = CallBLL.cz_users_child_bll.AgentLogin(this.Session["child_user_name"].ToString().ToLower()); if (_child != null) { string str10 = _child.get_salt().Trim(); string str11 = DESEncrypt.EncryptString(str2, str10); if (_child.get_u_psw() != str11) { base.Response.Write(base.GetAlert("您輸入原密碼不正確!")); base.Response.End(); } else { string str12 = Utils.GetRamSalt(6); string str13 = DESEncrypt.EncryptString(str3, str12); if (CallBLL.cz_users_child_bll.UpUserPwd(this.Session["child_user_name"].ToString(), str13, str12) > 0) { if (CallBLL.cz_users_child_bll.UpdateUserPwdStutas(this.Session["child_user_name"].ToString()) > 0) { base.log_user_reset_password(this.Session["child_user_name"].ToString(), this.Session["child_user_name"].ToString(), "", this.Session["modifypassword"]); this.Session["modifypassword"] = null; string str14 = "Quit.aspx"; base.Response.Write(base.GetAlert("修改密碼成功!")); base.Response.Write(base.LocationHref(str14)); base.Response.End(); } else { base.Response.Write(base.GetAlert("修改密碼不成功!")); base.Response.End(); } } else { base.Response.Write(base.GetAlert("修改密碼不成功!")); base.Response.End(); } } } } } }
protected void Page_Load(object sender, EventArgs e) { agent_userinfo_session _session = this.Session[this.Session["user_name"] + "lottery_session_user_info"] as agent_userinfo_session; if (_session.get_u_type().Equals("zj") && (_session.get_users_child_session() != null)) { this.perName_1 = ""; this.perName_2 = ""; if (_session.get_users_child_session().get_permissions_name().IndexOf("po_4_1") > -1) { this.perName_1 = "po_4_1"; } if (_session.get_users_child_session().get_permissions_name().IndexOf("po_4_2") > -1) { this.perName_2 = "po_4_2"; } if (string.IsNullOrEmpty(this.perName_1) && string.IsNullOrEmpty(this.perName_2)) { base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0"); } } if (!_session.get_u_type().Equals("zj") && (_session.get_users_child_session() != null)) { this.perName_1 = ""; this.perName_2 = ""; if (_session.get_users_child_session().get_permissions_name().IndexOf("po_7_1") > -1) { this.perName_1 = "po_7_1"; } if (_session.get_users_child_session().get_permissions_name().IndexOf("po_7_2") > -1) { this.perName_2 = "po_7_2"; } if (string.IsNullOrEmpty(this.perName_1) && string.IsNullOrEmpty(this.perName_2)) { base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0"); } } this.lotteryId = LSRequest.qq("lid"); this.lotteryDT = base.GetLotteryList(); this.SetDate(); this.beginTime = DateTime.Now.AddHours(-7.0).ToString("yyyy-MM-dd"); this.endTime = DateTime.Now.AddHours(-7.0).ToString("yyyy-MM-dd"); if (CallBLL.cz_phase_six_bll.IsOpenPhase()) { this.sixOpenPhase = "1"; } Dictionary <string, Dictionary <string, string> > dictionary = new Dictionary <string, Dictionary <string, string> >(); DataRow[] rowArray = this.lotteryDT.Select(string.Format(" master_id={0} ", 1)); DataRow[] rowArray2 = this.lotteryDT.Select(string.Format(" master_id={0} ", 2)); if ((rowArray != null) && (rowArray.Length > 0)) { string str = ""; Dictionary <string, string> dictionary2 = new Dictionary <string, string>(); foreach (DataRow row in rowArray) { dictionary2.Add(row["id"].ToString(), row["lottery_name"].ToString()); str = row["name"].ToString(); this.six_list = this.six_list + string.Format("<option value='{0}' {1}>{2}</option>", row["id"].ToString(), "selected=selected", row["lottery_name"].ToString()); } dictionary.Add(1.ToString() + "," + str, dictionary2); } if ((rowArray2 != null) && (rowArray2.Length > 0)) { string str2 = ""; Dictionary <string, string> dictionary3 = new Dictionary <string, string>(); foreach (DataRow row2 in rowArray2) { dictionary3.Add(row2["id"].ToString(), row2["lottery_name"].ToString()); str2 = row2["name"].ToString(); this.kc_list = this.kc_list + string.Format("<option value='{0}'>{1}</option>", row2["id"].ToString(), row2["lottery_name"].ToString()); } dictionary.Add(2.ToString() + "," + str2, dictionary3); } this.jsonLottery = JsonHandle.ObjectToJson(dictionary); this.GetReportOpenDate(); }
private void user_login(HttpContext context, ref string strResult) { string str = ""; string str2 = ""; string str3 = ""; string str4 = ""; ReturnResult result = new ReturnResult(); Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary.Add("type", "user_login"); string str5 = LSRequest.qq("loginName").Trim().ToLower(); string str6 = LSRequest.qq("loginPwd").Trim(); string str7 = LSRequest.qq("ValidateCode").Trim(); if (PageBase.is_ip_locked()) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo("由於輸入錯誤次數過多,您已被禁用,請稍後再試!"); strResult = JsonHandle.ObjectToJson(result); } else if (string.IsNullOrEmpty(str5) || string.IsNullOrEmpty(str6)) { context.Response.End(); } else { DateTime?nullable14; if (int.Parse(FileCacheHelper.get_GetLockedPasswordCount()) == 0) { context.Session["lottery_session_img_code_display"] = 1; } if (context.Session["lottery_session_img_code_display"] == null) { if (CallBLL.cz_user_psw_err_log_bll.IsExistUser(str5)) { DateTime time; if (PageBase.IsErrTimesAbove(ref time, str5)) { if (!PageBase.IsErrTimeout(time)) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo(""); dictionary.Add("is_display_code", "1"); result.set_data(dictionary); strResult = JsonHandle.ObjectToJson(result); context.Session["lottery_session_img_code_display"] = 1; return; } CallBLL.cz_user_psw_err_log_bll.ZeroErrTimes(str5); context.Session["lottery_session_img_code"] = null; context.Session["lottery_session_img_code_display"] = 0; } else { context.Session["lottery_session_img_code"] = null; context.Session["lottery_session_img_code_display"] = 0; } } else { context.Session["lottery_session_img_code"] = null; context.Session["lottery_session_img_code_display"] = 0; } } if (context.Session["lottery_session_img_code_display"].ToString() == "0") { if (string.IsNullOrEmpty(str5) || string.IsNullOrEmpty(str6)) { context.Response.End(); return; } } else { if (string.IsNullOrEmpty(str5) || string.IsNullOrEmpty(str6)) { context.Response.End(); return; } if (string.IsNullOrEmpty(str7)) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo(""); dictionary.Add("is_display_code", "1"); result.set_data(dictionary); strResult = JsonHandle.ObjectToJson(result); context.Session["lottery_session_img_code_display"] = 1; return; } if (context.Session["lottery_session_img_code"] == null) { context.Response.End(); return; } if (context.Session["lottery_session_img_code"].ToString().ToLower() != str7.ToLower()) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo(PageBase.GetMessageByCache("u100001", "MessageHint")); strResult = JsonHandle.ObjectToJson(result); return; } } cz_users _users = CallBLL.cz_users_bll.AgentLogin(str5.ToLower()); cz_users_child _child = null; if (_users == null) { _child = CallBLL.cz_users_child_bll.AgentLogin(str5.ToLower()); if (_child != null) { string str9 = _child.get_retry_times().ToString(); if (!string.IsNullOrEmpty(str9) && (int.Parse(str9) > int.Parse(FileCacheHelper.get_GetLockedUserCount()))) { if (!PageBase.IsLockedTimeout(str5, "child")) { context.Session["lottery_session_img_code"] = null; result.set_success(560); result.set_tipinfo("您的帳號因密碼多次輸入錯誤被鎖死,請與管理員聯系!"); strResult = JsonHandle.ObjectToJson(result); return; } PageBase.zero_retry_times_children(str5); } string str10 = _child.get_salt().Trim(); string str11 = DESEncrypt.EncryptString(str6, str10); if (_child.get_u_psw() != str11) { context.Session["lottery_session_img_code"] = null; PageBase.inc_retry_times_children(str5); PageBase.login_error_ip(); result.set_success(400); result.set_tipinfo(PageBase.GetMessageByCache("u100003", "MessageHint")); strResult = JsonHandle.ObjectToJson(result); if (context.Session["lottery_session_img_code_display"].ToString() == "0") { DateTime time2; if (CallBLL.cz_user_psw_err_log_bll.IsExistUser(str5)) { CallBLL.cz_user_psw_err_log_bll.UpdateErrTimes(str5); } else { CallBLL.cz_user_psw_err_log_bll.AddUser(str5); } if (PageBase.IsErrTimesAbove(ref time2, str5)) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo(PageBase.GetMessageByCache("u100003", "MessageHint")); dictionary.Add("is_display_code", "1"); result.set_data(dictionary); strResult = JsonHandle.ObjectToJson(result); context.Session["lottery_session_img_code_display"] = 1; } } return; } str2 = _child.get_status().ToString(); str3 = PageBase.upper_user_status(_child.get_parent_u_name()); _users = CallBLL.cz_users_bll.AgentLogin(_child.get_parent_u_name()); } else { context.Session["lottery_session_img_code"] = null; PageBase.login_error_ip(); result.set_success(400); result.set_tipinfo(PageBase.GetMessageByCache("u100002", "MessageHint")); dictionary.Add("fs_name", "loginName"); strResult = JsonHandle.ObjectToJson(result); return; } PageBase.zero_retry_times_children(str5); } else { string str12 = _users.get_retry_times().ToString(); if (!string.IsNullOrEmpty(str12) && (int.Parse(str12) > int.Parse(FileCacheHelper.get_GetLockedUserCount()))) { if (!PageBase.IsLockedTimeout(str5, "master")) { context.Session["lottery_session_img_code"] = null; result.set_success(560); result.set_tipinfo("您的帳號因密碼多次輸入錯誤被鎖死,請與管理員聯系!"); strResult = JsonHandle.ObjectToJson(result); return; } PageBase.zero_retry_times(str5); } str = _users.get_a_state().ToString(); string str13 = _users.get_a_state().ToString(); str4 = PageBase.upper_user_status(_users.get_u_name()); if (str13.Equals("2")) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo(PageBase.GetMessageByCache("u100005", "MessageHint")); dictionary.Add("fs_name", "loginName"); strResult = JsonHandle.ObjectToJson(result); context.Session.Abandon(); return; } if (str4 == "2") { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo("您的上級帳號已被停用,请与管理员联系!"); strResult = JsonHandle.ObjectToJson(result); context.Session.Abandon(); return; } str = (str13 == null) ? "0" : str; string str14 = _users.get_salt().Trim(); string str15 = DESEncrypt.EncryptString(str6, str14); if (_users.get_u_psw() != str15) { context.Session["lottery_session_img_code"] = null; PageBase.inc_retry_times(str5); PageBase.login_error_ip(); result.set_success(400); result.set_tipinfo(PageBase.GetMessageByCache("u100003", "MessageHint")); strResult = JsonHandle.ObjectToJson(result); if (context.Session["lottery_session_img_code_display"].ToString() == "0") { DateTime time3; if (CallBLL.cz_user_psw_err_log_bll.IsExistUser(str5)) { CallBLL.cz_user_psw_err_log_bll.UpdateErrTimes(str5); } else { CallBLL.cz_user_psw_err_log_bll.AddUser(str5); } if (PageBase.IsErrTimesAbove(ref time3, str5)) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo(PageBase.GetMessageByCache("u100003", "MessageHint")); dictionary.Add("is_display_code", "1"); result.set_data(dictionary); strResult = JsonHandle.ObjectToJson(result); context.Session["lottery_session_img_code_display"] = 1; } } return; } PageBase.zero_retry_times(str5); } if (!string.IsNullOrEmpty(str2)) { context.Session["user_name"] = _users.get_u_name().Trim(); context.Session["user_type"] = _users.get_u_type().Trim(); context.Session["child_user_name"] = _child.get_u_name().Trim(); context.Session["user_state"] = str2.Trim(); if (str2.Equals("2")) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo("您的帳號已被停用,请与管理员联系!"); strResult = JsonHandle.ObjectToJson(result); context.Session.Abandon(); return; } if (_users.get_a_state() == 2) { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo("您的主帳號已被停用,请与管理员联系!"); strResult = JsonHandle.ObjectToJson(result); context.Session.Abandon(); return; } if (str3 == "2") { context.Session["lottery_session_img_code"] = null; result.set_success(400); result.set_tipinfo("您的上級帳號已被停用,请与管理员联系!"); strResult = JsonHandle.ObjectToJson(result); context.Session.Abandon(); return; } if (str2 == "1") { result.set_success(200); result.set_tipinfo(PageBase.GetMessageByCache("u100004", "MessageHint")); strResult = JsonHandle.ObjectToJson(result); context.Session["user_state"] = str2; } else if (_users.get_a_state() == 1) { result.set_success(200); result.set_tipinfo("您的主帳號已被凍結,请与管理员联系!"); strResult = JsonHandle.ObjectToJson(result); context.Session["user_state"] = _users.get_a_state().ToString(); } else if (str3 == "1") { result.set_success(200); result.set_tipinfo(PageBase.GetMessageByCache("u100006", "MessageHint")); strResult = JsonHandle.ObjectToJson(result); context.Session["user_state"] = str3; } else { context.Session["user_state"] = "0"; result.set_success(200); strResult = JsonHandle.ObjectToJson(result); } } else { context.Session["user_name"] = _users.get_u_name().Trim(); context.Session["user_type"] = _users.get_u_type().Trim(); context.Session["user_state"] = str.Trim(); if (str.Equals("1")) { result.set_success(200); result.set_tipinfo(PageBase.GetMessageByCache("u100004", "MessageHint")); strResult = JsonHandle.ObjectToJson(result); context.Session["user_state"] = str; } else if (str4 == "1") { result.set_success(200); result.set_tipinfo(PageBase.GetMessageByCache("u100006", "MessageHint")); strResult = JsonHandle.ObjectToJson(result); context.Session["user_state"] = str4; } else { context.Session["user_state"] = "0"; result.set_success(200); strResult = JsonHandle.ObjectToJson(result); } } agent_userinfo_session _session = new agent_userinfo_session(); _session.set_u_id(_users.get_u_id()); _session.set_u_name(_users.get_u_name().Trim()); _session.set_u_psw(_users.get_u_psw().Trim()); _session.set_u_nicker(_users.get_u_nicker().Trim()); _session.set_u_skin(_users.get_u_skin().Trim()); if (_child != null) { if (string.IsNullOrEmpty(_child.get_u_skin())) { _session.set_u_skin(""); } else { _session.set_u_skin(_child.get_u_skin()); } } _session.set_sup_name(_users.get_sup_name().Trim()); _session.set_u_type(_users.get_u_type().Trim()); _session.set_su_type(_users.get_su_type().Trim()); _session.set_a_state(_users.get_a_state()); _session.set_six_kind(_users.get_six_kind()); _session.set_kc_kind(_users.get_kc_kind()); _session.set_allow_sale(_users.get_allow_sale()); _session.set_kc_allow_sale(_users.get_kc_allow_sale()); _session.set_negative_sale(_users.get_negative_sale()); if (!_users.get_allow_view_report().HasValue) { _session.set_allow_view_report(0); } else { _session.set_allow_view_report(_users.get_allow_view_report()); } DataRow item = CallBLL.cz_admin_sysconfig_bll.GetItem(); if (item == null) { _session.set_u_skin("Blue"); } else { string str16 = item["agent_skin"].ToString(); if (string.IsNullOrEmpty(_session.get_u_skin()) || (str16.IndexOf(_session.get_u_skin()) < 0)) { _session.set_u_skin(str16.Split(new char[] { '|' })[0]); } } if (_child != null) { _child.set_salt(""); } _session.set_users_child_session(_child); DataTable zJInfo = CallBLL.cz_users_bll.GetZJInfo(); if (zJInfo != null) { _session.set_zjname(zJInfo.Rows[0]["u_name"].ToString().Trim()); } if (!_session.get_u_type().ToLower().Equals("zj")) { cz_rate_kc rateKCByUserName = CallBLL.cz_rate_kc_bll.GetRateKCByUserName(_session.get_u_name()); _session.set_fgs_name(rateKCByUserName.get_fgs_name()); _session.set_gd_name(rateKCByUserName.get_gd_name()); _session.set_zd_name(rateKCByUserName.get_zd_name()); _session.set_dl_name(rateKCByUserName.get_dl_name()); DataTable userOpOdds = CallBLL.cz_rate_kc_bll.GetUserOpOdds(_session.get_u_name()); if (userOpOdds != null) { if ((userOpOdds.Rows[0]["six_op_odds"] != null) && (userOpOdds.Rows[0]["six_op_odds"].ToString() != "")) { _session.set_six_op_odds(new int?(int.Parse(userOpOdds.Rows[0]["six_op_odds"].ToString()))); } if ((userOpOdds.Rows[0]["kc_op_odds"] != null) && (userOpOdds.Rows[0]["kc_op_odds"].ToString() != "")) { _session.set_kc_op_odds(new int?(int.Parse(userOpOdds.Rows[0]["kc_op_odds"].ToString()))); } } } context.Session["child_user_name"] = null; if (_child != null) { context.Session["child_user_name"] = _child.get_u_name(); } context.Session["user_name"] = _users.get_u_name(); context.Session[_users.get_u_name() + "lottery_session_user_info"] = _session; PageBase.SetAppcationFlag(str5); if (FileCacheHelper.get_RedisStatOnline().Equals(1) || FileCacheHelper.get_RedisStatOnline().Equals(2)) { bool flag6 = false; if ((_session.get_users_child_session() != null) && _session.get_users_child_session().get_is_admin().Equals(1)) { flag6 = true; } if (!flag6) { if (FileCacheHelper.get_RedisStatOnline().Equals(1)) { new PageBase_Redis().InitUserOnlineTopToRedis(str5, _session.get_u_type()); } if (FileCacheHelper.get_RedisStatOnline().Equals(2)) { new PageBase_Redis().InitUserOnlineTopToRedisStack(str5, _session.get_u_type()); } } } else { MemberPageBase.stat_top_online(str5); MemberPageBase.stat_online(str5, _session.get_u_type()); } if (FileCacheHelper.get_RedisStatOnline() == 0) { PageBase.ZeroIsOutFlag(str5); } CallBLL.cz_user_psw_err_log_bll.ZeroErrTimes(str5); cz_login_log _log = new cz_login_log(); _log.set_ip(LSRequest.GetIP()); _log.set_login_time(new DateTime?(DateTime.Now)); _log.set_u_name(str5); new PageBase(); _log.set_browser_type(Utils.GetBrowserInfo(HttpContext.Current)); CallBLL.cz_login_log_bll.Add(_log); if (_child == null) { string str17 = _users.get_is_changed().ToString(); if (string.IsNullOrEmpty(str17)) { result.set_success(550); result.set_tipinfo("新密碼首次登錄,需重置密碼!"); strResult = JsonHandle.ObjectToJson(result); context.Session["modifypassword"] = "******"; } else if (str17 == "0") { result.set_success(550); result.set_tipinfo("新密碼首次登錄,需重置密碼!"); strResult = JsonHandle.ObjectToJson(result); context.Session["modifypassword"] = "******"; } else { DateTime?nullable = _users.get_last_changedate(); int num2 = PageBase.PasswordExpire(); nullable14 = nullable; DateTime time5 = DateTime.Now.AddDays((double)-num2); if (nullable14.HasValue ? (nullable14.GetValueOrDefault() < time5) : false) { result.set_success(550); result.set_tipinfo("密碼過期,需重置密碼!"); strResult = JsonHandle.ObjectToJson(result); context.Session["modifypassword"] = "******"; } } } else { string str18 = _child.get_is_changed().ToString(); if (string.IsNullOrEmpty(str18)) { result.set_success(550); result.set_tipinfo("新密碼首次登錄,需重置密碼!"); strResult = JsonHandle.ObjectToJson(result); context.Session["modifypassword"] = "******"; } else if (str18 == "0") { result.set_success(550); result.set_tipinfo("新密碼首次登錄,需重置密碼!"); strResult = JsonHandle.ObjectToJson(result); context.Session["modifypassword"] = "******"; } else { DateTime?nullable2 = _child.get_last_changedate(); int num3 = PageBase.PasswordExpire(); if (nullable2.HasValue) { nullable14 = nullable2; DateTime time4 = DateTime.Now.AddDays((double)-num3); if (nullable14.HasValue ? (nullable14.GetValueOrDefault() < time4) : false) { result.set_success(550); result.set_tipinfo("密碼過期,需重置密碼!"); strResult = JsonHandle.ObjectToJson(result); context.Session["modifypassword"] = "******"; } } } } } }
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.lotteryDT = base.GetLotteryList(); if (base.GetLotteryMasterID(this.lotteryDT).Split(new char[] { ',' }).Length > 1) { this.bol_masterid = true; } if (!base.GetMasterLotteryIsOpen(this.lotteryDT, 2)) { base.Response.End(); } this.uid = LSRequest.qq("uid"); this.mlid = LSRequest.qq("mlid"); this.ispc = LSRequest.qq("isPc"); this.mlid = 2.ToString(); this.edit_model = CallBLL.cz_users_bll.GetUserInfoByUID(this.uid); if (!this.edit_model.get_kc_iscash().Equals(int.Parse("1"))) { base.Response.End(); } base.Permission_Aspx_ZJ(this.userModel, "po_2_1"); base.Permission_Aspx_DL(this.userModel, "po_6_1"); if (this.edit_model.get_u_name().Equals(this.userModel.get_u_name())) { base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0&isopen=0"); base.Response.End(); } if (!base.IsUpperLowerLevels(this.edit_model.get_u_name(), this.userModel.get_u_type(), this.userModel.get_u_name())) { if (this.ispc.Equals("1")) { base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0&isopen=1"); base.Response.End(); } else { base.Response.Redirect("/MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0&isopen=0"); base.Response.End(); } } this.up_edit_model = CallBLL.cz_users_bll.GetUserInfoByUName(this.edit_model.get_sup_name()); string str3 = LSRequest.qq("hdn_withdraw"); string s = LSRequest.qq("txt_withdraw"); if (str3.Equals("rhrg")) { this.Hy_SubmitCreditLock(); cz_rate_kc rateKCByUserName = CallBLL.cz_rate_kc_bll.GetRateKCByUserName(this.edit_model.get_u_name()); base.En_User_Lock(rateKCByUserName.get_fgs_name()); this.up_edit_model = CallBLL.cz_users_bll.GetUserInfoByUName(this.edit_model.get_sup_name()); if (!Utils.IsDouble(s)) { if (this.ispc.Equals("1")) { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(base.ShowDialogBox("(快)提現格式不正確!", "", 400)); base.Response.End(); } else { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(string.Format("<script>alert('{0}');</script>", "(快)提現格式不正確!")); base.Response.End(); } } if (double.Parse(s) < 1.0) { if (this.ispc.Equals("1")) { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(base.ShowDialogBox("(快)提現金額不能小於1!", "", 400)); base.Response.End(); } else { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(string.Format("<script>alert('{0}');</script>", "(快)提現金額不能小於1")); base.Response.End(); } } if (double.Parse(s) > double.Parse(this.edit_model.get_kc_usable_credit().ToString())) { if (this.ispc.Equals("1")) { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(base.ShowDialogBox(string.Format("(快)提現金額不能大於{0}!", Utils.GetMathRound(double.Parse(this.edit_model.get_kc_usable_credit().ToString()), null)), "", 400)); base.Response.End(); } else { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(string.Format("<script>alert('(快)提現金額不能大於{0}!');</script>", Utils.GetMathRound(double.Parse(this.edit_model.get_kc_usable_credit().ToString()), null))); base.Response.End(); } } if (CallBLL.cz_users_bll.UserWithdraw_kc(this.edit_model, this.up_edit_model, double.Parse(s), int.Parse(this.mlid), this.userModel.get_u_name(), (this.userModel.get_users_child_session() != null) ? this.userModel.get_users_child_session().get_u_name() : "", 0) > 0) { if (this.ispc.Equals("1")) { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(base.ShowDialogBox("(快)提現成功!", base.UserReturnBackUrl, 3)); base.Response.End(); } else { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(string.Format("<script>alert('{0}');location.href='{1}';</script>", "(快)提現成功!", base.UserReturnBackUrl)); base.Response.End(); } } else if (this.ispc.Equals("1")) { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(base.ShowDialogBox("(快)提現失敗!", "", 400)); base.Response.End(); } else { base.Un_User_Lock(rateKCByUserName.get_fgs_name()); this.Hy_DeleteCreditLock(); base.Response.Write(string.Format("<script>alert('{0}');</script>", "(快)提現失敗!")); base.Response.End(); } } }
private void getMemberDetail(ref string strResult) { 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")) { base.Response.End(); } base.checkCloneRight(); 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"; } else if (!string.IsNullOrEmpty(this.lottrty_six) && string.IsNullOrEmpty(this.lottrty_kc)) { this.tabState_six = "on"; } else if (string.IsNullOrEmpty(this.lottrty_six) && !string.IsNullOrEmpty(this.lottrty_kc)) { this.tabState_kc = "on"; } string str2 = LSRequest.qq("memberId"); string str3 = LSRequest.qq("submitType"); if (str3 != "add") { base.Response.End(); } if (str2 != "zd") { base.Response.End(); } this.sltuid = LSRequest.qq("sltuid"); this.upuid = LSRequest.qq("uid"); 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.End(); } if ((str3 == "add") && !string.IsNullOrEmpty(this.u_name)) { this.AddUser(); } }
private void AddHyDu(string u_type, string u_id) { StringBuilder builder = new StringBuilder(); agent_userinfo_session _session = this.Session[this.Session["user_name"] + "lottery_session_user_info"] as agent_userinfo_session; if ((_session.get_u_type().Equals("dl") || u_type.Equals("zj")) || (u_type.Equals("dl") || u_type.Equals("hy"))) { builder.Append("{"); builder.Append("\"success\": 400,"); builder.Append("\"data\": {\"type\": \"get_hydu\",\"six\": {},\"kc\": {}},"); builder.Append("\"tipinfo\": \"操作失敗!\""); builder.Append("}"); base.Response.Write(builder); } else { string str = ""; string str2 = ""; DataTable table2 = base.GetLotteryList().DefaultView.ToTable(true, new string[] { "master_id" }); for (int i = 0; i < table2.Rows.Count; i++) { if (Convert.ToInt32(table2.Rows[i][0]).Equals(1)) { str2 = table2.Rows[i][0].ToString(); } else if (Convert.ToInt32(table2.Rows[i][0]).Equals(2)) { str = table2.Rows[i][0].ToString(); } } if (((string.IsNullOrEmpty(str2) || string.IsNullOrEmpty(str)) && (string.IsNullOrEmpty(str2) || !string.IsNullOrEmpty(str))) && string.IsNullOrEmpty(str2)) { string.IsNullOrEmpty(str); } string str3 = "0"; string str4 = "0"; string str5 = ""; string str6 = "0"; string str7 = ""; string str8 = "0"; string str9 = "0"; string str10 = ""; string str11 = "0"; string str12 = "0"; if (!string.IsNullOrEmpty(str2)) { Dictionary <string, string> rateByUID = CallBLL.cz_rate_six_bll.GetRateByUID(u_id, u_type); if (rateByUID != null) { str3 = rateByUID["six_rate"]; string local1 = rateByUID["six_credit"]; str4 = rateByUID["six_usable_credit"]; string local2 = rateByUID["six_allow_sale"]; str5 = rateByUID["six_u_nicker"]; str6 = rateByUID["six_kind"]; str7 = rateByUID["u_name"]; string local3 = rateByUID["six_zj_rate"]; string local4 = rateByUID["six_fgs_rate"]; string local5 = rateByUID["six_gd_rate"]; string local6 = rateByUID["six_zd_rate"]; string local7 = rateByUID["six_dl_rate"]; string local8 = rateByUID["six_fgs_name"]; string local9 = rateByUID["six_gd_name"]; string local10 = rateByUID["six_zd_name"]; string local11 = rateByUID["six_dl_name"]; } } if (!string.IsNullOrEmpty(str)) { Dictionary <string, string> dictionary2 = CallBLL.cz_rate_kc_bll.GetRateByUID(u_id, u_type); if (dictionary2 != null) { str8 = dictionary2["kc_rate"]; string local12 = dictionary2["kc_credit"]; str9 = dictionary2["kc_usable_credit"]; string local13 = dictionary2["kc_allow_sale"]; str10 = dictionary2["kc_u_nicker"]; str11 = dictionary2["kc_kind"]; str7 = dictionary2["u_name"]; string local14 = dictionary2["kc_zj_rate"]; string local15 = dictionary2["kc_fgs_rate"]; string local16 = dictionary2["kc_gd_rate"]; string local17 = dictionary2["kc_zd_rate"]; string local18 = dictionary2["kc_dl_rate"]; string local19 = dictionary2["kc_fgs_name"]; string local20 = dictionary2["kc_gd_name"]; string local21 = dictionary2["kc_zd_name"]; string local22 = dictionary2["kc_dl_name"]; str12 = dictionary2["kc_iscash"]; } } if (!base.IsUpperLowerLevels(str7, _session.get_u_type(), _session.get_u_name())) { builder.Append("{"); builder.Append("\"success\": 400,"); builder.Append("\"data\": {\"type\": \"get_hydu\",\"six\": {},\"kc\": {}},"); builder.Append("\"tipinfo\": \"不能越級操作!\""); builder.Append("}"); } else { builder.Append("{"); builder.Append("\"success\": 200,"); builder.Append("\"data\": {"); builder.Append("\"type\": \"get_hydu\","); builder.AppendFormat("\"username\": \"{0}\",", str7); if (!string.IsNullOrEmpty(str2)) { builder.AppendFormat("\"u_nicker_d\": \"{0}\",", str5); } else { builder.AppendFormat("\"u_nicker_d\": \"{0}\",", str10); } builder.Append("\"six\": {"); if (!string.IsNullOrEmpty(str2)) { builder.AppendFormat("\"six_rate_d\": {0},", str3); builder.AppendFormat("\"six_kind_d\": \"{0}\",", str6); builder.AppendFormat("\"six_usable_credit_d\": {0}", str4); } builder.Append("},"); builder.Append("\"kc\": {"); if (!string.IsNullOrEmpty(str)) { builder.AppendFormat("\"kc_rate_d\": {0},", str8); builder.AppendFormat("\"kc_kind_d\": \"{0}\",", str11); builder.AppendFormat("\"kc_usable_credit_d\": {0},", str9); builder.AppendFormat("\"kc_iscash\": \"{0}\"", str12); } builder.Append("}"); builder.Append("},"); builder.Append("\"tipinfo\": \"\""); builder.Append("}"); } base.Response.Write(builder.ToString()); } }
private void getMemberDetail(ref string strResult) { bool flag2; bool flag3; base.checkLoginByHandler(0); this.r_u_id = LSRequest.qq("uid"); string str = LSRequest.qq("memberId"); string str2 = LSRequest.qq("submitType"); if (str != "dl") { base.Response.End(); } ReturnResult result = new ReturnResult(); Dictionary <string, object> dictionary = new Dictionary <string, object>(); new List <object>(); string str3 = this.Session["user_name"].ToString(); agent_userinfo_session _session = this.Session[str3 + "lottery_session_user_info"] as agent_userinfo_session; if (!Utils.IsGuid(this.r_u_id)) { base.Response.End(); } if ((!_session.get_u_type().Trim().Equals("zj") && !_session.get_u_type().Trim().Equals("fgs")) && (!_session.get_u_type().Trim().Equals("gd") && !_session.get_u_type().Trim().Equals("zd"))) { base.noRightOptMsg(); } base.checkCloneRight(); 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(); } } cz_users userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(this.r_u_id, str); if (userInfoByUID == null) { base.Response.End(); } bool flag = base.is_locked_user(userInfoByUID.get_retry_times().ToString()); Dictionary <string, string> dictionary2 = new Dictionary <string, string>(); Dictionary <string, string> dictionary3 = new Dictionary <string, string>(); DataTable editGD = CallBLL.cz_rate_six_bll.GetEditGD(this.r_u_id, ref dictionary2); DataTable table3 = CallBLL.cz_rate_kc_bll.GetEditGD(this.r_u_id, ref dictionary3); if ((editGD == null) || (table3 == null)) { base.Response.End(); } this.d_u_name = editGD.Rows[0]["u_name"].ToString(); this.d_u_type = editGD.Rows[0]["u_type"].ToString(); this.d_u_nicker = editGD.Rows[0]["u_nicker"].ToString(); this.d_a_state = editGD.Rows[0]["a_state"].ToString(); this.d_allow_view_report = editGD.Rows[0]["allow_view_report"].ToString(); this.d_six_credit = string.Format("{0:F0}", Convert.ToDouble(editGD.Rows[0]["six_credit"].ToString())); this.d_six_usable_credit = string.Format("{0:F0}", Convert.ToDouble(editGD.Rows[0]["six_usable_credit"].ToString())); this.d_six_rate = editGD.Rows[0]["six_rate"].ToString(); this.d_six_allow_sale = editGD.Rows[0]["allow_sale"].ToString(); this.d_six_allow_maxrate = editGD.Rows[0]["six_allow_maxrate"].ToString(); this.d_six_low_maxrate = editGD.Rows[0]["six_low_maxrate"].ToString(); if (string.IsNullOrEmpty(editGD.Rows[0]["six_kind"])) { this.d_six_kind = "0"; } else { this.d_six_kind = editGD.Rows[0]["six_kind"].ToString(); } if (string.IsNullOrEmpty(editGD.Rows[0]["six_iscash"])) { this.d_six_iscash = "0"; } else { this.d_six_iscash = editGD.Rows[0]["six_iscash"].ToString(); } this.d_six_ExistsBet = CallBLL.cz_bet_six_bll.ExistsBetByUserName(this.d_u_type, this.d_u_name); this.d_six_OpenPhase = CallBLL.cz_phase_six_bll.IsOpenPhase(); this.d_up_u_name = dictionary2["u_name"]; this.d_up_u_nicker = dictionary2["u_nicker"]; this.d_up_u_type = dictionary2["u_type"]; this.d_up_six_allow_sale = dictionary2["six_allow_sale"]; this.d_up_six_usable_credit = dictionary2["six_usable_credit"]; this.d_maxRate_six = Convert.ToDouble(dictionary2["six_maxRate"].ToString()); this.d_downRate_six = Convert.ToDouble(dictionary2["six_downRate"].ToString()); this.d_kc_credit = string.Format("{0:F0}", Convert.ToDouble(table3.Rows[0]["kc_credit"].ToString())); this.d_kc_usable_credit = string.Format("{0:F0}", Convert.ToDouble(table3.Rows[0]["kc_usable_credit"].ToString())); this.d_kc_rate = table3.Rows[0]["kc_rate"].ToString(); this.d_kc_allow_sale = table3.Rows[0]["kc_allow_sale"].ToString(); this.d_kc_allow_maxrate = table3.Rows[0]["kc_allow_maxrate"].ToString(); this.d_kc_low_maxrate = table3.Rows[0]["kc_low_maxrate"].ToString(); if (string.IsNullOrEmpty(table3.Rows[0]["kc_kind"])) { this.d_kc_kind = "0"; } else { this.d_kc_kind = table3.Rows[0]["kc_kind"].ToString(); } if (string.IsNullOrEmpty(table3.Rows[0]["kc_iscash"])) { this.d_kc_iscash = "0"; } else { this.d_kc_iscash = table3.Rows[0]["kc_iscash"].ToString(); } this.d_kc_ExistsBet = CallBLL.cz_bet_kc_bll.ExistsBetByUserName(this.d_u_type, this.d_u_name); this.d_kc_OpenPhase = base.IsOpenPhase_KC(); this.d_up_kc_allow_sale = dictionary3["kc_allow_sale"]; this.d_up_kc_usable_credit = dictionary3["kc_usable_credit"]; this.d_maxRate_kc = Convert.ToDouble(dictionary3["kc_maxRate"].ToString()); this.d_downRate_kc = Convert.ToDouble(dictionary3["kc_downRate"].ToString()); if (this.d_u_name.Equals(_session.get_u_name())) { base.noRightOptMsg(); } if (!base.IsUpperLowerLevels(this.d_u_name, _session.get_u_type(), _session.get_u_name())) { base.noRightOptMsg(); } this.txtLimit = userInfoByUID.get_limit_hy().ToString(); this.currentLimit = CallBLL.cz_users_bll.GetLimitHy_DL_Count(userInfoByUID.get_u_name()).ToString(); if (userInfoByUID.get_limit_hy().Equals(0) || !userInfoByUID.get_limit_hy().HasValue) { this.sltLimit = "0"; this.txtLimit = this.currentLimit; } else { this.sltLimit = "1"; } base.OpenLotteryMaster(out flag2, out flag3); if (str2 == "view") { if (flag2 && flag3) { int num2 = (this.d_six_ExistsBet && this.d_six_OpenPhase) ? 0 : 1; int num3 = (this.d_kc_ExistsBet && this.d_kc_OpenPhase) ? 0 : 1; Dictionary <string, object> dictionary4 = new Dictionary <string, object>(); dictionary4.Add("disabledKc", num3.ToString()); dictionary4.Add("disabledSix", num2.ToString()); dictionary4.Add("supName", this.d_up_u_name); dictionary4.Add("supNameNicker", this.d_up_u_nicker); dictionary4.Add("name", this.d_u_name); dictionary4.Add("isLocked", flag ? "1" : "0"); dictionary4.Add("userState", this.d_a_state); dictionary4.Add("nicker", this.d_u_nicker); dictionary4.Add("userCreditSix", this.d_six_credit); dictionary4.Add("recoverCreditSix", this.d_six_usable_credit); dictionary4.Add("supCreditSix", string.Format("{0:F0}", Convert.ToDouble(this.d_up_six_usable_credit))); dictionary4.Add("userRateSix", this.d_six_rate); dictionary4.Add("maxRateSix", this.d_maxRate_six.ToString()); dictionary4.Add("allowMaxRateSix", this.d_six_allow_maxrate); dictionary4.Add("downRateSix", this.d_downRate_six.ToString()); dictionary4.Add("userAllowSaleSix", this.d_six_allow_sale); dictionary4.Add("userKindSix", this.d_six_kind); dictionary4.Add("isCashSix", this.d_six_iscash); dictionary4.Add("userCreditKc", this.d_kc_credit); dictionary4.Add("recoverCreditKc", this.d_kc_usable_credit); dictionary4.Add("supCreditKc", string.Format("{0:F0}", Convert.ToDouble(this.d_up_kc_usable_credit))); dictionary4.Add("userRateKc", this.d_kc_rate); dictionary4.Add("maxRateKc", this.d_maxRate_kc.ToString()); dictionary4.Add("allowMaxRateKc", this.d_kc_allow_maxrate); dictionary4.Add("downRateKc", this.d_downRate_kc.ToString()); dictionary4.Add("userAllowSaleKc", this.d_kc_allow_sale); dictionary4.Add("userKindKc", this.d_kc_kind); dictionary4.Add("isCashKc", this.d_kc_iscash); dictionary4.Add("date", userInfoByUID.get_add_date()); dictionary4.Add("limithy", userInfoByUID.get_limit_hy()); dictionary = dictionary4; } else if (flag2) { int num4 = (this.d_six_ExistsBet && this.d_six_OpenPhase) ? 0 : 1; Dictionary <string, object> dictionary5 = new Dictionary <string, object>(); dictionary5.Add("disabledSix", num4.ToString()); dictionary5.Add("supName", this.d_up_u_name); dictionary5.Add("supNameNicker", this.d_up_u_nicker); dictionary5.Add("name", this.d_u_name); dictionary5.Add("isLocked", flag ? "1" : "0"); dictionary5.Add("userState", this.d_a_state); dictionary5.Add("nicker", this.d_u_nicker); dictionary5.Add("userCreditSix", this.d_six_credit); dictionary5.Add("recoverCreditSix", this.d_six_usable_credit); dictionary5.Add("supCreditSix", string.Format("{0:F0}", Convert.ToDouble(this.d_up_six_usable_credit))); dictionary5.Add("userRateSix", this.d_six_rate); dictionary5.Add("maxRateSix", this.d_maxRate_six.ToString()); dictionary5.Add("allowMaxRateSix", this.d_six_allow_maxrate); dictionary5.Add("downRateSix", this.d_downRate_six.ToString()); dictionary5.Add("userAllowSaleSix", this.d_six_allow_sale); dictionary5.Add("userKindSix", this.d_six_kind); dictionary5.Add("isCashSix", this.d_six_iscash); dictionary5.Add("date", userInfoByUID.get_add_date()); dictionary5.Add("limithy", userInfoByUID.get_limit_hy()); dictionary = dictionary5; } else if (flag3) { int num5 = (this.d_kc_ExistsBet && this.d_kc_OpenPhase) ? 0 : 1; Dictionary <string, object> dictionary6 = new Dictionary <string, object>(); dictionary6.Add("disabledKc", num5.ToString()); dictionary6.Add("supName", this.d_up_u_name); dictionary6.Add("supNameNicker", this.d_up_u_nicker); dictionary6.Add("name", this.d_u_name); dictionary6.Add("isLocked", flag ? "1" : "0"); dictionary6.Add("userState", this.d_a_state); dictionary6.Add("nicker", this.d_u_nicker); dictionary6.Add("userCreditKc", this.d_kc_credit); dictionary6.Add("recoverCreditKc", this.d_kc_usable_credit); dictionary6.Add("supCreditKc", string.Format("{0:F0}", Convert.ToDouble(this.d_up_kc_usable_credit))); dictionary6.Add("userRateKc", this.d_kc_rate); dictionary6.Add("maxRateKc", this.d_maxRate_kc.ToString()); dictionary6.Add("allowMaxRateKc", this.d_kc_allow_maxrate); dictionary6.Add("downRateKc", this.d_downRate_kc.ToString()); dictionary6.Add("userAllowSaleKc", this.d_kc_allow_sale); dictionary6.Add("userKindKc", this.d_kc_kind); dictionary6.Add("isCashKc", this.d_kc_iscash); dictionary6.Add("date", userInfoByUID.get_add_date()); dictionary6.Add("limithy", userInfoByUID.get_limit_hy()); dictionary = dictionary6; } result.set_success(200); result.set_data(dictionary); strResult = base.ObjectToJson(result); } else if ((str2 == "edit") && !string.IsNullOrEmpty(this.d_u_name)) { this.AddUser(); } }
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") && !model.get_u_type().Trim().Equals("fgs")) && (!model.get_u_type().Trim().Equals("gd") && !model.get_u_type().Trim().Equals("zd"))) { base.Response.Redirect("../MessagePage.aspx?code=u100035&url=&issuccess=1&isback=0&isopen=1"); base.Response.End(); } base.Permission_Aspx_ZJ(model, "po_2_1"); base.Permission_Aspx_DL(model, "po_6_1"); DataTable table2 = base.GetLotteryList().DefaultView.ToTable(true, new string[] { "master_id" }); for (int i = 0; i < table2.Rows.Count; i++) { if (Convert.ToInt32(table2.Rows[i][0]).Equals(1)) { this.lottrty_six = table2.Rows[i][0].ToString(); } else if (Convert.ToInt32(table2.Rows[i][0]).Equals(2)) { this.lottrty_kc = table2.Rows[i][0].ToString(); } } this.lid = LSRequest.qq("lid"); this.ml = LSRequest.qq("ml"); this.state = LSRequest.qq("state"); this.uid = LSRequest.qq("uid"); this.ut = LSRequest.qq("ut"); if (model.get_u_type().Equals("zd") && string.IsNullOrEmpty(this.ut)) { this.ut = "zd"; this.uid = model.get_u_id(); } if (model.get_u_type().Equals("gd") && string.IsNullOrEmpty(this.ut)) { this.ut = "gd"; this.uid = model.get_u_id(); } if (model.get_u_type().Equals("fgs") && string.IsNullOrEmpty(this.ut)) { this.ut = "fgs"; this.uid = model.get_u_id(); } if (!model.get_u_type().Equals("zj")) { cz_users userInfoByUID = CallBLL.cz_users_bll.GetUserInfoByUID(this.uid); if (!base.IsUpperLowerLevels(userInfoByUID.get_u_name(), model.get_u_type(), model.get_u_name())) { base.Response.Redirect("../MessagePage.aspx?code=u100057&url=&issuccess=1&isback=0"); base.Response.End(); } } this.sortNameState = LSRequest.qq("sortName"); this.sortTypeState = LSRequest.qq("sortType"); if (string.IsNullOrEmpty(this.sortNameState)) { this.sortNameState = "0"; } if (string.IsNullOrEmpty(this.sortTypeState)) { this.sortTypeState = "0"; } this.namesort = this.sortNameState; this.timesort = this.sortTypeState; if (string.IsNullOrEmpty(this.state)) { this.state = "0"; } this.flag = LSRequest.qq("flag"); if (string.IsNullOrEmpty(this.flag)) { this.flag = "0"; } this.keyword = LSRequest.qq("keyword"); this.page = LSRequest.qq("page"); if (string.IsNullOrEmpty(this.page)) { this.page = "1"; } this.url = string.Format("?lid={0}&ml={1}&state={2}&flag={3}&keyword={4}&sortName={5}&sortType={6}&page={7}&uid={8}&ut={9}", new object[] { this.lid, this.ml, this.state, this.flag, this.keyword, this.namesort, this.timesort, this.page, this.uid, this.ut }); if (LSRequest.qq("searchHidden").Equals("search")) { this.ml = LSRequest.qq("ml"); this.state = LSRequest.qq("userState"); this.flag = LSRequest.qq("userFlag"); this.keyword = LSRequest.qq("searchkey"); this.page = LSRequest.qq("page"); this.namesort = LSRequest.qq("sortName"); this.timesort = LSRequest.qq("sortType"); this.url = string.Format("?lid={0}&ml={1}&state={2}&flag={3}&keyword={4}&sortName={5}&sortType={6}&page={7}&uid={8}&ut={9}", new object[] { this.lid, this.ml, this.state, this.flag, this.keyword, this.namesort, this.timesort, 1, this.uid, this.ut }); base.Response.Redirect(string.Format("dl_list.aspx{0}", this.url)); } if (int.Parse(this.page) < 1) { this.page = "1"; } if (FileCacheHelper.get_RedisStatOnline().Equals(1) || FileCacheHelper.get_RedisStatOnline().Equals(2)) { this.userDT = CallBLL.cz_users_bll.GetUserDLList(this.state, "dl", this.flag, this.keyword, Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.namesort, this.timesort, this.uid, this.ut, "redis"); } else { this.userDT = CallBLL.cz_users_bll.GetUserDLList(this.state, "dl", this.flag, this.keyword, Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.namesort, this.timesort, this.uid, this.ut); } this.FiledValue = new string[] { this.lid, this.ml, this.state, this.flag, this.namesort, this.timesort, this.keyword, this.uid, this.ut, this.sortNameState, this.sortTypeState }; }
protected void Page_Load(object sender, EventArgs e) { string str = this.Session["user_name"].ToString(); this.login_name = str; this.master_name = str; 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(); this.zj_name = model.get_zjname().Trim(); if (this.Session["child_user_name"] != null) { this.isCloneUser = true; this.cloneName = this.Session["child_user_name"].ToString(); this.login_name = this.cloneName; } if (!this.u_type.Equals("zj")) { this.levelList.Add(model.get_fgs_name()); this.levelList.Add(model.get_zd_name()); this.levelList.Add(model.get_gd_name()); this.levelList.Add(model.get_dl_name()); } 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.lotteryDT = base.GetLotteryList(); DataRow[] source = this.lotteryDT.Select(string.Format(" id=100 ", new object[0])); string str2 = ""; if (source.Count <DataRow>() <= 0) { str2 = "200,300"; } else if (this.lotteryDT.Rows.Count > 1) { str2 = "100,200,300"; } else { str2 = "100,300"; } 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_user_change_log_bll.get_log_table(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount, this.u_name.Trim(), str2, ref this.isAll); this.FiledValue = new string[] { this.u_id }; }
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=u100035&url=&issuccess=1&isback=0&isopen=1"); base.Response.End(); } base.Permission_Aspx_ZJ(model, "po_2_3"); this.page = LSRequest.qq("page"); if (string.IsNullOrEmpty(this.page)) { this.page = "1"; } string str2 = LSRequest.qq("isdel"); if (!string.IsNullOrEmpty(str2) && str2.Equals("1")) { base.Permission_Aspx_ZJ(model, "po_2_3"); string str3 = LSRequest.qq("uid"); if (!string.IsNullOrEmpty(str3)) { string url = string.Format("/Account/filluser_list.aspx?page={0}", this.page); if (CallBLL.cz_saleset_six_bll.GetModel(str3).get_flag().Equals(1)) { base.Response.Write(base.ShowDialogBox("該外補會員不允許刪除!", url, 0)); base.Response.End(); } if (!CallBLL.cz_saleset_six_bll.DeleteUser(str3)) { base.Response.Write(base.ShowDialogBox("刪除外補會員失敗!", url, 0)); base.Response.End(); } else { base.user_del_fill_log(str3); base.Response.Write(base.ShowDialogBox("刪除外補會員成功!", "", 400)); CallBLL.cz_saleset_six_bll.GetSaleSetUser(); string str5 = ""; str5 = str5 + "{" + "\"saleuser\": {"; DataTable saleSetUser = CallBLL.cz_saleset_six_bll.GetSaleSetUser(); if (saleSetUser != null) { for (int i = 0; i < saleSetUser.Rows.Count; i++) { if (i == 0) { str5 = str5 + string.Format("\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]); } else { str5 = str5 + string.Format(",\"{0}\": {1}", saleSetUser.Rows[i]["u_name"], saleSetUser.Rows[i]["flag"]); } } } str5 = str5 + "}}"; StringBuilder builder = new StringBuilder(); builder.Append("<script>"); builder.AppendFormat(" top.aAllowSaleUserName = {0};", str5); builder.Append("</script>"); base.Response.Write(builder); base.Response.Write(base.LocationHref(url)); base.Response.End(); } } } if (int.Parse(this.page) < 1) { this.page = "1"; } this.childTable = CallBLL.cz_saleset_six_bll.GetSaleSetUserByPage(Convert.ToInt32(this.page) - 1, this.pageSize, ref this.pageCount, ref this.dataCount); this.CurUrl = string.Format("/Account/filluser_list.aspx?page={0}", this.page); }