protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (AppID.Equals(0)) { this.Alert("参数非法", "/IosAppInfoList.aspx"); } else { CurrentEntity = new AppInfoiosBLL().GetSingle(this.AppID); this.AppName.Text = CurrentEntity.AppName; this.ShowName.Text = CurrentEntity.ShowName; this.DevName.Text = CurrentEntity.DevName.ToString(); this.RecommWord.Text = CurrentEntity.RecommWord; this.AppDesc.Text = CurrentEntity.AppDesc; this.AppType.Text = CurrentEntity.AppType; this.AppSize.Text = CurrentEntity.AppSize; this.AppVersion.Text = CurrentEntity.AppVersion; this.AppPrice.Text = CurrentEntity.AppPrice; this.RecommFlagWord.Text = CurrentEntity.RecommFlagWord; this.ThumbPicUrl.Value = CurrentEntity.ThumbPicUrl; this.ShowThumbPic.ImageUrl = string.IsNullOrEmpty(CurrentEntity.AdsPicUrl) ? @"Theme/Images/empty.png" : CurrentEntity.ThumbPicUrl; this.ShowIconPic.ImageUrl = string.IsNullOrEmpty(CurrentEntity.IconPicUrl) ? @"Theme/Images/empty.png" : CurrentEntity.IconPicUrl; this.IconUrl.Value = CurrentEntity.IconPicUrl; this.AppUrl.Text = CurrentEntity.AppUrl; this.AppPicUrl = CurrentEntity.AppPicUrl; this.AdsPicUrl.Value = CurrentEntity.AdsPicUrl; this.ShowAdsPic.ImageUrl = string.IsNullOrEmpty(CurrentEntity.AdsPicUrl) ? @"Theme/Images/empty.png" : CurrentEntity.AdsPicUrl; this.Remarks.Text = CurrentEntity.Remarks; this.Status.SelectedValue = CurrentEntity.Status.ToString(); } } }
public override bool Equals(object obj) { var other = obj as Game; return(other != null && OwnerSteamID.Equals(other.OwnerSteamID) && AppID.Equals(other.AppID)); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.BindAppType(); if (AppID.Equals(0)) { this.Alert("参数非法", "/AppInfoList.aspx"); } else { CurrentEntity = new AppInfoBLL().GetSingle(this.AppID); //新表结构暂不使用 2014-10-27 momo //this.hidUAppID.Value = CurrentEntity.UAppID.ToString(); //this.UAppName.Text = CurrentEntity.UAppID.ToString(); this.AppName.Text = CurrentEntity.AppName; this.ShowName.Text = CurrentEntity.ShowName; this.ForDeviceTypeList.SelectedValue = CurrentEntity.ForDeviceType.ToString(); this.DevID.Value = CurrentEntity.CPID.ToString(); this.CPID.Text = CurrentEntity.CPID.ToString(); this.CPName.Text = CurrentEntity.DevName.ToString(); this.SearchKeys.Text = CurrentEntity.SearchKeys; this.DownTimes.Text = CurrentEntity.DownTimes.ToString(); this.RecommWord.Text = CurrentEntity.RecommWord; this.AppType.SelectedValue = this.GetAppType(CurrentEntity.AppType.ToString()); this.OldAppType.Value = this.GetAppType(CurrentEntity.AppType.ToString()); this.EvilLevel.SelectedValue = CurrentEntity.EvilLevel.ToString(); this.RecommLevel.SelectedValue = CurrentEntity.RecommLevel.ToString(); this.IssueType.SelectedValue = CurrentEntity.IssueType.ToString(); this.AppDesc.Text = CurrentEntity.AppDesc; this.ShowThumbPic.ImageUrl = string.IsNullOrEmpty(CurrentEntity.ThumbPicUrl) ? @"Theme/Images/empty.png" : CurrentEntity.ThumbPicUrl; this.ThumbPicUrl.Value = CurrentEntity.ThumbPicUrl; this.OldThumbPicUrl.Value = CurrentEntity.ThumbPicUrl; this.Remarks.Text = CurrentEntity.Remarks; this.Status.SelectedValue = CurrentEntity.Status.ToString(); this.MainPackName.Value = CurrentEntity.PackName; this.IsNetGame.SelectedValue = CurrentEntity.IsNetGame.ToString(); //this.GetIsNetGame(CurrentEntity.AppType.ToString()); this.OldIsNetGame.Value = CurrentEntity.IsNetGame.ToString(); // this.GetIsNetGame(CurrentEntity.AppType.ToString()) == "0" ? "2102" : "2101"; this.drpIssueType.SelectedValue = CurrentEntity.IssueType.ToString(); if (CurrentEntity.IssueType == 1) { cbChannel.Visible = false; } else { cbChannel.Visible = true; } string channel = CurrentEntity.ChannelNos; if (channel.IndexOf(',') > -1) { string[] channels = channel.Split(','); foreach (ListItem li in cbChannel.Items) { foreach (string item in channels) { if (li.Value == item) { li.Selected = true; } } } } string channel2 = CurrentEntity.ChannelAdaptation; if (channel2.IndexOf(',') > -1) { string[] channels2 = channel2.Split(','); foreach (ListItem li in cbChannel2.Items) { foreach (string item in channels2) { if (li.Value == item) { li.Selected = true; } } } } BindTag(cbRecommFlag, CurrentEntity.RecommTag); BindTag(CurrentEntity); BindArchitecture(CurrentEntity); } } }