Example #1
0
    public void deplayTitle()
    {
        if (this.Request["var"] == "1")
        {
            switch (this.Request["id"])
            {
            case "1":
                this.labTitle.Text = "Home/New";
                break;

            case "2":
                this.labTitle.Text = "Home/Recommandation";
                break;

            case "3":
                this.labTitle.Text = "Home/Special";
                break;

            case "4":
                this.labTitle.Text = "Home/Hot";
                break;

            case "5":
                this.labTitle.Text = "Home/Intelligent Recommandation";
                break;
            }
        }
        else
        {
            string strClassName = gcObj.GetClass(Convert.ToInt32(this.Request["id"].ToString()));
            this.labTitle.Text = "Home/Category/" + strClassName;
        }
    }
Example #2
0
        /// <summary>
        /// 说明:显示当前页浏览商品的位置
        /// </summary>
        public void deplayTitle()
        {
            if (this.Request["var"] == "1")
            {
                //如果Request["var"]的值为1,表示点击头控件中的“新品上市”、“特价商品”和“热销商品”导航到该浏览页
                switch (this.Request["id"])
                {
                case "1":
                    this.labTitle.Text = "首页/新品上市";
                    break;

                case "2":
                    this.labTitle.Text = "首页/精品推荐";
                    break;

                case "3":
                    this.labTitle.Text = "首页/特价商品";
                    break;

                case "4":
                    this.labTitle.Text = "首页/热销商品";
                    break;
                }
            }
            else
            {
                //表示点击分类导航条中的商品类别名导航到该浏览页
                string strClassName = gcObj.GetClass(Convert.ToInt32(this.Request["id"].ToString()));
                this.labTitle.Text = "首页/商品分类/" + strClassName;
            }
        }
Example #3
0
        /// <summary>
        /// 获取指定商品的信息,并将其显示在界面上
        /// </summary>
        public void GetGoodsInfo()
        {
            string     strSql  = "select * from tb_BookInfo where BookID=" + Convert.ToInt32(Request["id"].Trim());
            SqlCommand myCmd   = dbObj.GetCommandStr(strSql);
            DataTable  dsTable = dbObj.GetDataSetStr(strSql, "tbBI");

            this.txtCategory.Text       = gcObj.GetClass(Convert.ToInt32(dsTable.Rows[0]["ClassID"].ToString()));
            this.txtName.Text           = dsTable.Rows[0]["BookName"].ToString();
            this.txtAuthor.Text         = dsTable.Rows[0]["Author"].ToString();
            this.txtCompany.Text        = dsTable.Rows[0]["Company"].ToString();
            this.txtMarketPrice.Text    = dsTable.Rows[0]["MarketPrice"].ToString();
            this.txtHotPrice.Text       = dsTable.Rows[0]["HotPrice"].ToString();
            this.ImageMapPhoto.ImageUrl = dsTable.Rows[0]["BookUrl"].ToString();
            this.cbxCommend.Checked     = bool.Parse(dsTable.Rows[0]["Isrefinement"].ToString());
            this.cbxHot.Checked         = bool.Parse(dsTable.Rows[0]["IsHot"].ToString());
            this.cbxDiscount.Checked    = bool.Parse(dsTable.Rows[0]["IsDiscount"].ToString());
            this.txtShortDesc.Text      = dsTable.Rows[0]["BookIntroduce"].ToString();
        }
Example #4
0
 public string GetClassName(int IntClassID)
 {
     return(gcObj.GetClass(IntClassID));
 }
Example #5
0
        //通过商品类别号,获取商品名
        public string GetClassName(int IntClassID)
        {
            string strClassName = gcObj.GetClass(IntClassID);

            return(strClassName);
        }