Esempio n. 1
0
 private void BindCoupons()
 {
     System.Data.DataTable dt = TradeHelper.GetChangeCoupons();
     if (dt == null || dt.Rows.Count <= 0)
     {
         lblNoDataDisplay.Text = "&nbsp;&nbsp;暂无可选的优惠券";
         changeCoupons.Visible = false;
         return;
     }
     this.changeCoupons.DataSource = dt;
     this.changeCoupons.DataBind();
 }
Esempio n. 2
0
 private void BindCoupons()
 {
     this.changeCoupons.DataSource = TradeHelper.GetChangeCoupons();
     this.changeCoupons.DataBind();
 }