Ejemplo n.º 1
0
        private void ShowNews(string productID)//显示新闻
        {
            Maticsoft.BLL.Products.Product bll   = new Maticsoft.BLL.Products.Product();
            Maticsoft.Model.Product        model = bll.GetModelByCache(productID);

            this.lblProductId.Text = model.ProductId.ToString();
            this.lblName.Text      = model.Name;
            lblDescn.Text          = model.Descn;
            lblPrice.Text          = model.Price.ToString();
            lblvipprice.Text       = model.VipPrice.ToString();
            Image1.ImageUrl        = "ProductImages/" + model.Image;
            Maticsoft.BLL.Products.Category bllc = new Maticsoft.BLL.Products.Category();
            lblCategoryId.Text = bllc.GetName(model.CategoryId);
            if (model.Cheapness == 1)
            {
                Label1.Text = "是";
            }
            else
            {
                Label1.Text = "否";
            }
        }
Ejemplo n.º 2
0
        //��ʾ����
        private void ShowNews(string productID)
        {
            Maticsoft.BLL.Products.Product bll = new Maticsoft.BLL.Products.Product();
            Maticsoft.Model.Product model = bll.GetModelByCache(productID);

            this.lblProductId.Text = model.ProductId.ToString();
            this.lblName.Text = model.Name;
            lblDescn.Text = model.Descn;
            lblPrice.Text = model.Price.ToString();
            lblvipprice.Text = model.VipPrice.ToString();
            Image1.ImageUrl = "ProductImages/" + model.Image;
            Maticsoft.BLL.Products.Category bllc = new Maticsoft.BLL.Products.Category();
            lblCategoryId.Text = bllc.GetName(model.CategoryId);
            if (model.Cheapness == 1)
            {
                Label1.Text = "��";
            }
            else
            {
                Label1.Text = "��";
            }
        }