private void BindPointGifts() { List <ShoppingCartGiftInfo> list = (from s in this.cart.LineGifts where s.PromoType == 0 select s).ToList(); if (list.Count() > 0) { this.rptCartPointGifts.DataSource = list; this.rptCartPointGifts.DataBind(); this.divGifts.Visible = true; int num = (from i in this.cart.LineItems where i.SupplierId == 0 select i).Count(); if (num <= 0 && list.Count() > 0) { decimal num2 = ShoppingProcessor.CalcGiftFreight(this.userRegionId, this.cart.LineGifts); this.lblGiftFeright.Text = "运费:¥" + num2.F2ToString("f2"); } } }