Ejemplo n.º 1
0
        /// <summary>
        /// 根据kindId获取游戏名
        /// </summary>
        /// <param name="kinId"></param>
        /// <returns></returns>
        protected string GetGameNameByKindId(int kindId)
        {
            StringBuilder sql = new StringBuilder( );

            sql.AppendFormat("select {0} from {1} where {2}={3}", GameKindItem._KindName, GameKindItem.Tablename, GameKindItem._KindID, kindId);
            object ob = platformFacade.GetObjectBySql(sql.ToString( ));

            if (ob != null)
            {
                return(ob.ToString( ));
            }
            return("未知");
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int            pageID   = GameRequest.GetInt("PageID", 0);
            PlatformFacade paltForm = new PlatformFacade( );
            string         sql      = "Select ResponseUrl From GamePageItem(nolock) Where PageID=" + pageID;
            object         obj      = paltForm.GetObjectBySql(sql);

            if (obj != null)
            {
                string url = obj.ToString( );
                Response.Redirect(url);
            }
        }