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.masterids = base.GetLotteryMasterID(this.lotteryDT); int num = 0; foreach (DataRow row in this.lotteryDT.Rows) { if (num.Equals(0)) { this.firstLotteryId = row["id"].ToString(); } num++; break; } if (FileCacheHelper.get_GetDefaultLottery() != "n") { bool flag = false; foreach (DataRow row in this.lotteryDT.Rows) { if (row["id"].ToString().Equals(FileCacheHelper.get_GetDefaultLottery())) { flag = true; break; } } if (flag) { this.firstLotteryId = FileCacheHelper.get_GetDefaultLottery(); } this.useNowMenuId = "1"; } if (this.lotteryDT != null) { Dictionary <string, object> lotteryMenuCfg = base.GetLotteryMenuCfg(this.lotteryDT); this.menuCfg = JsonHandle.ObjectToJson(lotteryMenuCfg); } if (HttpContext.Current.Session["user_name"] == null) { base.Response.End(); } this.userName = HttpContext.Current.Session["user_name"].ToString(); this.uModel = HttpContext.Current.Session[this.userName + "lottery_session_user_info"] as cz_userinfo_session; this.skin = this.uModel.get_u_skin(); if (str != "true") { this.browserCode = Utils.Number(4); PageBase.SetBrowerFlag(this.browserCode); } DataTable table = CallBLL.cz_users_bll.GetCredit(this.userName, this.uModel.get_su_type()).Tables[0]; this.six_credit = string.Format("{0:F0}", double.Parse(table.Rows[0]["six_credit"].ToString())); this.kc_credit = string.Format("{0:F0}", double.Parse(table.Rows[0]["kc_credit"].ToString())); this.six_usable_credit = string.Format("{0:F0}", double.Parse(table.Rows[0]["six_usable_credit"].ToString())); this.kc_usable_credit = string.Format("{0:F0}", double.Parse(table.Rows[0]["kc_usable_credit"].ToString())); this.six_iscash = table.Rows[0]["six_iscash"].ToString(); this.kc_iscash = table.Rows[0]["kc_iscash"].ToString(); CacheHelper.RemoveAllCache("LmGroupCount_Cache"); }
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); } }