Exemplo n.º 1
0
        private void BindProduct()
        {
            CountDownInfo countDownInfo = PromoteHelper.GetCountDownInfo(this.countDownId, 0);

            this.productId                 = ((this.productId == 0) ? countDownInfo.ProductId : this.productId);
            this.hidProductId.Value        = this.productId.ToString();
            this.rptProductSkus.DataSource = PromoteHelper.GetCountDownSkuTable(this.countDownId, this.productId, 0);
            this.rptProductSkus.DataBind();
            IList <int> list = null;
            Dictionary <int, IList <int> > dictionary = default(Dictionary <int, IList <int> >);
            ProductInfo productDetails = ProductHelper.GetProductDetails(this.productId, out dictionary, out list);

            if (productDetails != null)
            {
                this.ltProductName.Text = productDetails.ProductName;
                this.ltStock.Text       = productDetails.Stock.ToString();
                this.lblPrice.Text      = productDetails.MinSalePrice.F2ToString("f2");
            }
        }