protected void Page_Load(object sender, EventArgs e) { var clubs = ClubLogic.GetActiveUserClubs(ProfileUserID); if (clubs.Count == 0) { btnClub.Visible = false; btnGetStrip.Visible = false; btnCardFusion.Visible = false; } else { var club = clubs[0]; btnClub.Text = club.FullName; btnClub.PostBackUrl = $"../ClubView.aspx?ClubID={club.ID.Value}"; if (ProfileUserID != UserID) { btnGetStrip.Visible = false; btnCardFusion.Visible = false; } } var _playerInfo = PlayerStrip.GetPlayerInfo(ProfileUserID); if (_playerInfo == null) { pnlSwf.Visible = false; } else { pnlSwf.Visible = true; shirtLv = _playerInfo.Shirt; shortsLv = _playerInfo.Shorts; sockLv = _playerInfo.Sock; } var TotalCount = PlayerStrip.GetUserBingoPlayCount(ProfileUserID); if (TotalCount <= 0) { ltrlRP.Text = "0%"; } else { ltrlRP.Text = (PlayerStrip.GetUserBingoGainCount(ProfileUserID) * 100 / TotalCount) + "%"; } var _playerLV = Math.Min(PlayerLv, ConfigGlobal.PlayerMaxLv); ltrlPlayerLV.Text = $"<div class=\"ClubSys_PlayerLV\" style=\"width: {(_playerLV*20)}px;\" title=\"球员等级\"></div>"; }
private void BindGetStrip() { var player = PlayerStrip.GetPlayerInfo(UserID); if (ConfigGlobal.GoogleAdvActive && player != null) { cbGoogleAdvActive.Visible = true; cbGoogleAdvActive.Checked = player.IsActive; } else { cbGoogleAdvActive.Visible = false; } var totalCount = PlayerStrip.GetUserBingoPlayCount(UserID); var getStripRP = 0; if (totalCount > 0) { getStripRP = Convert.ToInt16(PlayerStrip.GetUserBingoGainCount(userid) * 100 / totalCount); } lblGetStripUserInfo.Text = $"<em>{UserName.Trim()}</em>今日获得/尝试:<em>{PlayerStrip.GetUserBingoGainCountToday(UserID)}({PlayerStrip.GetUserBingoPlayCountToday(UserID)})</em> | 获得率:<em>{getStripRP}%</em> | 库存:<em>{PlayerStrip.GetClubRemainingEquipment(ClubID)}/{ConfigGlobal.DailyClubEquipmentCount}</em>"; if (ConfigGlobal.GoogleAdvActive && player != null && player.IsActive) { //ctrlGoogleAdv.DisplayAdv = string.Empty; DisplaySwf = "none"; IsGoogleAdv = "true"; lblGetStripUserInfo.Text += " | <em title=\"抽取与获取装备均免费\">打工模式</em>"; } else { //ctrlGoogleAdv.DisplayAdv = "none"; DisplaySwf = string.Empty; IsGoogleAdv = "false"; lblGetStripUserInfo.Text += $" | 每次抽取:<em title=\"枪手币\">{ConfigGlobal.BingoCost}</em> | 每件获得:<em title=\"枪手币\">{ConfigGlobal.BingoGetCost}</em>"; } }