private void BindOrderPromotions() { DataTable productDetailOrderPromotions = PromoteHelper.GetProductDetailOrderPromotions(); if (productDetailOrderPromotions.Rows.Count > 0) { this.divOrderPromotions.Visible = true; string text = string.Empty; foreach (DataRow row in productDetailOrderPromotions.Rows) { text = text + row["Name"].ToNullString() + ","; } text = text.TrimEnd(','); this.ltlOrderPromotion.Text = text; } string phonePriceByProductId = PromoteHelper.GetPhonePriceByProductId(this.productId); if (!string.IsNullOrEmpty(phonePriceByProductId) && (this.sitesettings.OpenAliho == 1 || this.sitesettings.OpenMobbile == 1 || this.sitesettings.OpenVstore == 1 || this.sitesettings.OpenWap == 1)) { this.divPhonePrice.Visible = true; string s = phonePriceByProductId.Split(',')[0]; string[] array = this.lblBuyPrice.Text.Split('-'); decimal num = decimal.Parse(array[0].Trim()) - decimal.Parse(s); this.litPhonePrice.Text = ((num > decimal.Zero) ? num : decimal.Zero).F2ToString("f2"); this.litPhonePriceEndDate.Text = phonePriceByProductId.Split(',')[1]; } }