Пример #1
0
        /// <summary>
        /// 加载平台信息
        /// </summary>
        private void LoadGame()
        {
            GameMO _mo = new GameMO();

            GameEO _eo = _mo.Get(" Gm_gameId = @Gm_gameId ", Request.QueryString["Gm_gameId"].ToString()).Last();

            if (!string.IsNullOrEmpty(_eo.GmId))
            {
                this.txtGameName.Text       = _eo.GmName;
                this.txtGaameId.Text        = _eo.GmGameId;
                this.txtDescription.Text    = _eo.GmDescription;
                this.rblState.SelectedValue = _eo.GmState;

                foreach (DataRow dr in _message.GetCannelListByGameId(Request.QueryString["Gm_gameId"].ToString()).Rows)
                {
                    for (int i = 0; i < cblChannel.Items.Count; i++) //  循环选中渠道的值
                    {
                        if (cblChannel.Items[i].Value == dr["Cn_id"].ToString())
                        {
                            cblChannel.Items[i].Selected = true;
                        }
                    }
                }
            }
        }
Пример #2
0
        /// <summary>
        /// 绑定渠道号
        /// </summary>
        /// <returns></returns>
        public string BindChannelID(object gameId)
        {
            string    message = "";
            DataTable dt      = gameMessage.GetCannelListByGameId(gameId.ToString());

            if (dt.Rows.Count != 0)
            {
                foreach (DataRow dr in dt.Rows) // 循环数据
                {
                    message += dr["Cn_name"] + "(" + dr["Cn_channelId"] + ");";
                }
            }
            return(message);
        }